[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] No module name gnuradio
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] No module name gnuradio |
Date: |
Mon, 24 Oct 2005 12:17:15 -0700 |
User-agent: |
Mutt/1.5.6i |
On Mon, Oct 24, 2005 at 11:54:22AM -0600, Robitaille, Michael wrote:
> I still get the following error when I try and run the usrp_oscope.py
>
> Traceback (most recent call lost):
> File ".ursp_oscope.py", line 27, in ?
> From gnuradio import gr, gru
> Import Error: No module named gnuradio
>
>
> Beside correcting the PYTHONPATH (Thanks Eric for pointing out missing 's'),
> I recompiled using the swig-1.3.24 per another post about 1.3.25 not being
> out friend.
FWIW, 1.3.25 works fine with the CVS code.
I think something is slightly screwed in your installation.
Not exactly sure what, but I suspect some environment variable.
Try this and send the output
$ env | grep PYTHON
$ python
>>> import sys
>>> sys.path
>>> from gnuradio import gr
>>> <ctrl-d>
address@hidden eb]$ python
Python 2.3.4 (#2, Aug 25 2005, 10:06:55)
[GCC 3.4.1 (Mandrakelinux 10.1 3.4.1-4mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/home/eb/python', '/usr/local/lib/python2.3/site-packages',
'/usr/lib/python23.zip', '/usr/lib/python2.3',
'/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk',
'/usr/lib/python2.3/lib-dynload', '/usr/lib/python2.3/site-packages',
'/usr/lib/python2.3/site-packages/Numeric',
'/usr/lib/python2.3/site-packages/PIL',
'/usr/lib/python2.3/site-packages/gtk-2.0',
'/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-ansi']
>>> from gnuradio import gr
>>>
Where is _gnuradio_swig_python.so installed? It should be in
PREFIX/lib/python2.X/site-packages/gnuradio/gr. Where X is replaced by your
python version.
You should have a _gnuradio_swig_python.so file there. E.g.,
-rwxr-xr-x 1 eb wheel 7065004 Oct 23 21:45 _gnuradio_swig_python.so
Is that path (up to the site-packages part) in the output of sys.path?
Then ldd should give something like this:
address@hidden eb]$ ldd
/usr/local/lib/python2.3/site-packages/gnuradio/gr/_gnuradio_swig_python.so
linux-gate.so.1 => (0xffffe000)
libgnuradio-core.so.0 => /usr/local/lib/libgnuradio-core.so.0
(0x40282000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x4039f000)
libm.so.6 => /lib/tls/libm.so.6 (0x40471000)
libc.so.6 => /lib/tls/libc.so.6 (0x40494000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x405b3000)
librt.so.1 => /lib/tls/librt.so.1 (0x405bc000)
libfftw3f.so.3 => /usr/local/lib/libfftw3f.so.3 (0x405d1000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x4068a000)
Eric
- [Discuss-gnuradio] No module name gnuradio, Robitaille, Michael, 2005/10/22
- [Discuss-gnuradio] No module name gnuradio, Robitaille, Michael, 2005/10/22
- [Discuss-gnuradio] No module name gnuradio, Robitaille, Michael, 2005/10/24
- Re: [Discuss-gnuradio] No module name gnuradio, Robitaille, Michael, 2005/10/24
- Re: [Discuss-gnuradio] No module name gnuradio, Lee Patton, 2005/10/24
- Re: [Discuss-gnuradio] No module name gnuradio, Lamar Owen, 2005/10/24
- Re: [Discuss-gnuradio] No module name gnuradio, Eric Blossom, 2005/10/24
- Re: [Discuss-gnuradio] No module name gnuradio, Eric Blossom, 2005/10/24
- Re: [Discuss-gnuradio] No module name gnuradio, Lamar Owen, 2005/10/24
- Re: [Discuss-gnuradio] No module name gnuradio, Robert McGwier, 2005/10/24
- Re: [Discuss-gnuradio] No module name gnuradio, Lamar Owen, 2005/10/24
- Re: [Discuss-gnuradio] RPMs, etc, Eric Blossom, 2005/10/24
- RE: [Discuss-gnuradio] No module name gnuradio, Berndt Josef Wulf, 2005/10/24