[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] ImportError: No module named _osmosdr_swig
From: |
Cinaed Simson |
Subject: |
Re: [Discuss-gnuradio] ImportError: No module named _osmosdr_swig |
Date: |
Mon, 8 May 2017 22:02:30 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 |
On 05/08/2017 03:44 PM, Fernando wrote:
> My GRC crashes when I place a osmocom source and osmocon sink.
>
> Doing some research I have found that is a python problem with _osmosdr_swig
>
> address@hidden:~> python -c 'import osmosdr' Traceback (most recent
> call last): File "<string>", line 1, in <module> File
> "/usr/lib64/python2.7/site-packages/osmosdr/__init__.py", line 26, in
> <module> from osmosdr_swig import * File
> "/usr/lib64/python2.7/site-packages/osmosdr/osmosdr_swig.py", line 21,
> in <module> _osmosdr_swig = swig_import_helper() File
> "/usr/lib64/python2.7/site-packages/osmosdr/osmosdr_swig.py", line 20,
> in swig_import_helper return
> importlib.import_module('_osmosdr_swig') File
> "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
> __import__(name) ImportError: No module named _osmosdr_swig
> address@hidden:~>
>
> I am using Opensuse 42.2, and it have been reported taht it works fine
> for other people with the same OS.
>
> there is a package called python-gr-osmosdr wich contains
> /usr/lib64/python2.7/site-packages/osmosdr/osmosdr_swig.py
Remove the directory
/home/fernando/.grc_gnuradio
Check to ensure there's a shared library
_osmosdr_swig.so
in the same directory.
Check to ensure the installation of gnuradio was added to your python path
python -c "import os; print(os.environ.get('PYTHONPATH', ''))"
Check to ensure there's only one installation of gnuradio.
-- Cinaed
>
> regards
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
- [Discuss-gnuradio] ImportError: No module named _osmosdr_swig, Fernando, 2017/05/08
- Re: [Discuss-gnuradio] ImportError: No module named _osmosdr_swig,
Cinaed Simson <=
- Re: [Discuss-gnuradio] ImportError: No module named _osmosdr_swig, Fernando, 2017/05/09
- Re: [Discuss-gnuradio] ImportError: No module named _osmosdr_swig, Cinaed Simson, 2017/05/09
- Re: [Discuss-gnuradio] ImportError: No module named _osmosdr_swig, Fernando, 2017/05/10
- Re: [Discuss-gnuradio] ImportError: No module named _osmosdr_swig, Cinaed Simson, 2017/05/10
- Re: [Discuss-gnuradio] ImportError: No module named _osmosdr_swig, Fernando, 2017/05/10
- Re: [Discuss-gnuradio] ImportError: No module named _osmosdr_swig, Bastian Bloessl, 2017/05/11
Re: [Discuss-gnuradio] ImportError: No module named _osmosdr_swig, Michael Dickens, 2017/05/09