[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Unable to get python3 to import osmosdr module.
From: |
Chris Gorman |
Subject: |
[Discuss-gnuradio] Unable to get python3 to import osmosdr module. |
Date: |
Sun, 18 Aug 2019 14:19:40 -0400 |
Hello All,
I have been playing around with gnuradio-3.9 from git. The new
gnuradio uses python3 and I have been unable to get gr-osmosdr to load
with python3. I am using Mickey Vänskä's repository of gr-osmosdr for
gnuradio 3.8. ( https://github.com/mvaenskae/gr-osmosdr/tree/gr3.8 )
I can get the library to build and install but when I attempt to load
the osmosdr module I get ...
$ python3 -c 'import osmosdr'
No module named '_osmosdr_swig'
I have tried setting the PYTHONPATH to see if perhaps that would fix
the problem, but it does not.
The directory /usr/local/lib/python3.6/dist-packages/osmosdr contains
$ ls /usr/local/lib/python3.6/dist-packages/osmosdr
__init__.py osmocom_siggen_base.py osmosdr_swig.py _osmosdr_swig.so
__init__.pyc osmocom_siggen_base.pyc osmosdr_swig.pyc
__init__.pyo osmocom_siggen_base.pyo osmosdr_swig.pyo
I have triied building swig 4 to see if that made a difference with
osmosdr_swig.py, but it is still being built with swig 3.0.12.
I believe this is a problem with python2 vs python3, but I have yet to
test that as it means a rebuild of gnuradio and I wanted to ask if
anyone knows what I'm missing first.
Thanks in advance.
Chris Gorman
- [Discuss-gnuradio] Unable to get python3 to import osmosdr module.,
Chris Gorman <=