Importerror _gnuradio_swig_py_runtime on Cygwin


#1

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
from gnuradio import gr, gru, modulation_utils
File “/usr/local/lib/python2.5/site-packages/gnuradio/gr/init.py”,
line 43, in
from gnuradio_swig_python import *
File
“/usr/local/lib/python2.5/site-packages/gnuradio/gr/gnuradio_swig_python.py”,
line 23, in
from gnuradio_swig_py_runtime import *
File
“/usr/local/lib/python2.5/site-packages/gnuradio/gr/gnuradio_swig_py_runtime.py”,
line 6, in
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_py_runtime-on-Cygwin-tp22190302p22190302.html
Sent from the GnuRadio mailing list archive at Nabble.com.


#2

Yong J. Chang schrieb:

line 43, in
from gnuradio_swig_python import *
File
“/usr/local/lib/python2.5/site-packages/gnuradio/gr/gnuradio_swig_python.py”,
line 23, in
from gnuradio_swig_py_runtime import *
File
“/usr/local/lib/python2.5/site-packages/gnuradio/gr/gnuradio_swig_py_runtime.py”,
line 6, in
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