|
From: | Rama V |
Subject: | Re: [Discuss-gnuradio] Import Error |
Date: | Sat, 5 Dec 2015 18:49:45 -0600 |
Hey Marcus,Thanks for the reply. But the above program is for a specific application. It can be used for detecting which frequency band is available and then sending data in that particular channel/frequency band. I have tried using the application that has come with GNU Radio "usrp_spectrum_sense.py" which senses for free center frequency bands available. The "usrp_spectrum_sense_tx.py" does the above mentioned operation. So the python file I try to run does not work with the installed GNU Radio? If so, what can I do? Please suggest. For your convenience, I am attaching the spectrum sensing python file. I am sorry if I am not being so explicable.Thank youRegards,DaveOn Thu, Nov 26, 2015 at 2:26 AM, Marcus Müller <address@hidden> wrote:Hi Dave,
like the last times with benchmark_tx, this script is something you copied from somewhere else and doesn't work with the version you have installed.
Why do you keep doing this?
Use the scripts that work with your *current* version of GNU Radio. This one, like benchmark_tx, is contained in your GNU Radio installation itself, and probably got installed to /usr/[local/]share/gnuradio/examples/uhd.
Best regards,
Marcus
On 26.11.2015 01:42, Rama V wrote:
Hi,I am trying to compile a file namely usrp_spectrum_sense_tx.py but it says the following error message:
Traceback (most recent call last):File "./usrp_spectrum_sense_tx.py", line 180, in <module>from gnuradio import gr, gru, eng_notation, optfir, windowImportError: cannot import name optfir
It is showing an ImportError. I need to sense the channel and send the data on the available channel. I have set my PYTHONPATH to dist-packages. Is there any specific mistake I am unable to see? Please suggest. Any help is appreciated.
Thank you,
Regards,Dave
_______________________________________________ Discuss-gnuradio mailing list address@hidden https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
spectrum_sense_tx.py
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |