Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-26 Thread Brook Lin

Thanks, Eric. You are right. I found that python-gnuradio-core was installed
from synaptic package manager. Now, everything works fine. Thanks, all.

- Brook

Eric Blossom wrote:
 
 On Wed, Aug 25, 2010 at 04:03:59PM -0700, Brook Lin wrote:
 
 Thanks, Marcus.
 
 I tried usrp_fft.py and got the same error. I also tried dial_tone.py
 under
 /gnuradio-example/python/audio, but I got the similar error:
 
 I'm guessing that you have more than one installation on your system.
 Perhaps one installed a while back using a .deb, and the one that
 you're trying to build now.
 
 Remove all traces of GNU Radio, then try again...
 
 Eric
 
 
 
 
 Traceback (most recent call last):
   File ./dial_tone.py, line 24, in module
 from gnuradio import audio
   File /usr/lib/python2.6/dist-packages/gnuradio/audio.py, line 88, in
 module
 __init__()
   File /usr/lib/python2.6/dist-packages/gnuradio/audio.py, line 78, in
 __init__
 raise ImportError, 'Unable to locate an audio module.'
 ImportError: Unable to locate an audio module.
 
 However, if I import audio from gnuradio using $ python, there is no
 error.
 
 Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
 [GCC 4.4.3] on linux2
 Type help, copyright, credits or license for more information.
  from gnuradio import gr
  from gnuradio import audio
  
 
 Thanks,
 Brook
 
 ___
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.org
 http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
 
 

-- 
View this message in context: 
http://old.nabble.com/Gnuradio-3.3.0-on-Ubuntu-10.04-tp29535765p29545152.html
Sent from the GnuRadio mailing list archive at Nabble.com.


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Brook Lin

Hi All, 

I followed the instructions on
http://gnuradio.org/redmine/wiki/gnuradio/UbuntuInstall to install
gnuradio-3.3.0 onto Ubuntu-10.04 LTS. I used qwt-5.2.1, boost_1_37_0, and
all other packages from synaptic package manager. After ./configure
--with-boost=$BOOST_PREFIX, I got:

The following GNU Radio components have been successfully configured: 

config 
gruel 
gnuradio-core 
usrp 
usrp2 
gr-usrp 
gr-usrp2 
gr-msdd6000 
gr-audio-alsa 
gr-audio-oss 
gr-atsc 
gr-cvsd-vocoder 
gr-gpio 
gr-gsm-fr-vocoder 
gr-noaa 
gr-pager 
gr-radar-mono 
gr-radio-astronomy 
gr-trellis 
gr-video-sdl 
gr-wxgui 
gr-qtgui 
gr-sounder 
gr-utils 
gnuradio-examples 
grc 
docs 

You my now run the make command to build these components. 

* 
The following components were skipped either because you asked not 
to build them or they didn't pass configuration checks: 

gcell 
gr-gcell 
gr-audio-jack 
gr-audio-osx 
gr-audio-portaudio 
gr-audio-windows 
gr-comedi 

These components will not be built. 
Configured GNU Radio release 3.3.0 for build. 

Meanwhile, there is no error during the installation. And the USRP is
recognized by ls -lR /dev/bus/usb | grep usrp, I got crw-rw 1 root
usrp 189, 129 2010-08-25 13:12 002.

However, when I tried to run ./usrp_benchmark_usb.py, I got the error that
ImportError: cannot import name usrp. I also found that there is nothing
under directory /usr/local/lib/python2.6/site-packages. How should I fix
this problem? Can anyone give me some advice? 

Thanks in advance,
Brook

-- 
View this message in context: 
http://old.nabble.com/Gnuradio-3.3.0-on-Ubuntu-10.04-tp29535765p29535765.html
Sent from the GnuRadio mailing list archive at Nabble.com.


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Elvis Dowson
Hi,

On Aug 25, 2010, at 10:28 PM, Brook Lin wrote:

 I also found that there is nothing
 under directory /usr/local/lib/python2.6/site-packages. How should I fix
 this problem? Can anyone give me some advice? 

Perhaps this is because you might not have run a 

sudo make install 

after building gnuradio, which will install the required python packages into 
/usr/local/lib

Best regards,

Elvis

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Brook Lin

Thanks, Elvis. But I actually did sudo make install. After all the
necessary packages installed, I followed these steps:

cd gnuradio-3.3.0
export LD_LIBRARY_PATH=$BOOST_PREFIX/lib
./bootstrap
./configure --with-boost=$BOOST_PREFIX 
make
make check
sudo make install

More advice?

Thanks, 
Brook


Elvis Dowson wrote:
 
 Hi,
 
 On Aug 25, 2010, at 10:28 PM, Brook Lin wrote:
 
 I also found that there is nothing
 under directory /usr/local/lib/python2.6/site-packages. How should I fix
 this problem? Can anyone give me some advice? 
 
 Perhaps this is because you might not have run a 
 
 sudo make install 
 
 after building gnuradio, which will install the required python packages
 into /usr/local/lib
 
 Best regards,
 
 Elvis
 
 ___
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.org
 http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
 
 

-- 
View this message in context: 
http://old.nabble.com/Gnuradio-3.3.0-on-Ubuntu-10.04-tp29535765p29535981.html
Sent from the GnuRadio mailing list archive at Nabble.com.


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Jeffrey Lambert

This might also be because you have not setup the usrp in udev?

http://k1vzx.com/mediawiki/index.php?title=USRP:_Software_Setup

~JeffL

On 8/25/2010 3:28 PM, Brook Lin wrote:


Hi All,

I followed the instructions on
http://gnuradio.org/redmine/wiki/gnuradio/UbuntuInstall to install
gnuradio-3.3.0 onto Ubuntu-10.04 LTS. I used qwt-5.2.1, boost_1_37_0, and
all other packages from synaptic package manager. After ./configure
--with-boost=$BOOST_PREFIX, I got:

The following GNU Radio components have been successfully configured:

config
gruel
gnuradio-core
usrp
usrp2
gr-usrp
gr-usrp2
gr-msdd6000
gr-audio-alsa
gr-audio-oss
gr-atsc
gr-cvsd-vocoder
gr-gpio
gr-gsm-fr-vocoder
gr-noaa
gr-pager
gr-radar-mono
gr-radio-astronomy
gr-trellis
gr-video-sdl
gr-wxgui
gr-qtgui
gr-sounder
gr-utils
gnuradio-examples
grc
docs

You my now run the make command to build these components.

*
The following components were skipped either because you asked not
to build them or they didn't pass configuration checks:

gcell
gr-gcell
gr-audio-jack
gr-audio-osx
gr-audio-portaudio
gr-audio-windows
gr-comedi

These components will not be built.
Configured GNU Radio release 3.3.0 for build.

Meanwhile, there is no error during the installation. And the USRP is
recognized by ls -lR /dev/bus/usb | grep usrp, I got crw-rw 1 root
usrp 189, 129 2010-08-25 13:12 002.

However, when I tried to run ./usrp_benchmark_usb.py, I got the error that
ImportError: cannot import name usrp. I also found that there is nothing
under directory /usr/local/lib/python2.6/site-packages. How should I fix
this problem? Can anyone give me some advice?

Thanks in advance,
Brook




--
~Jeffrey Lambert, K1VZX

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Douglas Geiger
On Wed, Aug 25, 2010 at 3:56 PM, Brook Lin gnu.f...@yahoo.com wrote:

 Thanks, Elvis. But I actually did sudo make install. After all the
 necessary packages installed, I followed these steps:

 cd gnuradio-3.3.0
 export LD_LIBRARY_PATH=$BOOST_PREFIX/lib
 ./bootstrap
 ./configure --with-boost=$BOOST_PREFIX
 make
 make check
 sudo make install

 More advice?

 Thanks,
 Brook

sudo ldconfig

The python packages should be in /usr/local/lib/python/dist-packages/gnuradio

-- 
Doug Geiger
doug.gei...@bioradiation.net

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Brook Lin

Thanks again for your replies. But, I did try:

$ cp /etc/ld.so.conf /tmp/ld.so.conf
$ echo /usr/local/lib  /tmp/ld.so.conf
$ sudo mv /tmp/ld.so.conf /etc/ld.so.conf
$ sudo ldconfig

Nothing helps. BTW, I used libboost-all-dev from synaptic package manager
rather than boost_1_37_0. 

Doug, you are right. I find gnuradio under
/usr/local/lib/python/dist-packages/. My old Ubuntu version has the path
/usr/local/lib/python/site-packages/gnuradio. 

Other solutions?

Thanks,
Brook




