meshtastic / python

The Python CLI and API for talking to Meshtastic devices
https://meshtastic.org
335 stars 151 forks source link

Error on meshtastic --set lora.ignore_incoming xxxxxx #568

Closed 868meshbot closed 1 month ago

868meshbot commented 2 months ago

Trying to use the python client, to manage ignore_incoming for testing purposes and i get the below error. Included my protoc and pip versions on osx. Not sure where I've gone wrong? any pointer? thanks

meshtastic --set lora.ignore_incoming xxxxxx
Connected to radio
Adding 'xxxxx' to the ignore_incoming list
Aborting due to: 'google._upb._message.Descriptor' object has no attribute 'ignore_incoming'

or

Aborting due to: 'Descriptor' object has no attribute 'ignore_incoming'
protoc --version
libprotoc 26.1

pip freeze|grep proto
mypy-protobuf==3.6.0
protobuf==5.26.1
types-protobuf==5.26.0.20240422

EDIT: Updated protobufs manually recompiled and reinstalled v2.3.9 of python

DEBUG file:__main__.py setPref line:163 snake_name:ignore_incoming
DEBUG file:__main__.py setPref line:164 camel_name:ignoreIncoming
DEBUG file:__main__.py setPref line:185 valStr:xxxxxxxx val:xxxxxxxx
Adding 'xxxxxxxx' to the ignore_incoming list
Aborting due to: 'Descriptor' object has no attribute 'ignore_incoming'
DEBUG file:serial_interface.py close line:74 Closing Serial stream
DEBUG file:stream_interface.py close line:119 Closing stream
868meshbot commented 1 month ago

Fixed it and pushed a pull request

868meshbot commented 1 month ago

Whoops hit comment instead of close see https://github.com/meshtastic/python/pull/581