User has run build-gnuradio. The verbose log looks just fine, their
settings for PYTHONPATH, and ld.so.conf.d settings are all just fine.
Yet, for osmosdr:
michele@Workstation:~$ python -c “import osmosdr”
linux; GNU C++ version 4.7.3; Boost_105300; UHD_003.005.003-83-g3924a4d7
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python2.7/dist-packages/osmosdr/init.py”,
line 45, in
from osmosdr_swig import *
File
“/usr/local/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py”, line
26, in
_osmosdr_swig = swig_import_helper()
File
“/usr/local/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py”, line
22, in swig_import_helper
_mod = imp.load_module(‘_osmosdr_swig’, fp, pathname, description)
ImportError: dynamic module does not define init function
(init_osmosdr_swig)
And gnuradio itself:
michele@Workstation:~$ python -c “import osmosdr”
linux; GNU C++ version 4.7.3; Boost_105300; UHD_003.005.003-83-g3924a4d7
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python2.7/dist-packages/osmosdr/init.py”,
line 45, in
from osmosdr_swig import *
File
“/usr/local/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py”, line
26, in
_osmosdr_swig = swig_import_helper()
File
“/usr/local/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py”, line
22, in swig_import_helper
_mod = imp.load_module(‘_osmosdr_swig’, fp, pathname, description)
ImportError: dynamic module does not define init function
(init_osmosdr_swig)
And of course, when they try to run gnuradio-companion, it all falls
apart.
This rather looks like a linker issue, but I can’t find any reason for
it. The target system is Ubuntu 13.04 x86_64.
I’ve been through their build log–nothing untoward. Their system
appears to be configured properly, and PYTHONPATH appears to be good.
But this persists. I even had them manually:
sudo ldconfig /usr/local/lib
Just to see if maybe the config in ld.so.conf.d wasn’t being handled.
The only thing I can think of now is that se-linux is getting in the
way, but does Ubuntu 13.04 ship with se-linux turned on?
–
Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium