# Can't find PyQt4.Qwt5

**URL:** <https://www.ruby-forum.com/t/cant-find-pyqt4-qwt5/234133>\
**Category:** GNU Radio\
**Created:** [February 9, 2015, 11:10am UTC](https://www.ruby-forum.com/t/cant-find-pyqt4-qwt5/234133 "2015-02-09T11:10:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [February 9, 2015, 11:10am UTC](https://www.ruby-forum.com/t/cant-find-pyqt4-qwt5/234133/1 "2015-02-09T11:10:13Z")

</div>

I’m making much more progress on my embedded x86\_64 gnuradio project.  
I am now able to build and run my grc-created python app, but I get  
this error. I’m using some counter/sliders from Qwt (Qt GUI Range  
block) to be able to change some values interactively. However, I  
don’t seem to have PyQt4.Qwt5, and furthermore, I can’t seem to figure  
out how to build/install it. I have found the source, of course,  
(sourceforge) but not any openembedded recipes for it. Furthermore,  
it seems to be part of the PyQt4 package, and I don’t see any  
reference to a Qwt module within the python-pyqt package.

# ./my\_gui.py

Traceback (most recent call last):  
File “./my\_gui.py”, line 30, in   
import PyQt4.Qwt5 as Qwt

ImportError: No module named Qwt5

Thanks in advance for any advice.

-Chris

–  
Life is like Linux - it never stands still.

---

<div class="post-metadata">

**Author:** ![Chris\_H.inan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/91b2a8/32.png) [@Chris\_H.inan](https://www.ruby-forum.com/u/Chris_H.inan)\
**Post date:** [February 9, 2015, 2:35pm UTC](https://www.ruby-forum.com/t/cant-find-pyqt4-qwt5/234133/2 "2015-02-09T14:35:19Z")

</div>

On 02/09/2015 05:08 AM, Chris H.inan wrote:

> # ./my\_gui.py
> 
> Traceback (most recent call last):  
> File “./my\_gui.py”, line 30, in   
> import PyQt4.Qwt5 as Qwt
> 
> ImportError: No module named Qwt5
> 
> Thanks in advance for any advice.

Make a recipe for PyQwt. Sadly this isn’t easy.

The PyQt4 recipe in dizzy isn’t 100%, but the one in master should be.

There is also a long term support issue with PyQwt and qt5, so it sounds  
like we need to figure out how to replace Qwt eventually. Tom R. knows  
the details.

Philip

---

<div class="post-metadata">

**Author:** ![Chris\_H.inan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/91b2a8/32.png) [@Chris\_H.inan](https://www.ruby-forum.com/u/Chris_H.inan)\
**Post date:** [February 9, 2015, 2:56pm UTC](https://www.ruby-forum.com/t/cant-find-pyqt4-qwt5/234133/3 "2015-02-09T14:56:02Z")

</div>

On Mon, Feb 9, 2015 at 8:34 AM, Philip B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > 
> 
> Make a recipe for PyQwt. Sadly this isn’t easy.
> 
> The PyQt4 recipe in dizzy isn’t 100%, but the one in master should be.
> 
> There is also a long term support issue with PyQwt and qt5, so it sounds  
> like we need to figure out how to replace Qwt eventually. Tom R. knows  
> the details.
> 
> Philip

PyQWT has refused to move to QWT6, so it’s still stuck on QWT5’s API.  
The  
good thing is that this actually interacts fine with QWT6 for what  
little  
we use PyQWT for, but the installation process for PyQWT is awkward (at  
best, most would say awful). We have this issue in OE and OS X macports  
right now.

We’re talking about how to remove the dependency and replace it with  
something more usable and less likely to fall apart.

Tom

---

<div class="post-metadata">

**Author:** ![Chris\_H.inan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/91b2a8/32.png) [@Chris\_H.inan](https://www.ruby-forum.com/u/Chris_H.inan)\
**Post date:** [February 9, 2015, 3:04pm UTC](https://www.ruby-forum.com/t/cant-find-pyqt4-qwt5/234133/4 "2015-02-09T15:04:17Z")

</div>

On Mon, Feb 9, 2015 at 8:56 AM, Chris H.inan [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > > > out how to build/install it. I have found the source, of course,  
> > > > ImportError: No module named Qwt5
> 
> Chris

Yeah, don’t do that, regardless of what Philip says 🙂

You might be able to create your own QTGUI Range block that uses  
straight-up QT instead of QWT.

[http://qt-project.org/doc/qt-4.8/widgets-sliders.html](http://qt-project.org/doc/qt-4.8/widgets-sliders.html)

For that, just look into gr-qtgui/grc/qtgui\_range.xml and see about  
converting that (maybe making a secondary block for it) that calls just  
the  
QT slider stuff directly.

Tom

---

<div class="post-metadata">

**Author:** ![Chris\_H.inan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/91b2a8/32.png) [@Chris\_H.inan](https://www.ruby-forum.com/u/Chris_H.inan)\
**Post date:** [February 9, 2015, 2:57pm UTC](https://www.ruby-forum.com/t/cant-find-pyqt4-qwt5/234133/5 "2015-02-09T14:57:29Z")

</div>

On Mon, Feb 9, 2015 at 8:53 AM, Tom R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > it seems to be part of the PyQt4 package, and I don’t see any  
> > > Thanks in advance for any advice.
> 
> PyQWT has refused to move to QWT6, so it’s still stuck on QWT5’s API. The  
> good thing is that this actually interacts fine with QWT6 for what little we  
> use PyQWT for, but the installation process for PyQWT is awkward (at best,  
> most would say awful). We have this issue in OE and OS X macports right now.
> 
> We’re talking about how to remove the dependency and replace it with  
> something more usable and less likely to fall apart.

Then I think my best option is to find a way to not use it. 😉  
I did start hacking on a PyQwt recipe in the early morning hours, and  
realized I was in over my head!

Thanks,

Chris

–  
Life is like Linux - it never stands still.
