Forum: GNU Radio Importerror _gnuradio_swig_py_runtime on Cygwin

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
051a38020a2f15e4604075dfc309b3aa?d=identicon&s=25 Yong J. Chang (Guest)
on 2009-02-24 21:49
(Received via mailing list)
Thanks Don for previous question!

I successfully configured and compiled GNURadio trunk on Cygwin and
tried to
run example.
But I'm getting following error:

Traceback (most recent call last):
  File "./benchmark_tx.py", line 23, in <module>
    from gnuradio import gr, gru, modulation_utils
  File "/usr/local/lib/python2.5/site-packages/gnuradio/gr/__init__.py",
line 43, in <module>
    from gnuradio_swig_python import *
  File
"/usr/local/lib/python2.5/site-packages/gnuradio/gr/gnuradio_swig_python.py",
line 23, in <module>
    from gnuradio_swig_py_runtime import *
  File
"/usr/local/lib/python2.5/site-packages/gnuradio/gr/gnuradio_swig_py_runtime.py",
line 6, in <module>
    import _gnuradio_swig_py_runtime
ImportError: No such file or directory


But I can find _gnuradio_swig_py_runtime.dll file on
"/usr/local/lib/python2.5/site-packages/gnuradio/gr".
Anybody knows what the problem is? Any helps are appreciated.
--
View this message in context:
http://www.nabble.com/Importerror-_gnuradio_swig_p...
Sent from the GnuRadio mailing list archive at Nabble.com.
85ffd97bae0e78056e1d06312744d7d1?d=identicon&s=25 Markus Feldmann (Guest)
on 2009-02-25 07:39
(Received via mailing list)
Yong J. Chang schrieb:
> line 43, in <module>
>     from gnuradio_swig_python import *
>   File
> "/usr/local/lib/python2.5/site-packages/gnuradio/gr/gnuradio_swig_python.py",
> line 23, in <module>
>     from gnuradio_swig_py_runtime import *
>   File
> "/usr/local/lib/python2.5/site-packages/gnuradio/gr/gnuradio_swig_py_runtime.py",
> line 6, in <module>
>     import _gnuradio_swig_py_runtime
> ImportError: No such file or directory
Hi Yong J.

make sure that your needed Python Modul is in your
<sys.path>. Try this
$python
 >>>import sys
 >>>print sys.path

And watch if your PATH to the swig directory is listed, if not
than anything went wrong.

Try,
 >>>sys.path.append('directories to _gnuradio_swig_py_runtime')

Than your System should find this.

Regards Markus
This topic is locked and can not be replied to.