Python 3

Hi, I have used Matplotlib extensively now for 2 years with python 2.x. I recently needed to move to python 3.1 which was greatly facilitated by numpy and scipy being ported to python 3. I was lucky in that all I have to change is many print statements. All on a Windows OS.

But my progress is severely limited by having no port of Matplotlib to python 3. I am definitely a user so have contributed twice to Matplotlib development.

Plea: If the stars align properly, I would be so grateful for a port of matplotlib to python 3.

Thanks for hearing me.

Did you try the py3k branch at <http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/branches/py3k/>? It does work for simple plots.

···

On 12/23/2010 1:01 PM, Robert Young wrote:

Hi, I have used Matplotlib extensively now for 2 years with python 2.x.
I recently needed to move to python 3.1 which was greatly facilitated by
numpy and scipy being ported to python 3. I was lucky in that all I have
to change is many print statements. All on a Windows OS.

But my progress is severely limited by having no port of Matplotlib to
python 3. I am definitely a user so have contributed twice to Matplotlib
development.

Plea: If the stars align properly, I would be so grateful for a port of
matplotlib to python 3.

Thanks for hearing me.

--
Christoph

Thank you for your fast reply and suggestion. I downloaded the GNU tar
ball and looked at it. Unfortunately due to my own limitations, I need
a win32 installer.
I'll have to bide my time I guess.

RDY

···

-----Original Message-----
From: Christoph Gohlke [mailto:cgohlke@…2143…]
Sent: Thursday, December 23, 2010 2:47 PM
To: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] Python 3

On 12/23/2010 1:01 PM, Robert Young wrote:

Hi, I have used Matplotlib extensively now for 2 years with python

2.x.

I recently needed to move to python 3.1 which was greatly facilitated

by

numpy and scipy being ported to python 3. I was lucky in that all I

have

to change is many print statements. All on a Windows OS.

But my progress is severely limited by having no port of Matplotlib to
python 3. I am definitely a user so have contributed twice to

Matplotlib

development.

Plea: If the stars align properly, I would be so grateful for a port

of

matplotlib to python 3.

Thanks for hearing me.

Did you try the py3k branch at
<http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/branches/py3k/>
? It
does work for simple plots.

--
Christoph

------------------------------------------------------------------------
------
Learn how Oracle Real Application Clusters (RAC) One Node allows
customers
to consolidate database storage, standardize their database environment,
and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

which backend should we use?
It does not work with pyqt4

Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/local/lib/python3.1/dist-packages/pylab.py", line 1, in <module>
     from matplotlib.pylab import *
   File "/usr/local/lib/python3.1/dist-packages/matplotlib/pylab.py", line 259, in <module>
     from matplotlib.pyplot import *
   File "/usr/local/lib/python3.1/dist-packages/matplotlib/pyplot.py", line 95, in <module>
     new_figure_manager, draw_if_interactive, show = pylab_setup()
   File "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/__init__.py", line 25, in pylab_setup
     globals(),locals(),[backend_name])
   File "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/backend_qt4agg.py", line 12, in <module>
     from .backend_qt4 import QtCore, QtGui, FigureManagerQT, FigureCanvasQT,\
   File "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/backend_qt4.py", line 16, in <module>
     import matplotlib.backends.qt4_editor.figureoptions as figureoptions
   File "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/figureoptions.py", line 11, in <module>
     import matplotlib.backends.qt4_editor.formlayout as formlayout
   File "/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/formlayout.py", line 59, in <module>
     from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString,
ImportError: cannot import name QString

Looks like this backend hasn't been ported yet.

Xavier

···

Thank you for your fast reply and suggestion. I downloaded the GNU tar
ball and looked at it. Unfortunately due to my own limitations, I need
a win32 installer.
I'll have to bide my time I guess.

RDY

-----Original Message-----
From: Christoph Gohlke [mailto:cgohlke@…2143…]
Sent: Thursday, December 23, 2010 2:47 PM
To: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] Python 3

On 12/23/2010 1:01 PM, Robert Young wrote:

Hi, I have used Matplotlib extensively now for 2 years with python

2.x.

I recently needed to move to python 3.1 which was greatly facilitated

by

numpy and scipy being ported to python 3. I was lucky in that all I

have

to change is many print statements. All on a Windows OS.

But my progress is severely limited by having no port of Matplotlib to
python 3. I am definitely a user so have contributed twice to

Matplotlib

development.

Plea: If the stars align properly, I would be so grateful for a port

of

matplotlib to python 3.

Thanks for hearing me.

Did you try the py3k branch at
<http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/branches/py3k/>
? It
does work for simple plots.

--
Christoph

------------------------------------------------------------------------
------
Learn how Oracle Real Application Clusters (RAC) One Node allows
customers
to consolidate database storage, standardize their database environment,
and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I remember seeing this on Gentoo and, unfortunately, never tracked it
down. However, it seems to me this is a problem with your PyQt4
install and Python 3, as QString should be found.

Ryan

···

On Sun, Jan 2, 2011 at 12:24 PM, Xavier Gnata <xavier.gnata@...287...> wrote:

