daniestevez / gr-satellites

GNU Radio decoder for Amateur satellites
GNU General Public License v3.0
777 stars 161 forks source link

No module named 'satellites.bindings' #479

Closed RubenMardonesVarela closed 1 year ago

RubenMardonesVarela commented 1 year ago

I cannot run gr_satellites as I always get this module error:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/satellites/__init__.py", line 47, in <module>
    from .bindings.satellites_python import *
ModuleNotFoundError: No module named 'satellites.bindings'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/gr_satellites", line 20, in <module>
    import satellites.core
  File "/usr/local/lib/python3.8/dist-packages/satellites/__init__.py", line 49, in <module>
    from .satellites_python import *
ImportError: generic_type: type "ax100_decode" referenced unknown base type "gr::block"

I already exported the path to PYTHONPATH like this in my case:

export PYTHONPATH=/usr/local/lib/python3.8/dist-packages/

INFO: I installed gr-satellites from source code (latest state) and I installed gnu radio 3.10 from ppa

daniestevez commented 1 year ago

Hi Ruben,

Something doesn't look right with your build from source of gr-satellites. Can you share the full build log.

If you're using Ubuntu 22.04 or 22.10 you might prefer to use the Ubuntu PPA package for gr-satellites (this makes me notice that a package for Ubuntu 23.04 is not available at the moment). I'll build one now.

RubenMardonesVarela commented 1 year ago

Thanks for the answer. I am using Ubuntu 20.04 and I am afraid that it is not available, I get "unable to locate gr-satellites" after adding the repository, that is why I tried to install it from sources. On the other hand, you can find the build output in the attached file:

BuildOutput.txt

RubenMardonesVarela commented 1 year ago

I have searching and maybe the problem is in the pybind11 version. For my ubuntu I have:

Version: 2.4.3-2build2

It seems I cannot upgrade it

daniestevez commented 1 year ago

This can be indeed a problem with pybind11. In some cases we've found that the GNU Radio build in the PPA has compatibility problems with the pybind11 version in the distro. In this case, the problem would be with the PPA package. Perhaps building GNU Radio from source is a good alternative.

The gr-satellites CI for GNU Radio 3.10 is run on Ubuntu 22.04, so I can't confirm if Ubuntu 20.04 is broken.

RubenMardonesVarela commented 1 year ago

Building GNU Radio from source and then building gr-satellites also from source solves the problem. Thank you