Quantcast

ImportError: No module named _osmosdr_swig

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ImportError: No module named _osmosdr_swig

Fernando Peral

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

fernando@andromeda:~> 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 fernando@andromeda:~>

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

what more can I test?

regards


_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ImportError: No module named _osmosdr_swig

Cinaed Simson
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
>
> fernando@andromeda:~> 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
> fernando@andromeda:~>
>
> 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
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>


_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ImportError: No module named _osmosdr_swig

Fernando Peral



On 09/05/17 07:02, Cinaed Simson wrote:

> 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
>>
>> fernando@andromeda:~> 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
>> fernando@andromeda:~>
>>
>> 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
>

_osmosdr_swig.so  is here

andromeda:/home/fernando # find / |grep _osmosdr_swig.so
/usr/lib64/python2.7/site-packages/osmosdr/_osmosdr_swig.so



fernando@andromeda:~> python -c "import os;
print(os.environ.get('PYTHONPATH', ''))"
it reports no error


I have deleted  /home/fernando/.grc_gnuradio

and....

fernando@andromeda:~> gnuradio-companion
/usr/lib64/python2.7/site-packages/gnuradio/grc/gui/BlockTreeWindow.py:102:
GtkWarning: Theme directory base/ of theme oxygen has no size field

  self.search_entry.set_icon_from_stock(gtk.ENTRY_ICON_PRIMARY,
gtk.STOCK_FIND)
<<< Welcome to GNU Radio Companion 3.7.11 >>>

Block paths:
        /usr/share/gnuradio/grc/blocks
Warning: restarting the docstring loader (crashed while loading
'osmosdr_sink')
Warning: restarting the docstring loader (crashed while loading
'osmosdr_source')
Warning: restarting the docstring loader (crashed while loading
'uhd_amsg_source')
Warning: restarting the docstring loader (crashed while loading
'uhd_usrp_sink')
Warning: restarting the docstring loader (crashed while loading
'uhd_usrp_source')
Warning: docstring loader crashed too often
Segmentation fault (core dumped)
fernando@andromeda:~> ^C
fernando@andromeda:~>

and it crashes again


I have tried as another user just in case it was something of my
personal profile, but it also crashes.

I have only one installation of gnuradio.

Can i try something more?


thanks




_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ImportError: No module named _osmosdr_swig

Michael Dickens
In reply to this post by Fernando Peral
Hi Fernando - I've seen this issue on some older Mac OS X installs (e.g., 10.7 or 10.8 from 2011/2012). I have yet to figure out what's going on, and it works for MacOS X 10.9 and newer 100% as far as I can tell so I'm not concentrating efforts on the older no-longer-supported OSs.

Your Opensuse is not very old (Nov 2016), so chances are it has something to do with your specific install. Oddly though, the error is identical to what I see. There is some more debugging you can do to verify the specifics of the error, which I can provide off-list as they require temporarily modifying in-place Python scripts.

Maybe reply to me off-list and I'll try to help you out; if we figure out what's going on we can post back to the list here. Please provide me with the output from a terminal of "env" as well as a list of what's installed by the system (via "dpkg" or "yum" or whatever package manager can list it; I don't know Opensuse). Also, if you have installed anything from source and if so what projects and where (maybe a list of files installed with full path).

Cheers! - MLD

On Mon, May 8, 2017, at 06: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


fernando@andromeda:~> 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 fernando@andromeda:~>

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


what more can I test?



_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ImportError: No module named _osmosdr_swig

Cinaed Simson
In reply to this post by Fernando Peral
On 05/09/2017 12:23 AM, Fernando wrote:

>
>
>
> On 09/05/17 07:02, Cinaed Simson wrote:
>> 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
>>>
>>> fernando@andromeda:~> 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
>>> fernando@andromeda:~>
>>>
>>> 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
>>
>
> _osmosdr_swig.so  is here
>
> andromeda:/home/fernando # find / |grep _osmosdr_swig.so
> /usr/lib64/python2.7/site-packages/osmosdr/_osmosdr_swig.so
>
>
>
> fernando@andromeda:~> python -c "import os;
> print(os.environ.get('PYTHONPATH', ''))"
> it reports no error