which backend should we use?
It does not work with pyqt4

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.1/dist-packages/pylab.py", line 1, in
<module>
from matplotlib.pylab import *
File "/usr/local/lib/python3.1/dist-packages/matplotlib/pylab.py",
line 259, in <module>
from matplotlib.pyplot import *
File "/usr/local/lib/python3.1/dist-packages/matplotlib/pyplot.py",
line 95, in <module>
new_figure_manager, draw_if_interactive, show = pylab_setup()
File
"/usr/local/lib/python3.1/dist-packages/matplotlib/backends/__init__.py", line
25, in pylab_setup
globals(),locals(),[backend_name])
File
"/usr/local/lib/python3.1/dist-packages/matplotlib/backends/backend_qt4agg.py",
line 12, in <module>
from .backend_qt4 import QtCore, QtGui, FigureManagerQT,
FigureCanvasQT,\
File
"/usr/local/lib/python3.1/dist-packages/matplotlib/backends/backend_qt4.py",
line 16, in <module>
import matplotlib.backends.qt4_editor.figureoptions as figureoptions
File
"/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/figureoptions.py",
line 11, in <module>
import matplotlib.backends.qt4_editor.formlayout as formlayout
File
"/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/formlayout.py",
line 59, in <module>
from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString,
ImportError: cannot import name QString

Looks like this backend hasn't been ported yet.

--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

It's not a problem with the PyQt4 installation. PyQt on python-3 uses
PyQt's new API, which uses python strings and does not provide
QString, QChar, and friends.
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#selecting-incompatible-apis

Darren

···

On Mon, Jan 3, 2011 at 9:45 AM, Ryan May <rmay31@...287...> wrote:

On Sun, Jan 2, 2011 at 12:24 PM, Xavier Gnata <xavier.gnata@...287...> wrote:

which backend should we use?
It does not work with pyqt4

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.1/dist-packages/pylab.py", line 1, in
<module>
from matplotlib.pylab import *
File "/usr/local/lib/python3.1/dist-packages/matplotlib/pylab.py",
line 259, in <module>
from matplotlib.pyplot import *
File "/usr/local/lib/python3.1/dist-packages/matplotlib/pyplot.py",
line 95, in <module>
new_figure_manager, draw_if_interactive, show = pylab_setup()
File
"/usr/local/lib/python3.1/dist-packages/matplotlib/backends/__init__.py", line
25, in pylab_setup
globals(),locals(),[backend_name])
File
"/usr/local/lib/python3.1/dist-packages/matplotlib/backends/backend_qt4agg.py",
line 12, in <module>
from .backend_qt4 import QtCore, QtGui, FigureManagerQT,
FigureCanvasQT,\
File
"/usr/local/lib/python3.1/dist-packages/matplotlib/backends/backend_qt4.py",
line 16, in <module>
import matplotlib.backends.qt4_editor.figureoptions as figureoptions
File
"/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/figureoptions.py",
line 11, in <module>
import matplotlib.backends.qt4_editor.formlayout as formlayout
File
"/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/formlayout.py",
line 59, in <module>
from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString,
ImportError: cannot import name QString

Looks like this backend hasn't been ported yet.

I remember seeing this on Gentoo and, unfortunately, never tracked it
down. However, it seems to me this is a problem with your PyQt4
install and Python 3, as QString should be found.

I stand corrected. I don't know what's worse, being so blatently
wrong, or having wasted a bunch of time in the past trying to "fix" a
"broken" install.

Time to don ye olde paper bag...

Ryan

···

On Mon, Jan 3, 2011 at 9:28 AM, Darren Dale <dsdale24@...287...> wrote:

On Mon, Jan 3, 2011 at 9:45 AM, Ryan May <rmay31@...287...> wrote:

On Sun, Jan 2, 2011 at 12:24 PM, Xavier Gnata <xavier.gnata@...287...> wrote:

"/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/formlayout.py",
line 59, in <module>
from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString,
ImportError: cannot import name QString

Looks like this backend hasn't been ported yet.

I remember seeing this on Gentoo and, unfortunately, never tracked it
down. However, it seems to me this is a problem with your PyQt4
install and Python 3, as QString should be found.

It's not a problem with the PyQt4 installation. PyQt on python-3 uses
PyQt's new API, which uses python strings and does not provide
QString, QChar, and friends.
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#selecting-incompatible-apis

--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

ok. It means that the qt4 backend need to be ported to python3.
Should I try the tk backend ?
What's the plan? First port matplotlib core? Focus on one backend?
What do you want us to test? How should we report python3 related bugs?

Xavier

···

On 01/03/2011 05:29 PM, Ryan May wrote:

On Mon, Jan 3, 2011 at 9:28 AM, Darren Dale<dsdale24@...287...> wrote:

On Mon, Jan 3, 2011 at 9:45 AM, Ryan May<rmay31@...287...> wrote:

On Sun, Jan 2, 2011 at 12:24 PM, Xavier Gnata<xavier.gnata@...287...> wrote:

"/usr/local/lib/python3.1/dist-packages/matplotlib/backends/qt4_editor/formlayout.py",
line 59, in<module>
     from PyQt4.QtCore import (Qt, SIGNAL, SLOT, QSize, QString,
ImportError: cannot import name QString

Looks like this backend hasn't been ported yet.

I remember seeing this on Gentoo and, unfortunately, never tracked it
down. However, it seems to me this is a problem with your PyQt4
install and Python 3, as QString should be found.

It's not a problem with the PyQt4 installation. PyQt on python-3 uses
PyQt's new API, which uses python strings and does not provide
QString, QChar, and friends.
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#selecting-incompatible-apis

I stand corrected. I don't know what's worse, being so blatently
wrong, or having wasted a bunch of time in the past trying to "fix" a
"broken" install.

Time to don ye olde paper bag...

Ryan