PdoBase.export() depends on the third-party module canmatrix, which was removed from the canopen requirements with commit c46228f, three years ago. This implies it has been de facto broken since that commit, unless the user accidentally had a compatible canmatrix library installed.
There's a couple of ways to mitigate this:
- add back the
canmatrix dependency, fix .export() (if it needs fixing), and add unit tests in order to prevent future regressions like this
- acknowledge that the API is de facto broken and purge it from
canopen
FWIW, my personal preference would be 2).
Discovered while working on increasing PDO coverage to 100%.