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 > [email protected] > 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 [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
