discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] gnuradio-companion swig error?


From: Michael Dickens
Subject: Re: [Discuss-gnuradio] gnuradio-companion swig error?
Date: Sun, 26 Feb 2017 13:45:33 -0500

According to nabble, your original post has yet to be authorized. I'll
append it for completion.

So you're running on an older OS X box (10.8), using the libc++ hack for
older systems. That should be OK. Most folks I know who use it do it
with 10.6 or 10.7, but it should work on 10.8 too.

If you wanted gr-osmosdr without SoapySDR, just do "sudo port install
gr-osmosdr -soapysdr", and you'll gr-osmosdr with the rest of the
default variants included but without SoapySDR.

What does "port contents gr-osmosdr | grep _osmosdr_swig" return for
you? Hopefully the swig file is installed into
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osmosdr/"
... if not, there's an issue ...

Can you attach the simple_am_rx.py script to a followup email so that we
can verify that it works for us?

Hope this is useful! - MLD

{{{
trying out gnuradio-companion 
followed a youtube tutorial for a simple am rcvr 

did not work, error as follows: 

Generating: '/Users/SDR/simple_am_rx.py' 

Executing:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
-u /Users/SDR/simple_am_rx.py 

Traceback (most recent call last): 
  File "/Users/SDR/simple_am_rx.py", line 33, in <module>
    import osmosdr 
  File
  
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osmosdr/__init__.py",
  line 26, in <module>
    from osmosdr_swig import * 
  File
  
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osmosdr/osmosdr_swig.py",
  line 17, in <module>
    _osmosdr_swig = swig_import_helper() 
  File
  
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osmosdr/osmosdr_swig.py",
  line 16, in swig_import_helper 
    return importlib.import_module('_osmosdr_swig') 
  File
  
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py",
  line 37, in import_module 
    __import__(name) 
ImportError: No module named _osmosdr_swig 

dets: 
macbookpro c2d 
mountain lion 10.8.5 
xQuartz 2.7.11 
XCode 4.6.3 
Macports 2.4.0 
gnuradio 3.7.10.1 
rtl-sdr 20150608_1 

had to do the LibcxxOnOlder Systems: 
https://trac.macports.org/wiki/LibcxxOnOlderSystems

had to do gr-osmosdr portfile mod 
remove SoapySDR from dependencies 

had to do gqrx portfile mod 
set qtname     qt5 

did 
sudo port installed swig 
got 
03.0.12_0 

any ideas?
}}}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]