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: address@hidden
Subject: Re: [Discuss-gnuradio] gnuradio-companion swig error?
Date: Sun, 26 Feb 2017 12:38:49 -0700 (MST)

did i do something wrong that my post was never authorized? i've been watching it for days not knowing what else to do . . . 

that's what i did regarding SoapySDR.

i must be reading something wrong, because doing "port contents gr-osmosdr | grep_osmosdr_swig returns "command not found"

"port contents gr-osmosdr" gets me:

"
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
Port gr-osmosdr contains:
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osmosdr/__init__.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osmosdr/__init__.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osmosdr/__init__.pyo
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osmosdr/_osmosdr_swig.so
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osmosdr/osmocom_siggen_base.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osmosdr/osmocom_siggen_base.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osmosdr/osmocom_siggen_base.pyo
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osmosdr/osmosdr_swig.py
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osmosdr/osmosdr_swig.pyc
  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/osmosdr/osmosdr_swig.pyo
  /opt/local/bin/osmocom_fft
  /opt/local/bin/osmocom_siggen
  /opt/local/bin/osmocom_siggen_nogui
  /opt/local/bin/osmocom_spectrum_sense
  /opt/local/include/osmosdr/api.h
  /opt/local/include/osmosdr/device.h
  /opt/local/include/osmosdr/pimpl.h
  /opt/local/include/osmosdr/ranges.h
  /opt/local/include/osmosdr/sink.h
  /opt/local/include/osmosdr/source.h
  /opt/local/include/osmosdr/swig/osmosdr_swig.i
  /opt/local/include/osmosdr/swig/osmosdr_swig_doc.i
  /opt/local/include/osmosdr/time_spec.h
  /opt/local/lib/libgnuradio-osmosdr.0.1.5git.dylib
  /opt/local/lib/libgnuradio-osmosdr.dylib
  /opt/local/lib/pkgconfig/gnuradio-osmosdr.pc
  /opt/local/share/gnuradio/grc/blocks/osmosdr_sink.xml
  /opt/local/share/gnuradio/grc/blocks/osmosdr_source.xml
  /opt/local/share/gnuradio/grc/blocks/rtlsdr_source.xml
"

which i see includes a line that seems to indicate what i think you indicate i should be looking for?

i've attached the simple_am_rx.py scipt.

i'd say thank you  but i think the post rules suggested i don't.




On Feb 26, 2017, at 12:46 , Michael Dickens [via GnuRadio] <[hidden email]> wrote:

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?
}}}

_______________________________________________
Discuss-gnuradio mailing list
<a href="" target="_top" rel="nofollow" link="external">[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



If you reply to this email, your message will be added to the discussion below:
http://gnuradio.4.n7.nabble.com/gnuradio-companion-swig-error-tp62829p62965.html
To unsubscribe from gnuradio-companion swig error?, click here.
NAML


simple_am_rx.py (11K) Download Attachment


View this message in context: Re: gnuradio-companion swig error?
Sent from the GnuRadio mailing list archive at Nabble.com.

reply via email to

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