Re: Cygwin Python Import Error

Hi:

I sure there is a “gnuradio” directory in
/usr/local/lib/python2.5/site-packages.

So, I try to add new command line :
#!/usr/local/lib/python2.5/site-packages
python, at file “audio_fft.py”.

Then, I type command: python audio_fft.py But, get the same result.

Why? Something wrong?

Thank you very much!

So, that into the /audio, and type command: $python audio_fft.py

I gat a result:

Traceback (most recent call last):

File “audio_fft.py”, line 23, in

From gnuradio import gr, gru, audio

ImportError: No module named gnuradio

Is there a “gnuradio” directory in /usr/local/lib/python2.5/site-packages?

(There should be.)

Did you set your PYTHONPATH environment variable to
/usr/local/lib/python2.5/site-packages? (You should have.)

Have you seen the instructions in
http://www.gnuradio.org/trac/wiki/CygwinInstallMain?

I sure there is a “gnuradio” directory in
/usr/local/lib/python2.5/site-packages.

So, I try to add new command line :
#!/usr/local/lib/python2.5/site-packages
python, at file “audio_fft.py”.

That is not in the instructions and won’t help.

The following question remains unanswered:

Did you set your PYTHONPATH environment variable to
/usr/local/lib/python2.5/site-packages? (You should have.)

That is in the instructions and is necessary.

– Don W.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs