OpenCyphal / pycyphal

Python implementation of the Cyphal protocol stack.
https://pycyphal.readthedocs.io/
MIT License
119 stars 106 forks source link

The CLI Transport Subsystem Factory should skip transports whose dependencies are not installed #114

Closed pavel-kirienko closed 3 years ago

pavel-kirienko commented 4 years ago

See https://forum.uavcan.org/t/viper-quadcopter/816/21?u=pavel.kirienko

Right now, we run pyuavcan.util.import_submodules(pyuavcan.transport) before evaluating the transport specification expression. The dynamic import fails if the dependencies of at least one transport are unavailable.

The correct behavior would be to ignore transports whose dependencies are not installed.