Forum: GNU Radio gr-air ?

Posted by Erik Jakobsen (Guest)
on 2013-02-20 09:31
(Received via mailing list)
Hi.

Found a set up article on how to set up gr-air:

http://superkuh.com/gnuradio/gr-air-modes_install.txt

I came to this step:

uhd_modes.py -d

And got this:

ERROR: uhd_modes.py has been deprecated. The new application name is
modes_rx.


After i ran this:

modes_rx -d

And got this:

Traceback (most recent call last):
   File "/usr/local/bin/modes_rx", line 25, in <module>
     from gnuradio import gr, gru, optfir, eng_notation, blks2
ImportError: No module named gnuradio

BTW Gnuradio is installed, and is running fine with gqrx.

How can I get out of this issue I have ?.

Thanks

Erik
Posted by Erik Jakobsen (Guest)
on 2013-02-20 15:53
(Received via mailing list)
> And got this:
>
>
> Erik
I now know, that I shall run the modes_rx.

But I still get this:

Traceback (most recent call last):
   File "/usr/local/bin/modes_rx", line 25, in <module>
     from gnuradio import gr, gru, optfir, eng_notation, blks2
ImportError: No module named gnuradio

What is the <module>, and where to find it ?

Erik

P.S. Is it the right mailinglist for the query ?
Posted by Erik Jakobsen (Guest)
on 2013-02-20 16:05
(Received via mailing list)
On 02/20/2013 04:52 PM, Erik Jakobsen wrote:
>> And got this:
>>
>>
> What is the <module>, and where to find it ?
>
> Erik
>
> P.S. Is it the right mailinglist for the query ?
Once more :-)

Here I have marked the line 25. Is it something from here hat cannot be
loaded ?

my_position = None



from gnuradio import gr, gru, optfir, eng_notation, blks2 <----Line25
from gnuradio.eng_option import eng_option
from optparse import OptionParser
import time, os, sys, threading
from string import split, join
import air_modes
import gnuradio.gr.gr_threading as _threading
import csv
from air_modes.exceptions import *

Erik
Posted by Tom Rondeau (Guest)
on 2013-02-20 16:28
(Received via mailing list)
On Wed, Feb 20, 2013 at 11:03 AM, Erik Jakobsen <eja@urbakken.dk> wrote:

>>> uhd_modes.py -d
>>>
>>>
>>     from gnuradio import gr, gru, optfir, eng_notation, blks2
> Here I have marked the line 25. Is it something from here hat cannot be
> from string import split, join
> import air_modes
> import gnuradio.gr.gr_threading as _threading
> import csv
> from air_modes.exceptions import *
>
> Erik


Erik,

What version of GNU Radio are you using?

You can also easily test this by hand. Just open ipython (or just 
python)
and start importing by hand:

from gnuradio import gr
from gnuradio import gru
....

Figure out which one is actually failing for you.

Tom
Posted by Nick Foster (Guest)
on 2013-02-20 16:34
(Received via mailing list)
On 02/20/2013 08:03 AM, Erik Jakobsen wrote:
>>>
>>> And got this:
>>> Thanks
>>
> my_position = None
>
>
>
> from gnuradio import gr, gru, optfir, eng_notation, blks2 <----Line25
>

It is failing because Python can't find the gnuradio module. gqrx is
working because it's a C++ application and so doesn't depend on the
Gnuradio Python module being installed.

What OS are you running (Ubuntu, Fedora, etc.), and what process did you
follow to install Gnuradio?

--n
Posted by Johnathan Corgan (Guest)
on 2013-02-20 16:46
(Received via mailing list)
On Wed, Feb 20, 2013 at 8:03 AM, Erik Jakobsen <eja@urbakken.dk> wrote:

>>
This is an indication that the PYTHONPATH is not set correctly as Python 
is
not able to find GNU Radio's installed modules.

The gqrx app is C++ and could still find the GNU Radio native C++ 
libraries
and work normally even with the above.

Johnathan
Posted by Tom Rondeau (Guest)
on 2013-02-20 16:53
(Received via mailing list)
On Wed, Feb 20, 2013 at 10:44 AM, Johnathan Corgan 
<johnathan@corganlabs.com
> wrote:

>>>> BTW Gnuradio is installed, and is running fine with gqrx.
>>>>
>>>
> This is an indication that the PYTHONPATH is not set correctly as Python
> is not able to find GNU Radio's installed modules.
>
> The gqrx app is C++ and could still find the GNU Radio native C++
> libraries and work normally even with the above.
>
> Johnathan
>

Ah, thanks. I forgot gqrx was C++.

Tom
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.