Gr_filter_design.py error

When launching gr_filter_design.py I receive this msg:

Please install PyQwt5 to run this script
(http://pyqwt.sourceforge.net/).

Note that I’ve made ALL the step to build pyqwt, (5.2.1) successfull.

I tried to rebuild Gnuradio 3.3.0, successfull, after PyQwt build, but
with
no result and the same frustrating msg…

Any suggestion ???

Thanks in advance,

Victor

View this message in context:
http://old.nabble.com/gr_filter_design.py-error-tp31081887p31081887.html
Sent from the GnuRadio mailing list archive at Nabble.com.

On Sun, Mar 6, 2011 at 6:13 PM, I3VFJ [email protected]
wrote:

Any suggestion ???

Thanks in advance,

Victor

Are you sure it is installed? And where is it installed into? If it’s in
a
standard location where Python can find it, there should be no trouble.
I’m
guessing you have installed it into another location. Find out where,
and
then add that to your PYTHONPATH.

Also, the gr_filter_design.py should come with a word of caution in that
it
might be a bit unstable. It has worked for all of the cases I have
thrown at
it so far, but to be fair, that’s not a huge amount and have all been
relatively simple filters. If you find a bug, please report it so I can
improve the code.

Thanks,
Tom

Thanks Tom for quick response!

Sorry, it was my mistake… I miss the last ‘make install’ … too
late
in the night :frowning:
After double check next evening I’d found it, but no way…

Now I get this :

/usr/bin/python -u “/usr/local/bin/gr_filter_design.py”
Could not import from pyqt_filter. Please build with “pyuic4
pyqt_filter.ui
-o pyqt_filter.py”

…what’s wrong ???

Launching that from shell ( via sudo… ) the answer is that is
impossible
to find pyqt_filter.ui.
No sign of life with “find”… any suggestion ?

Thanks, Vittorio

Tom R. wrote:

On Sun, Mar 6, 2011 at 6:13 PM, I3VFJ [email protected]
wrote:

When launching gr_filter_design.py I receive this msg:

----------snip------------


View this message in context:
http://old.nabble.com/gr_filter_design.py-error-tp31081887p31106183.html
Sent from the GnuRadio mailing list archive at Nabble.com.

On Wed, Mar 9, 2011 at 8:26 AM, Alexandru C. [email protected]
wrote:

Now I get this :
Launching that from shell ( via sudo… ) the answer is that is
Alternatively, you can execute it in the source tree (assuming that it
has been built and .ui compiled):
gr-utils/src/python/gr_filter_design.py
You will also find the pyqt_filter.ui there

Alex

Thanks, Alex, that should fix it for him. I would just run it out of
gr-utils/src/python, so this was carelessness on my part when adding
this
utility to the installation. I will fix it later.

Tom

On Wed, Mar 9, 2011 at 9:13 AM, Tom R. [email protected]
wrote:

After double check next evening I’d found it, but no way…
gr_filter_design.py can not find pyqt_filter.py
from gnuradio.pyqt_filter import Ui_MainWindow
Thanks, Alex, that should fix it for him. I would just run it out of
gr-utils/src/python, so this was carelessness on my part when adding this
utility to the installation. I will fix it later.

Tom

This has been fixed in the ‘next’ branch (since we don’t plan on cutting
any
more releases from master).

Thanks for pointing this out. Suggestions (or, better, patches) to
improve
the design tool are welcome.

Tom

Fine, it worked!!!
now I’ll give it time to test around, and possibly report any
instability.
Thanks again.

I3VFJ, Vittorio

Tom R. wrote:

On Wed, Mar 9, 2011 at 9:13 AM, Tom R. [email protected]
wrote:

On Wed, Mar 9, 2011 at 8:26 AM, Alexandru C. [email protected] wrote:

On Wed, Mar 9, 2011 at 2:04 PM, I3VFJ [email protected]
wrote:
---------------snip--------------


View this message in context:
http://old.nabble.com/gr_filter_design.py-error-tp31081887p31126473.html
Sent from the GnuRadio mailing list archive at Nabble.com.

On Wed, Mar 9, 2011 at 2:04 PM, I3VFJ [email protected]
wrote:

Could not import from pyqt_filter. Please build with “pyuic4 pyqt_filter.ui
-o pyqt_filter.py”

…what’s wrong ???

gr_filter_design.py can not find pyqt_filter.py

Launching that from shell ( via sudo… ) the answer is that is impossible
to find pyqt_filter.ui.
No sign of life with “find”… any suggestion ?

Quick fix:
Edit /usr/local/bin/gr_filter_design.py at line 27 replace:
from pyqt_filter import Ui_MainWindow
with:
from gnuradio.pyqt_filter import Ui_MainWindow

Alternatively, you can execute it in the source tree (assuming that it
has been built and .ui compiled):
gr-utils/src/python/gr_filter_design.py
You will also find the pyqt_filter.ui there

Alex