Closed hexpwn closed 4 years ago
I guess the shared library cannot be found (since the LD_LIBRARY_PATH
doesn't contain the directory where the module was installed). Can you please open a Python3 console and import rds
. If this also doesn't work search for rds_swig.py
in the install path of the module (something like <prefix>/lib/python3.7/site-packages/rds/rds_swig.py
and change the two except ImportError
at the beginning to
except ImportError as e:
print(e)
I can import rds
in Python3.
I innitially couldn't find rds_swig.py
so I made a clean install of Gnuradio (and gr-rds
) and it's packages (including swig
). I now have the rds_swig.py
file.
I edited the two exceptions (lines 18 and 25), adding (...) as e:
.
18 except ImportError as e:
19 print(e)
20 import __builtin__
25 except __builtin__.Exception as e:
26 print(e)
27 strthis = ""
Still getting the same error.
edit: by 'same error' I mean exactly the same output. The print functions did not trigger anything on the gnuradio-companion
console
This looks like an install problem, but it's hard to help since I don't know what you did. So here are some pointers:
sudo ldconfig
?) or you have to set your LD_LIBRARY_PATH
environment variable.Did you check that the library path (where libgnuradio-rds.so is installed) is in your search path?
It was in my search path but gnuradio
libraries where not in the same directory. I moved libgnuradio-rds.so
and associated files to the same dir as gnuradio and it worked!
thanks for helping me debug this. and thanks for OS'ing this project
When trying to run the example code I get an error. Using
gnuradio-companion
3.8,Python 3.8
andgr-rds
3.8.