Jeffrey Lambert wrote:
 
 This might also be because you have not setup the usrp in udev?
 
 http://k1vzx.com/mediawiki/index.php?title=USRP:_Software_Setup
 
 ~JeffL
 
 On 8/25/2010 3:28 PM, Brook Lin wrote:

 Hi All,

 I followed the instructions on
 http://gnuradio.org/redmine/wiki/gnuradio/UbuntuInstall to install
 gnuradio-3.3.0 onto Ubuntu-10.04 LTS. I used qwt-5.2.1, boost_1_37_0, and
 all other packages from synaptic package manager. After ./configure
 --with-boost=$BOOST_PREFIX, I got:

 The following GNU Radio components have been successfully configured:

 config
 gruel
 gnuradio-core
 usrp
 usrp2
 gr-usrp
 gr-usrp2
 gr-msdd6000
 gr-audio-alsa
 gr-audio-oss
 gr-atsc
 gr-cvsd-vocoder
 gr-gpio
 gr-gsm-fr-vocoder
 gr-noaa
 gr-pager
 gr-radar-mono
 gr-radio-astronomy
 gr-trellis
 gr-video-sdl
 gr-wxgui
 gr-qtgui
 gr-sounder
 gr-utils
 gnuradio-examples
 grc
 docs

 You my now run the make command to build these components.

 *
 The following components were skipped either because you asked not
 to build them or they didn't pass configuration checks:

 gcell
 gr-gcell
 gr-audio-jack
 gr-audio-osx
 gr-audio-portaudio
 gr-audio-windows
 gr-comedi

 These components will not be built.
 Configured GNU Radio release 3.3.0 for build.

 Meanwhile, there is no error during the installation. And the USRP is
 recognized by ls -lR /dev/bus/usb | grep usrp, I got crw-rw 1 root
 usrp 189, 129 2010-08-25 13:12 002.

 However, when I tried to run ./usrp_benchmark_usb.py, I got the error
 that
 ImportError: cannot import name usrp. I also found that there is
 nothing
 under directory /usr/local/lib/python2.6/site-packages. How should I fix
 this problem? Can anyone give me some advice?

 Thanks in advance,
 Brook

 
 
 -- 
 ~Jeffrey Lambert, K1VZX
 
 ___
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.org
 http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
 
 

-- 
View this message in context: 
http://old.nabble.com/Gnuradio-3.3.0-on-Ubuntu-10.04-tp29535765p29536641.html
Sent from the GnuRadio mailing list archive at Nabble.com.


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Eric Blossom
On Wed, Aug 25, 2010 at 02:21:27PM -0700, Brook Lin wrote:
 
 Thanks again for your replies. But, I did try:
 
 $ cp /etc/ld.so.conf /tmp/ld.so.conf
 $ echo /usr/local/lib  /tmp/ld.so.conf
 $ sudo mv /tmp/ld.so.conf /etc/ld.so.conf
 $ sudo ldconfig
 
 Nothing helps. BTW, I used libboost-all-dev from synaptic package manager
 rather than boost_1_37_0. 
 
 Doug, you are right. I find gnuradio under
 /usr/local/lib/python/dist-packages/. My old Ubuntu version has the path
 /usr/local/lib/python/site-packages/gnuradio. 
 
 Other solutions?

Is your PYTHONPATH set to /usr/local/lib/python2.6/dist-packages?
Is your PYTHONPATH exported?

Does this work:

  $ python
  Python 2.6.4 (r264:75706, Jun  4 2010, 18:20:31) 
  [GCC 4.4.4 20100503 (Red Hat 4.4.4-2)] on linux2
  Type help, copyright, credits or license for more information.
   from gnuradio import gr
   from gnuradio import usrp
   exit()

Eric

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Marcus D. Leech

 Thanks, Eric.

   
 Is your PYTHONPATH set to /usr/local/lib/python2.6/dist-packages?
 Is your PYTHONPATH exported?
 
 I'm not sure on these two questions. I installed python2.6 from synaptic
 package manager, I thought it should set the path right. If not, could you
 please tell me how to set PYTHONPATH and how to export PYTHONPATH?
   
In the shell, before invoking any Gnu Radio application:

PYTHONPATH=/usr/local/lib/python2.6/dist-packages
export PYTHONPATH

You can put these in the .bashrc file in your home directory if it
becomes a pain to type manually.

You might want to get a book on Linux for beginners or something like
that, which will help
  you with quite simple things like how to set an environment variable.




-- 
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Brook Lin

Thanks, Eric.

Is your PYTHONPATH set to /usr/local/lib/python2.6/dist-packages?
Is your PYTHONPATH exported?

I'm not sure on these two questions. I installed python2.6 from synaptic
package manager, I thought it should set the path right. If not, could you
please tell me how to set PYTHONPATH and how to export PYTHONPATH?

Here is the result when I test $ python

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type help, copyright, credits or license for more information.
 from gnuradio import gr
 from gnuradio import usrp
Traceback (most recent call last):
  File stdin, line 1, in module
ImportError: cannot import name usrp
 

Thanks,
Brook
-- 
View this message in context: 
http://old.nabble.com/Gnuradio-3.3.0-on-Ubuntu-10.04-tp29535765p29536930.html
Sent from the GnuRadio mailing list archive at Nabble.com.


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Brook Lin

