On 2009-05-11 18:43-0400 Hazen Babcock wrote:

> Do you know what version of PyQt you have? Do you have to do anything special 
> to get this example to work? When I try I get:
>
> hl:/usr/local/share/plplot5.9.3/examples/python$ ./prova.py
> Traceback (most recent call last):
>  File "./prova.py", line 9, in <module>
>    from qt import *
> ImportError: No module named qt
>
> I think this is expected with PyQt4 as I believe the modules were renamed, 
> i.e. there is no module named "qt" anymore.

I have python-qt3 (version 3.17.4-1) and python-sip4 (version 4.7.6-1)
installed on my Debian Lenny system.  I notice there is also a python-qt4
available for Debian Lenny, but I haven't tried that (and won't since you
have run into troubles with it).  With PyQt3 installed, prova.py "just
works" with nothing special having to be done.  If you don't have access to
PyQt3, then it probably wouldn't take that much effort (I assume it would be
mostly namespace changes) for someone familiar with PyQt (which I am not) to
convert prova.py and qplplot.py to PyQt4.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to