Actually, not reporting a PYTHONPATH is an error.

In order for the gnuradio-companion to find osmosdr/_osmosdr_swig.so it
needs a PYTHONPATH defined - there's more than version of python
installed on most Linux systems.

Try it again but type

  python2.7 -c "import os; print(os.environ.get('PYTHONPATH', ''))"

It's possible that python is linked to a different version of python2.7
on your system.

If it's empty again, make sure python2.7 is the version of python you're
using in your shell by typing

   python --version

If the version is not python2.7 (or a minor version of 2.7) then add

   alias python="/usr/bin/python2.7"

to your $HOME/.bashrc file.

And add then

   export PYTHONPATH="/usr/lib64/python2.7/site-packages"

to your $HOME/.bashrc

Then finally, type

    . $HOME/.bashrc

There's a "period" in front of $HOME/.bashrc - it may be hard to see -
it means source the file $HOME/.bashrc - which will set your PYTHONPATH
environment variable.

Then try to to startup up gnuradio-companion again.

-- Cinaed


>
>
> I have deleted  /home/fernando/.grc_gnuradio
>
> and....
>
> fernando@andromeda:~> gnuradio-companion
> /usr/lib64/python2.7/site-packages/gnuradio/grc/gui/BlockTreeWindow.py:102:
> GtkWarning: Theme directory base/ of theme oxygen has no size field
>
>   self.search_entry.set_icon_from_stock(gtk.ENTRY_ICON_PRIMARY,
> gtk.STOCK_FIND)
> <<< Welcome to GNU Radio Companion 3.7.11 >>>
>
> Block paths:
>         /usr/share/gnuradio/grc/blocks
> Warning: restarting the docstring loader (crashed while loading
> 'osmosdr_sink')
> Warning: restarting the docstring loader (crashed while loading
> 'osmosdr_source')
> Warning: restarting the docstring loader (crashed while loading
> 'uhd_amsg_source')
> Warning: restarting the docstring loader (crashed while loading
> 'uhd_usrp_sink')
> Warning: restarting the docstring loader (crashed while loading
> 'uhd_usrp_source')
> Warning: docstring loader crashed too often
> Segmentation fault (core dumped)
> fernando@andromeda:~> ^C
> fernando@andromeda:~>
>
> and it crashes again
>
>
> I have tried as another user just in case it was something of my
> personal profile, but it also crashes.
>
> I have only one installation of gnuradio.
>
> Can i try something more?
>
>
> thanks
>
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> .
>


_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ImportError: No module named _osmosdr_swig

Fernando Peral
fernando@andromeda:~> python2.7 -c "import os;
print(os.environ.get('PYTHONPATH', ''))"

fernando@andromeda:~> python --version
Python 2.7.12
fernando@andromeda:~>


fernando@andromeda:~> export PYTHONPATH="/usr/lib64/python2.7/site-packages"
fernando@andromeda:~> python2.7 -c "import os;
print(os.environ.get('PYTHONPATH', ''))"
/usr/lib64/python2.7/site-packages
fernando@andromeda:~>


and running gnuradio-companion it crashes again with osmocom


no luck  :-(

thanks



On 10/05/17 03:46, Cinaed Simson wrote:

> On 05/09/2017 12:23 AM, Fernando wrote:
>>
>>
>> On 09/05/17 07:02, Cinaed Simson wrote:
>>> 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
>>>>
>>>> fernando@andromeda:~> 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
>>>> fernando@andromeda:~>
>>>>
>>>> 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
>>>
>> _osmosdr_swig.so  is here
>>
>> andromeda:/home/fernando # find / |grep _osmosdr_swig.so
>> /usr/lib64/python2.7/site-packages/osmosdr/_osmosdr_swig.so
>>
>>
>>
>> fernando@andromeda:~> python -c "import os;
>> print(os.environ.get('PYTHONPATH', ''))"
>> it reports no error
> Actually, not reporting a PYTHONPATH is an error.
>
> In order for the gnuradio-companion to find osmosdr/_osmosdr_swig.so it
> needs a PYTHONPATH defined - there's more than version of python
> installed on most Linux systems.
>
> Try it again but type
>
>   python2.7 -c "import os; print(os.environ.get('PYTHONPATH', ''))"
>
> It's possible that python is linked to a different version of python2.7
> on your system.
>
> If it's empty again, make sure python2.7 is the version of python you're
> using in your shell by typing
>
>    python --version
>
> If the version is not python2.7 (or a minor version of 2.7) then add
>
>    alias python="/usr/bin/python2.7"
>
> to your $HOME/.bashrc file.
>
> And add then
>
>    export PYTHONPATH="/usr/lib64/python2.7/site-packages"
>
> to your $HOME/.bashrc
>
> Then finally, type
>
>     . $HOME/.bashrc
>
> There's a "period" in front of $HOME/.bashrc - it may be hard to see -
> it means source the file $HOME/.bashrc - which will set your PYTHONPATH
> environment variable.
>
> Then try to to startup up gnuradio-companion again.
>
> -- Cinaed
>
>
>>
>> I have deleted  /home/fernando/.grc_gnuradio
>>
>> and....
>>
>> fernando@andromeda:~> gnuradio-companion
>> /usr/lib64/python2.7/site-packages/gnuradio/grc/gui/BlockTreeWindow.py:102:
>> GtkWarning: Theme directory base/ of theme oxygen has no size field
>>
>>   self.search_entry.set_icon_from_stock(gtk.ENTRY_ICON_PRIMARY,
>> gtk.STOCK_FIND)
>> <<< Welcome to GNU Radio Companion 3.7.11 >>>
>>
>> Block paths:
>>         /usr/share/gnuradio/grc/blocks
>> Warning: restarting the docstring loader (crashed while loading
>> 'osmosdr_sink')
>> Warning: restarting the docstring loader (crashed while loading
>> 'osmosdr_source')
>> Warning: restarting the docstring loader (crashed while loading
>> 'uhd_amsg_source')
>> Warning: restarting the docstring loader (crashed while loading
>> 'uhd_usrp_sink')
>> Warning: restarting the docstring loader (crashed while loading
>> 'uhd_usrp_source')
>> Warning: docstring loader crashed too often
>> Segmentation fault (core dumped)
>> fernando@andromeda:~> ^C
>> fernando@andromeda:~>
>>
>> and it crashes again
>>
>>
>> I have tried as another user just in case it was something of my
>> personal profile, but it also crashes.
>>
>> I have only one installation of gnuradio.
>>
>> Can i try something more?
>>
>>
>> thanks
>>
>>
>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> [hidden email]
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>> .
>>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>


_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ImportError: No module named _osmosdr_swig

Cinaed Simson
On 05/10/2017 06:56 AM, Fernando wrote:

> fernando@andromeda:~> python2.7 -c "import os;
> print(os.environ.get('PYTHONPATH', ''))"
>
> fernando@andromeda:~> python --version
> Python 2.7.12
> fernando@andromeda:~>
>
>
> fernando@andromeda:~> export PYTHONPATH="/usr/lib64/python2.7/site-packages"
> fernando@andromeda:~> python2.7 -c "import os;
> print(os.environ.get('PYTHONPATH', ''))"
> /usr/lib64/python2.7/site-packages
> fernando@andromeda:~>

The odd thing is gnuradio-companion should have complained if the
PYTHONPATH wasn't being set.

So it's being set somewhere else.

How do you know you only have one installation of gnuradio installed?

And where did you get the gnuradio you installed?

In any case type

 which gnuradio-config-info

and

   gnuradio-config-info --prefix --sysconfdir --enabled-components
--builddate --prefsdir --version

Then you need to find your grc.conf file and delete it

  find $HOME -name grc.conf

Then try to start gnuradio-companion - don't add anything to the flow
graph. Just see if it starts up properly.

-- Cinaed


>
>
> and running gnuradio-companion it crashes again with osmocom
>
>
> no luck  :-(
>
> thanks
>
>
>
> On 10/05/17 03:46, Cinaed Simson wrote:
>> On 05/09/2017 12:23 AM, Fernando wrote:
>>>
>>>
>>> On 09/05/17 07:02, Cinaed Simson wrote:
>>>> 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
>>>>>
>>>>> fernando@andromeda:~> 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
>>>>> fernando@andromeda:~>
>>>>>
>>>>> 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
>>>>
>>> _osmosdr_swig.so  is here
>>>
>>> andromeda:/home/fernando # find / |grep _osmosdr_swig.so
>>> /usr/lib64/python2.7/site-packages/osmosdr/_osmosdr_swig.so
>>>
>>>
>>>
>>> fernando@andromeda:~> python -c "import os;
>>> print(os.environ.get('PYTHONPATH', ''))"
>>> it reports no error
>> Actually, not reporting a PYTHONPATH is an error.
>>
>> In order for the gnuradio-companion to find osmosdr/_osmosdr_swig.so it
>> needs a PYTHONPATH defined - there's more than version of python
>> installed on most Linux systems.
>>
>> Try it again but type
>>
>>   python2.7 -c "import os; print(os.environ.get('PYTHONPATH', ''))"
>>
>> It's possible that python is linked to a different version of python2.7
>> on your system.
>>
>> If it's empty again, make sure python2.7 is the version of python you're
>> using in your shell by typing
>>
>>    python --version
>>
>> If the version is not python2.7 (or a minor version of 2.7) then add
>>
>>    alias python="/usr/bin/python2.7"
>>
>> to your $HOME/.bashrc file.
>>
>> And add then
>>
>>    export PYTHONPATH="/usr/lib64/python2.7/site-packages"
>>
>> to your $HOME/.bashrc
>>
>> Then finally, type
>>
>>     . $HOME/.bashrc
>>
>> There's a "period" in front of $HOME/.bashrc - it may be hard to see -
>> it means source the file $HOME/.bashrc - which will set your PYTHONPATH
>> environment variable.
>>
>> Then try to to startup up gnuradio-companion again.
>>
>> -- Cinaed
>>
>>
>>>
>>> I have deleted  /home/fernando/.grc_gnuradio
>>>
>>> and....
>>>
>>> fernando@andromeda:~> gnuradio-companion
>>> /usr/lib64/python2.7/site-packages/gnuradio/grc/gui/BlockTreeWindow.py:102:
>>> GtkWarning: Theme directory base/ of theme oxygen has no size field
>>>
>>>   self.search_entry.set_icon_from_stock(gtk.ENTRY_ICON_PRIMARY,
>>> gtk.STOCK_FIND)
>>> <<< Welcome to GNU Radio Companion 3.7.11 >>>
>>>
>>> Block paths:
>>>         /usr/share/gnuradio/grc/blocks
>>> Warning: restarting the docstring loader (crashed while loading
>>> 'osmosdr_sink')
>>> Warning: restarting the docstring loader (crashed while loading
>>> 'osmosdr_source')
>>> Warning: restarting the docstring loader (crashed while loading
>>> 'uhd_amsg_source')
>>> Warning: restarting the docstring loader (crashed while loading
>>> 'uhd_usrp_sink')
>>> Warning: restarting the docstring loader (crashed while loading
>>> 'uhd_usrp_source')
>>> Warning: docstring loader crashed too often
>>> Segmentation fault (core dumped)
>>> fernando@andromeda:~> ^C
>>> fernando@andromeda:~>
>>>
>>> and it crashes again
>>>
>>>
>>> I have tried as another user just in case it was something of my
>>> personal profile, but it also crashes.
>>>
>>> I have only one installation of gnuradio.
>>>
>>> Can i try something more?
>>>
>>>
>>> thanks
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Discuss-gnuradio mailing list
>>> [hidden email]
>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>> .
>>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> [hidden email]
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>


_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ImportError: No module named _osmosdr_swig

Fernando Peral
On 10/05/17 22:43, Cinaed Simson wrote:
> The odd thing is gnuradio-companion should have complained if the
> PYTHONPATH wasn't being set.
>
> So it's being set somewhere else.
>
> How do you know you only have one installation of gnuradio installed?
Opensuse has a packet manager similar to debian, I have installed
gnuradio from the packet manager

>
> And where did you get the gnuradio you installed?
>
> In any case type
>
>  which gnuradio-config-info
>
> and
>
>    gnuradio-config-info --prefix --sysconfdir --enabled-components
> --builddate --prefsdir --version

fernando@andromeda:~> which gnuradio-config-info
/usr/bin/gnuradio-config-info
fernando@andromeda:~> gnuradio-config-info --prefix --sysconfdir
--enabled-components --builddate --prefsdir --version
/usr
/etc
/etc/gnuradio/conf.d

python-support;testing-support;volk;doxygen;sphinx;gnuradio-runtime;gr-ctrlport;gr-blocks;gnuradio-companion;gr-fec;gr-fft;gr-filter;gr-analog;gr-digital;gr-dtv;gr-atsc;gr-audio;*
alsa;* oss;* jack;*
portaudio;gr-channels;gr-noaa;gr-pager;gr-qtgui;gr-trellis;gr-uhd;gr-utils;gr-video-sdl;gr-vocoder;gr-fcd;gr-wavelet;gr-wxgui
3.7.11
fernando@andromeda:~>


>
> Then you need to find your grc.conf file and delete it
>
>   find $HOME -name grc.conf
>
> Then try to start gnuradio-companion - don't add anything to the flow
> graph. Just see if it starts up properly.
>

It starts properly, but when I try to add both osmocom blocks it crashes
again

I have made a clean install of the same version of Opensuse (42.2) in a
different partition, sharing the same /home partition, installed
gnuradio and gr-osmosdr and it does not crash

thanks







>
>
>>
>> and running gnuradio-companion it crashes again with osmocom
>>
>>
>> no luck  :-(
>>
>> thanks
>>
>>
>>
>> On 10/05/17 03:46, Cinaed Simson wrote:
>>> On 05/09/2017 12:23 AM, Fernando wrote:
>>>>
>>>> On 09/05/17 07:02, Cinaed Simson wrote:
>>>>> 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
>>>>>>
>>>>>> fernando@andromeda:~> 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
>>>>>> fernando@andromeda:~>
>>>>>>
>>>>>> 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
>>>>>
>>>> _osmosdr_swig.so  is here
>>>>
>>>> andromeda:/home/fernando # find / |grep _osmosdr_swig.so
>>>> /usr/lib64/python2.7/site-packages/osmosdr/_osmosdr_swig.so
>>>>
>>>>
>>>>
>>>> fernando@andromeda:~> python -c "import os;
>>>> print(os.environ.get('PYTHONPATH', ''))"
>>>> it reports no error
>>> Actually, not reporting a PYTHONPATH is an error.
>>>
>>> In order for the gnuradio-companion to find osmosdr/_osmosdr_swig.so it
>>> needs a PYTHONPATH defined - there's more than version of python
>>> installed on most Linux systems.
>>>
>>> Try it again but type
>>>
>>>   python2.7 -c "import os; print(os.environ.get('PYTHONPATH', ''))"
>>>
>>> It's possible that python is linked to a different version of python2.7
>>> on your system.
>>>
>>> If it's empty again, make sure python2.7 is the version of python you're
>>> using in your shell by typing
>>>
>>>    python --version
>>>
>>> If the version is not python2.7 (or a minor version of 2.7) then add
>>>
>>>    alias python="/usr/bin/python2.7"
>>>
>>> to your $HOME/.bashrc file.
>>>
>>> And add then
>>>
>>>    export PYTHONPATH="/usr/lib64/python2.7/site-packages"
>>>
>>> to your $HOME/.bashrc
>>>
>>> Then finally, type
>>>
>>>     . $HOME/.bashrc
>>>
>>> There's a "period" in front of $HOME/.bashrc - it may be hard to see -
>>> it means source the file $HOME/.bashrc - which will set your PYTHONPATH
>>> environment variable.
>>>
>>> Then try to to startup up gnuradio-companion again.
>>>
>>> -- Cinaed
>>>
>>>
>>>> I have deleted  /home/fernando/.grc_gnuradio
>>>>
>>>> and....
>>>>
>>>> fernando@andromeda:~> gnuradio-companion
>>>> /usr/lib64/python2.7/site-packages/gnuradio/grc/gui/BlockTreeWindow.py:102:
>>>> GtkWarning: Theme directory base/ of theme oxygen has no size field
>>>>
>>>>   self.search_entry.set_icon_from_stock(gtk.ENTRY_ICON_PRIMARY,
>>>> gtk.STOCK_FIND)
>>>> <<< Welcome to GNU Radio Companion 3.7.11 >>>
>>>>
>>>> Block paths:
>>>>         /usr/share/gnuradio/grc/blocks
>>>> Warning: restarting the docstring loader (crashed while loading
>>>> 'osmosdr_sink')
>>>> Warning: restarting the docstring loader (crashed while loading
>>>> 'osmosdr_source')
>>>> Warning: restarting the docstring loader (crashed while loading
>>>> 'uhd_amsg_source')
>>>> Warning: restarting the docstring loader (crashed while loading
>>>> 'uhd_usrp_sink')
>>>> Warning: restarting the docstring loader (crashed while loading
>>>> 'uhd_usrp_source')
>>>> Warning: docstring loader crashed too often
>>>> Segmentation fault (core dumped)
>>>> fernando@andromeda:~> ^C
>>>> fernando@andromeda:~>
>>>>
>>>> and it crashes again
>>>>
>>>>
>>>> I have tried as another user just in case it was something of my
>>>> personal profile, but it also crashes.
>>>>
>>>> I have only one installation of gnuradio.
>>>>
>>>> Can i try something more?
>>>>
>>>>
>>>> thanks
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Discuss-gnuradio mailing list
>>>> [hidden email]
>>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>>> .
>>>>
>>> _______________________________________________
>>> Discuss-gnuradio mailing list
>>> [hidden email]
>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>>
>>>
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> [hidden email]
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>


_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ImportError: No module named _osmosdr_swig

Bastian Bloessl-3
Maybe it’s a problem with loading the shared library, similar to this issue:

https://github.com/bastibl/gr-ieee802-11/issues/74

Best,
Bastian


> On 10. May 2017, at 23:19, Fernando <[hidden email]> wrote:
>
> On 10/05/17 22:43, Cinaed Simson wrote:
>> The odd thing is gnuradio-companion should have complained if the
>> PYTHONPATH wasn't being set.
>>
>> So it's being set somewhere else.
>>
>> How do you know you only have one installation of gnuradio installed?
> Opensuse has a packet manager similar to debian, I have installed
> gnuradio from the packet manager
>
>>
>> And where did you get the gnuradio you installed?
>>
>> In any case type
>>
>> which gnuradio-config-info
>>
>> and
>>
>>   gnuradio-config-info --prefix --sysconfdir --enabled-components
>> --builddate --prefsdir --version
>
> fernando@andromeda:~> which gnuradio-config-info
> /usr/bin/gnuradio-config-info
> fernando@andromeda:~> gnuradio-config-info --prefix --sysconfdir
> --enabled-components --builddate --prefsdir --version
> /usr
> /etc
> /etc/gnuradio/conf.d
>
> python-support;testing-support;volk;doxygen;sphinx;gnuradio-runtime;gr-ctrlport;gr-blocks;gnuradio-companion;gr-fec;gr-fft;gr-filter;gr-analog;gr-digital;gr-dtv;gr-atsc;gr-audio;*
> alsa;* oss;* jack;*
> portaudio;gr-channels;gr-noaa;gr-pager;gr-qtgui;gr-trellis;gr-uhd;gr-utils;gr-video-sdl;gr-vocoder;gr-fcd;gr-wavelet;gr-wxgui
> 3.7.11
> fernando@andromeda:~>
>
>
>>
>> Then you need to find your grc.conf file and delete it
>>
>>  find $HOME -name grc.conf
>>
>> Then try to start gnuradio-companion - don't add anything to the flow
>> graph. Just see if it starts up properly.
>>
>
> It starts properly, but when I try to add both osmocom blocks it crashes
> again
>
> I have made a clean install of the same version of Opensuse (42.2) in a
> different partition, sharing the same /home partition, installed
> gnuradio and gr-osmosdr and it does not crash
>
> thanks
>
>
>
>
>
>
>
>>
>>
>>>
>>> and running gnuradio-companion it crashes again with osmocom
>>>
>>>
>>> no luck  :-(
>>>
>>> thanks
>>>
>>>
>>>
>>> On 10/05/17 03:46, Cinaed Simson wrote:
>>>> On 05/09/2017 12:23 AM, Fernando wrote:
>>>>>
>>>>> On 09/05/17 07:02, Cinaed Simson wrote:
>>>>>> 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
>>>>>>>
>>>>>>> fernando@andromeda:~> 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
>>>>>>> fernando@andromeda:~>
>>>>>>>
>>>>>>> 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
>>>>>>
>>>>> _osmosdr_swig.so  is here
>>>>>
>>>>> andromeda:/home/fernando # find / |grep _osmosdr_swig.so
>>>>> /usr/lib64/python2.7/site-packages/osmosdr/_osmosdr_swig.so
>>>>>
>>>>>
>>>>>
>>>>> fernando@andromeda:~> python -c "import os;
>>>>> print(os.environ.get('PYTHONPATH', ''))"
>>>>> it reports no error
>>>> Actually, not reporting a PYTHONPATH is an error.
>>>>
>>>> In order for the gnuradio-companion to find osmosdr/_osmosdr_swig.so it
>>>> needs a PYTHONPATH defined - there's more than version of python
>>>> installed on most Linux systems.
>>>>
>>>> Try it again but type
>>>>
>>>>  python2.7 -c "import os; print(os.environ.get('PYTHONPATH', ''))"
>>>>
>>>> It's possible that python is linked to a different version of python2.7
>>>> on your system.
>>>>
>>>> If it's empty again, make sure python2.7 is the version of python you're
>>>> using in your shell by typing
>>>>
>>>>   python --version
>>>>
>>>> If the version is not python2.7 (or a minor version of 2.7) then add
>>>>
>>>>   alias python="/usr/bin/python2.7"
>>>>
>>>> to your $HOME/.bashrc file.
>>>>
>>>> And add then
>>>>
>>>>   export PYTHONPATH="/usr/lib64/python2.7/site-packages"
>>>>
>>>> to your $HOME/.bashrc
>>>>
>>>> Then finally, type
>>>>
>>>>    . $HOME/.bashrc
>>>>
>>>> There's a "period" in front of $HOME/.bashrc - it may be hard to see -
>>>> it means source the file $HOME/.bashrc - which will set your PYTHONPATH
>>>> environment variable.
>>>>
>>>> Then try to to startup up gnuradio-companion again.
>>>>
>>>> -- Cinaed
>>>>
>>>>
>>>>> I have deleted  /home/fernando/.grc_gnuradio
>>>>>
>>>>> and....
>>>>>
>>>>> fernando@andromeda:~> gnuradio-companion
>>>>> /usr/lib64/python2.7/site-packages/gnuradio/grc/gui/BlockTreeWindow.py:102:
>>>>> GtkWarning: Theme directory base/ of theme oxygen has no size field
>>>>>
>>>>>  self.search_entry.set_icon_from_stock(gtk.ENTRY_ICON_PRIMARY,
>>>>> gtk.STOCK_FIND)
>>>>> <<< Welcome to GNU Radio Companion 3.7.11 >>>
>>>>>
>>>>> Block paths:
>>>>>        /usr/share/gnuradio/grc/blocks
>>>>> Warning: restarting the docstring loader (crashed while loading
>>>>> 'osmosdr_sink')
>>>>> Warning: restarting the docstring loader (crashed while loading
>>>>> 'osmosdr_source')
>>>>> Warning: restarting the docstring loader (crashed while loading
>>>>> 'uhd_amsg_source')
>>>>> Warning: restarting the docstring loader (crashed while loading
>>>>> 'uhd_usrp_sink')
>>>>> Warning: restarting the docstring loader (crashed while loading
>>>>> 'uhd_usrp_source')
>>>>> Warning: docstring loader crashed too often
>>>>> Segmentation fault (core dumped)
>>>>> fernando@andromeda:~> ^C
>>>>> fernando@andromeda:~>
>>>>>
>>>>> and it crashes again
>>>>>
>>>>>
>>>>> I have tried as another user just in case it was something of my
>>>>> personal profile, but it also crashes.
>>>>>
>>>>> I have only one installation of gnuradio.
>>>>>
>>>>> Can i try something more?
>>>>>
>>>>>


_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ImportError: No module named _osmosdr_swig

Fernando Peral
In reply to this post by Michael Dickens
After a lot of research guided by Michel Dickens, we found out the solution

The symptom:  GRC crashes when placing osmosdr source and osmosdr sink
in a diagram on Opensuse Leap 42.2. Both gnuradio and gr_osmosdr
installed from hamradio repository, but I had tried other repositories
also with same error.


We find the error was generated by

fernando@andromeda:~> 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
fernando@andromeda:~>



I replaced file
"/usr/lib64/python2.7/site-packages/osmosdr/osmosdr_swig.py" with the
one attached and got different error:
fernando@andromeda:~> 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 14, in <module>
    _osmosdr_swig = swig_import_helper()
  File "/usr/lib64/python2.7/site-packages/osmosdr/osmosdr_swig.py",
line 13, in swig_import_helper
    return importlib.import_module(mname)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in
import_module
    __import__(name)
ImportError: /usr/lib64/libairspy.so.0: undefined symbol:
libusb_handle_events_timeout_completed
fernando@andromeda:~>



So it was a problem generated by libusb. I made a cleanup of libusb 32
bits libraries but problem remained.
Then we found the error was generated by  /usr/local/lib/libusb-1.0.so.0

andromeda:~ # /bin/ls -lAF  /usr/local/lib/libusb-1.0.so.0
lrwxrwxrwx 1 root root 17 Feb  4  2016 /usr/local/lib/libusb-1.0.so.0 ->
libmchpusb-1.0.so*
andromeda:~ # nm -a   /usr/local/lib/libusb-1.0.so.0 | grep timeout
0000000000005500 t arm_timerfd_for_next_timeout
0000000000005260 t get_next_timeout
00000000000054a0 t handle_timeouts
0000000000005380 t handle_timeouts_locked
0000000000005090 T libusb_get_next_timeout
0000000000005e70 T libusb_handle_events_timeout
0000000000004c60 T libusb_pollfds_handle_timeouts
andromeda:~ #



I found that /usr/local/lib/libmchpusb-1.0.so wasn't in the rpm
database, so it seems not to be used by any package, so I tried to
remove the soft link


andromeda:/home/fernando # rm /usr/local/lib/libusb-1.0.so.0
andromeda:/home/fernando # /bin/ls -lAF  /usr/local/lib/libusb-1.0.so.0
/bin/ls: cannot access '/usr/local/lib/libusb-1.0.so.0': No such file or
directory
andromeda:/home/fernando # ldconfig
andromeda:/home/fernando # /bin/ls -lAF  /usr/local/lib/libusb-1.0.so.0
lrwxrwxrwx 1 root root 17 May 16 00:22 /usr/local/lib/libusb-1.0.so.0 ->
libmchpusb-1.0.so*
andromeda:/home/fernando #

I delete the soft link but when running ldconfig it appears again


I found who installed /usr/local/lib/libusb-1.0.so.0 ->libmchpusb-1.0.so*
I was michochip mplabx and it is reported the error with ldconfig
http://www.microchip.com/forums/m729021.aspx
https://groups.google.com/forum/#!msg/linrad/HVjwG36Kl9c/37hTBl1IIX0J

So I deleted ALL microchip software (I had a lot of old microchip
software, with more than one version of the same programs: xc8, xc16,
mplabx, etc.) and we solve the problem.
I installed the new versions of microchip programs and the problem did
not appear again.


thanks Michael.












_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

osmosdr_swig.py (91K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ImportError: No module named _osmosdr_swig

Michael Dickens
Great summary, Fernando. You're welcome for the assistance & thank you
for persevering! - MLD

On Fri, May 19, 2017, at 04:55 AM, Fernando wrote:
> After a lot of research guided by Michel Dickens, we found out the solution

_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Loading...