Thanks, all.

However, after I set the PYTHONPATH and export it. I still get the same
error when I run ./usrp_benchmark_usb.py. 

But, if I test $ python, everything works. 

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type help, copyright, credits or license for more information.
 from gnuradio import gr
 from gnuradio import usrp
 from gnuradio import audio
 

Thanks,
Brook


Eric Blossom wrote:
 
 On Wed, Aug 25, 2010 at 02:21:27PM -0700, Brook Lin wrote:
 
 Thanks again for your replies. But, I did try:
 
 $ cp /etc/ld.so.conf /tmp/ld.so.conf
 $ echo /usr/local/lib  /tmp/ld.so.conf
 $ sudo mv /tmp/ld.so.conf /etc/ld.so.conf
 $ sudo ldconfig
 
 Nothing helps. BTW, I used libboost-all-dev from synaptic package manager
 rather than boost_1_37_0. 
 
 Doug, you are right. I find gnuradio under
 /usr/local/lib/python/dist-packages/. My old Ubuntu version has the path
 /usr/local/lib/python/site-packages/gnuradio. 
 
 Other solutions?
 
 Is your PYTHONPATH set to /usr/local/lib/python2.6/dist-packages?
 Is your PYTHONPATH exported?
 
 Does this work:
 
   $ python
   Python 2.6.4 (r264:75706, Jun  4 2010, 18:20:31) 
   [GCC 4.4.4 20100503 (Red Hat 4.4.4-2)] on linux2
   Type help, copyright, credits or license for more information.
from gnuradio import gr
from gnuradio import usrp
exit()
 
 Eric
 
 ___
 Discuss-gnuradio mailing list
 Discuss-gnuradio@gnu.org
 http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
 
 

-- 
View this message in context: 
http://old.nabble.com/Gnuradio-3.3.0-on-Ubuntu-10.04-tp29535765p29537097.html
Sent from the GnuRadio mailing list archive at Nabble.com.


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Marcus D. Leech

 Thanks, all.

 However, after I set the PYTHONPATH and export it. I still get the same
 error when I run ./usrp_benchmark_usb.py. 

 But, if I test $ python, everything works. 

 Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
 [GCC 4.4.3] on linux2
 Type help, copyright, credits or license for more information.
   

What about other usrp-using applications, like usrp_fft.py ??

I think usrp_benchmark_usb.py is quite old, and may not have been
maintained.


-- 
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Brook Lin

Thanks, Marcus.

I tried usrp_fft.py and got the same error. I also tried dial_tone.py under
/gnuradio-example/python/audio, but I got the similar error:

Traceback (most recent call last):
  File ./dial_tone.py, line 24, in module
from gnuradio import audio
  File /usr/lib/python2.6/dist-packages/gnuradio/audio.py, line 88, in
module
__init__()
  File /usr/lib/python2.6/dist-packages/gnuradio/audio.py, line 78, in
__init__
raise ImportError, 'Unable to locate an audio module.'
ImportError: Unable to locate an audio module.

However, if I import audio from gnuradio using $ python, there is no error.

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type help, copyright, credits or license for more information.
 from gnuradio import gr
 from gnuradio import audio
 

Thanks,
Brook


-- 
View this message in context: 
http://old.nabble.com/Gnuradio-3.3.0-on-Ubuntu-10.04-tp29535765p29537436.html
Sent from the GnuRadio mailing list archive at Nabble.com.


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Gnuradio-3.3.0 on Ubuntu-10.04

2010-08-25 Thread Eric Blossom
On Wed, Aug 25, 2010 at 04:03:59PM -0700, Brook Lin wrote:
 
 Thanks, Marcus.
 
 I tried usrp_fft.py and got the same error. I also tried dial_tone.py under
 /gnuradio-example/python/audio, but I got the similar error:

I'm guessing that you have more than one installation on your system.
Perhaps one installed a while back using a .deb, and the one that
you're trying to build now.

Remove all traces of GNU Radio, then try again...

Eric



 
 Traceback (most recent call last):
   File ./dial_tone.py, line 24, in module
 from gnuradio import audio
   File /usr/lib/python2.6/dist-packages/gnuradio/audio.py, line 88, in
 module
 __init__()
   File /usr/lib/python2.6/dist-packages/gnuradio/audio.py, line 78, in
 __init__
 raise ImportError, 'Unable to locate an audio module.'
 ImportError: Unable to locate an audio module.
 
 However, if I import audio from gnuradio using $ python, there is no error.
 
 Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
 [GCC 4.4.3] on linux2
 Type help, copyright, credits or license for more information.
  from gnuradio import gr
  from gnuradio import audio
  
 
 Thanks,
 Brook

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio