-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PdoBase.export()
is broken bco. broken dependencies
#488
Comments
The canmatrix dependency was removed on Oct 10, 2021 with commit c46228f. Resolves christiansandberg#488
The canmatrix dependency was removed on Oct 10, 2021 with commit c46228f. Resolves christiansandberg#488
I've added PoC-branches for each proposed solution. Happy to open a PR for whatever variant you prefer.
|
The canmatrix dependency was removed on Oct 10, 2021 with commit c46228f. Resolves christiansandberg#488
There's also a third way to mitigate this: conditionally add |
I prefer the third solution. It seems this is the only place where the dependency is used, so forcing all users to install it is too much. But the mapping export function itself is surely useful. Can we make sure that the Ideally, the function would just raise a more helpful exception in case the import fails. |
Yep, the third solution is probably easiest on users. I'll create a PR shortly. |
The canmatrix optional dependency was removed on Oct 10, 2021 with commit c46228f. It is now added back as an optional dependency, using the same name as previously: db_export. To install the dependency: $ python3 -m pip install 'canopen[db_export]' Resolves christiansandberg#488
The canmatrix optional dependency was removed on Oct 10, 2021 with commit c46228f. It is now added back as an optional dependency, using the same name as previously: db_export. To install the dependency: $ python3 -m pip install 'canopen[db_export]' Resolves christiansandberg#488
PdoBase.export()
depends on the third-party modulecanmatrix
, which was removed from thecanopen
requirements with commit c46228f, three years ago. This implies it has been de facto broken since that commit, unless the user accidentally had a compatiblecanmatrix
library installed.There's a couple of ways to mitigate this:
canmatrix
dependency, fix.export()
(if it needs fixing), and add unit tests in order to prevent future regressions like thiscanopen
FWIW, my personal preference would be 2).
Discovered while working on increasing PDO coverage to 100%.
The text was updated successfully, but these errors were encountered: