just updated to .14 python CLI and I suspect related?
on cloning project and downloading .13 meshtastic python error seen
cannot import name 'module_config_pb2' from 'meshtastic'
just updated to .14 python CLI and I suspect related?
on cloning project and downloading .13 meshtastic python error seen
`cannot import name 'module_config_pb2' from 'meshtastic'`
<!-- github-sync-id:2399223574 -->
all the protobufs moved from meshtastic to meshtastic.protobuf in 2.3.13
`from meshtastic.protobuf import module_config_pb2`
all the protobufs moved from `meshtastic` to `meshtastic.protobuf` in 2.3.13
<!-- github-comment-id:2218790717 -->
You can also wrap it in a try/catch like this:
```python
try:
from meshtastic.protobuf import module_config_pb2
except ImportError:
from meshtastic import module_config_pb2
```
<!-- github-comment-id:2218791591 -->
> You can also wrap it in a try/catch like this:
```python
try:
from meshtastic.protobuf import module_config_pb2
from meshtastic import BROADCAST_NUM
except ImportError:
from meshtastic import module_config_pb2, BROADCAST_NUM
```
settings.py also has problems with
```python
from meshtastic import config_pb2, module_config_pb2, mesh_pb2, channel_pb2
```
not sure where it all is now (didnt look)
<!-- github-comment-id:2218855723 -->
All of the _pb2 modules are now in meshtastic.protobuf as of 2.3.13, so anything that imports those should have the try/catch too, probably
All of the `_pb2` modules are now in `meshtastic.protobuf` as of 2.3.13, so anything that imports those should have the try/catch too, probably
<!-- github-comment-id:2218865603 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
just updated to .14 python CLI and I suspect related?
on cloning project and downloading .13 meshtastic python error seen
cannot import name 'module_config_pb2' from 'meshtastic'@ianmcorvidae do you know what the proper import would be now?
from meshtastic.protobuf import module_config_pb2all the protobufs moved from
meshtastictomeshtastic.protobufin 2.3.13You can also wrap it in a try/catch like this:
settings.py also has problems with
not sure where it all is now (didnt look)
All of the
_pb2modules are now inmeshtastic.protobufas of 2.3.13, so anything that imports those should have the try/catch too, probablyif handy here is a fix https://github.com/pdxlocations/meshtastic-curses-client/pull/5
Closed by #5