dronecan / pydronecan

python DroneCAN code generation, interface and utilities
MIT License
40 stars 42 forks source link

e.response.status has no attribute status #62

Open IsabellaMiaNielsen opened 5 months ago

IsabellaMiaNielsen commented 5 months ago

Hi, when I try to run the canfd_msg.py example, and any code that broadcasts, I get the following error:

Transfer handler exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/dist-packages/dronecan/node.py", line 198, in call_handlers
    wrapper(transfer)
  File "/usr/local/lib/python3.12/dist-packages/dronecan/node.py", line 171, in call
    result = handler(event, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/dronecan/app/node_monitor.py", line 200, in _on_info_response
    entry._update_from_info(e)
  File "/usr/local/lib/python3.12/dist-packages/dronecan/app/node_monitor.py", line 51, in _update_from_info
    self.status = e.response.status
                  ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/dronecan/transport.py", line 562, in __getattr__
    raise AttributeError(attr)
AttributeError: status

I am trying to communicate to a cube orange through CANBUS. I am using ubuntu 24.04, and python 3.12.3. It doesn't matter what I send, I get the same error. Also happens when I try to send a vendor-specific-type as a message.

Is it not supported for the python version or is there something else wrong?