Skip to content

e.response.status has no attribute status #62

@IsabellaMiaNielsen

Description

@IsabellaMiaNielsen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions