Chirpstack-API Module

hi,

i try to do some python script against the api. but i fail when i try to import the chirpstack_api module:

script:

import grpc
from  chirpstack_api import api

following error:

    from chirpstack_api import api
  File "/usr/local/lib/python3.8/site-packages/chirpstack_api/api/__init__.py", line 9, in <module>
    from .frame_log_pb2 import *
ModuleNotFoundError: No module named 'chirpstack_api.api.frame_log_pb2'

does anyone know what i am dooing wrong?

Have you installed the package?

pip install chirpstack-api

yes, i did this… we can also see this

# pip list
Package                  Version
------------------------ -----------
<--snip-->
chirpstack-api           4.8.1
...

Possibly your github issue as well but it seems someone else has a similar issue: Python example (downlink_enqueue.py) fails with chirpstack-api 4.8.1 · Issue #422 · chirpstack/chirpstack · GitHub. Perhaps this is a bug with 8.3.1?

hi, thanks for your answer…

this is maybe a but with version 4.8.1
i uninstaller version 4.8.1 and installed version 4.7 - with this version, there is no error.
let’s see what happend with the issue 422 you posted.

thanks

@brocaar incase this wasn’t on your radar already.

It was already fixed, see: Python example (downlink_enqueue.py) fails with chirpstack-api 4.8.1 · Issue #422 · chirpstack/chirpstack · GitHub

1 Like

Ah, thank you for your quick work

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.