conversion from python 2.7 to 3.4 doesn't seem to work

63 views
Skip to first unread message

Stef Mientki

unread,
Jul 23, 2016, 10:30:14 AM7/23/16
to pyqt...@googlegroups.com
hello,

I'm trying to move from python 2 tot python 3 (winpython 64 bit 3.4.4.2)

and pyqtgraph doesn't seems to work anymore.

I tried to run the examples in python 3 (basic plotting, histograms, but
more show the same effects)

- they work when using PyQT4 4.11.4

- they won't work with PySide 1.2.2

I ussed PyQTgraph 0.9.10.

Has anyone a solution ?

cheers,

Stef

vas...@gmail.com

unread,
Jul 23, 2016, 3:49:52 PM7/23/16
to pyqt...@googlegroups.com
I just think that you must install it also (for python3) in python3 directory. Final package must exists in some directory like <winpython_3_installation_directory>\Lib\site-packages\...



--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/5461e6ba-2ac7-30ef-caec-10c214072835%40Radboudumc.nl.
For more options, visit https://groups.google.com/d/optout.

Stef Mientki

unread,
Jul 24, 2016, 4:42:57 AM7/24/16
to pyqt...@googlegroups.com
I did a fresh install of WinPython, PyQTgraph is part of that WinPython installation.
I installed PySide (from Gohlke) into the WinPython installation.
So everything is in the same WinPython 3 directory.

Now when I run the basic plotting demo (in PySide), a get an almost black window:
-all titles are correct
-all figures are either squashed to the upper left corner (about 5 pixels high and half the width
-the yellow updating plot is still updating, with the right width but just 1 line high
-panning a single plot, restores that plot to the correct scale
-context menu is avaliable
-grids are completely invisible
-zooming with the right mouse doesn't seems to work, but zoom action becomes visible after panning

I don't know if it's allowed to post pictures, but let's try.

Big Stone

unread,
Jul 24, 2016, 1:41:06 PM7/24/16
to pyqtgraph
Hi,

WinPython 64 bit 3.4.4.2 comes with PyQt4 and is not supposed to be working with PySide.

vas...@gmail.com

unread,
Jul 24, 2016, 2:02:50 PM7/24/16
to pyqt...@googlegroups.com
Hi.

I share that opinion about it is not planned to do with PySide cause you already have a PyQt, but I also think that there is a way to do that.
I just tried next steps and I think it is working (I suggest you  to remove old WinPython installation. Delete whole folder where you installed WinPython at the end.):
 - Downloaded (today is one day old) release from: https://sourceforge.net/projects/winpython/files/WinPython_3.4/3.4.4.3/. Release I downloaded is https://sourceforge.net/projects/winpython/files/WinPython_3.4/3.4.4.3/WinPython-64bit-3.4.4.3.exe/download.
 - Open WinPython Command Prompt. I guess you are now in "Scripts" folder of your WinPython_3.4 installation.
 - In WinPython Command Prompt type: pip install PySide-1.2.4-cp34-none-win_amd64.whl

Good luck,
Vasilije

Stef Mientki

unread,
Jul 25, 2016, 4:20:40 AM7/25/16
to pyqt...@googlegroups.com
Thanks Vasilije,

that did the trick.
To make it even easier you don't have to uninstlall WinPython,
Just throw the wheel of PySide 1.2.4 into the "WinPython Control Panel", press "Install"
and everything works like before.

The reason for using PySide is historical and had to do with licenses.
Th next step after moving from Python 2.7 to 3.4 is move from PySide to PyQt en even from wx to PyQt ;-)
WinPython is just a rather complete package for scientific programs, with the main features of being quiet complete, very easy to install and to extend and portable.

cheers,
Stef

Stef Mientki

unread,
Jul 25, 2016, 4:42:24 AM7/25/16
to pyqt...@googlegroups.com
I retrieved the PySide from Gohlke
http://www.lfd.uci.edu/~gohlke/pythonlibs/
which normally has the latest versions,
but not in this case.
So I informed Gohlke about it.

cheers, Stef
Reply all
Reply to author
Forward
0 new messages