Title: BlockDownloadStream class in sdo\client.py appears to be missing an object definition · Issue #624 · canopen-python/canopen · GitHub
Open Graph Title: BlockDownloadStream class in sdo\client.py appears to be missing an object definition · Issue #624 · canopen-python/canopen
X Title: BlockDownloadStream class in sdo\client.py appears to be missing an object definition · Issue #624 · canopen-python/canopen
Description: Hello- In sdo\client.py the BlockDownloadStream class refers to the self.crc_supported attribute on lines 680, 738, and 812, but this class attribute does not appear to be defined (and as a side note, the BlockUploadStream class does def...
Open Graph Description: Hello- In sdo\client.py the BlockDownloadStream class refers to the self.crc_supported attribute on lines 680, 738, and 812, but this class attribute does not appear to be defined (and as a side no...
X Description: Hello- In sdo\client.py the BlockDownloadStream class refers to the self.crc_supported attribute on lines 680, 738, and 812, but this class attribute does not appear to be defined (and as a side no...
Opengraph URL: https://github.com/canopen-python/canopen/issues/624
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BlockDownloadStream class in sdo\\client.py appears to be missing an object definition","articleBody":"Hello-\nIn `sdo\\client.py` the `BlockDownloadStream` class refers to the `self.crc_supported` attribute on lines 680, 738, and 812, but this class attribute does not appear to be defined (and as a side note, the `BlockUploadStream` class *does* define one).\n\nI ran across this issue when a host's block transfer request was rejected by the device, causing the library to go down one of these broken code paths:\n```\n2026-01-05 14:42:37,387 - canopen_client - ERROR - Full traceback:\nTraceback (most recent call last):\n File \"C:\\nVent_work\\zephyr_root\\zephyr_repo\\nvent_projects\\canopen_sim\\canopen_sim\\canopen_client.py\", line 724, in upload_firmware\n with self.node.sdo.open(index, subindex, \"wb\",\n ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^\n size=total_size,\n ^^^^^^^^^^^^^^^^\n block_transfer=True) as fp:\n ^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Program Files\\Python313\\Lib\\site-packages\\canopen\\sdo\\client.py\", line 213, in open\n raw_stream = BlockDownloadStream(self, index, subindex, size, request_crc_support=request_crc_support)\n File \"C:\\Program Files\\Python313\\Lib\\site-packages\\canopen\\sdo\\client.py\", line 655, in __init__\n response = sdo_client.request_response(request)\n File \"C:\\Program Files\\Python313\\Lib\\site-packages\\canopen\\sdo\\client.py\", line 86, in request_response\n return self.read_response()\n ~~~~~~~~~~~~~~~~~~^^\n File \"C:\\Program Files\\Python313\\Lib\\site-packages\\canopen\\sdo\\client.py\", line 74, in read_response\n raise SdoAbortedError(abort_code)\ncanopen.sdo.exceptions.SdoAbortedError: Code 0x05040001, Unknown SDO command specified\n2026-01-05 14:42:37,391 - canopen_client - ERROR - Error uploading firmware: Code 0x05040001, Unknown SDO command specified\nException ignored in: \u003ccanopen.sdo.client.BlockDownloadStream object at 0x000001F2DDEF6A40\u003e\nTraceback (most recent call last):\n File \"C:\\Program Files\\Python313\\Lib\\site-packages\\canopen\\sdo\\client.py\", line 793, in close\n if self.crc_supported:\nAttributeError: 'BlockDownloadStream' object has no attribute 'crc_supported'\n2026-01-05 14:42:38,548 - canopen_client - INFO - Disconnected from CAN bus\n```\n","author":{"url":"https://github.com/Eqqm4n","@type":"Person","name":"Eqqm4n"},"datePublished":"2026-01-05T22:44:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/624/canopen/issues/624"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5a9c685a-0564-bd6d-a338-fa5d50f00a96 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E136:B1D4C:605E7FB:7E29CB0:6A5DB54F |
| html-safe-nonce | c7612697d962d1bde33cf1b34f07144df1ab999a0d3814426d006def8bb27482 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTM2OkIxRDRDOjYwNUU3RkI6N0UyOUNCMDo2QTVEQjU0RiIsInZpc2l0b3JfaWQiOiI3NDI0MTQzNDIxNTM4Njc4MDk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 211101d04c7603e16772390c47934a0faf9bcef74d2c1435f2f5258dcaa8bdcd |
| hovercard-subject-tag | issue:3783076360 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/canopen-python/canopen/624/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2af9a0b5f3cb1191acf9bd9d3c47bcdd6f6350232e4689e6775fd3a53b31af7c/canopen-python/canopen/issues/624 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2af9a0b5f3cb1191acf9bd9d3c47bcdd6f6350232e4689e6775fd3a53b31af7c/canopen-python/canopen/issues/624 |
| og:image:alt | Hello- In sdo\client.py the BlockDownloadStream class refers to the self.crc_supported attribute on lines 680, 738, and 812, but this class attribute does not appear to be defined (and as a side no... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Eqqm4n |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/canopen-python/canopen git https://github.com/canopen-python/canopen.git |
| octolytics-dimension-user_id | 200581454 |
| octolytics-dimension-user_login | canopen-python |
| octolytics-dimension-repository_id | 68737600 |
| octolytics-dimension-repository_nwo | canopen-python/canopen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 68737600 |
| octolytics-dimension-repository_network_root_nwo | canopen-python/canopen |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width