SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: Tom L. <tom...@gm...> - 2012年05月30日 18:49:18
Hi All,
I saw that matplotlib had been ported to python 3 (here), and that the matplotlib-py3 branch was merged back into the main branch. So I assumed matplotlib was compatible with python 3, and went ahead and tried to use it. It didn't work. Is there a different fork which is compatible with python 3? What happened?
thanks,
Tom
From: Benjamin R. <ben...@ou...> - 2012年05月30日 18:59:48
On Wed, May 30, 2012 at 2:49 PM, Tom Lippman <tom...@gm...> wrote:
> Hi All,
>
> I saw that matplotlib had been ported to python 3 (here<http://pythonsprints.com/2011/04/8/matplotlib-python-3-thanks-cape-town-group/>),
> and that the matplotlib-py3 branch was merged back into the main branch.
> So I assumed matplotlib was compatible with python 3, and went ahead and
> tried to use it. It didn't work. Is there a different fork which is
> compatible with python 3? What happened?
>
> thanks,
>
> Tom
>
>
We have not done an official release yet with py3k support. Only the
master branch has that. What did you test?
Ben Root
From: Tom L. <tom...@gm...> - 2012年05月30日 19:05:18
I cloned the master branch on github and built it. I'm on OS X 10.7, using the python 3.2 from python.org. I installed fresh dependencies like in the osx makefile. Then I had to run 2to3 on setupegg.py to get it to build. Now when I try to import matplotlib in python3 I get a bunch of errors - e.g. it's looking for cPickle instead of pickle.
Tom
On May 30, 2012, at 11:54 AM, Thomas Kluyver wrote:
> On 30 May 2012 19:49, Tom Lippman <tom...@gm...> wrote:
>> I saw that matplotlib had been ported to python 3 (here), and that the
>> matplotlib-py3 branch was merged back into the main branch. So I assumed
>> matplotlib was compatible with python 3, and went ahead and tried to use it.
>> It didn't work. Is there a different fork which is compatible with python
>> 3? What happened?
> 
> How did you try to use it? The released version doesn't support Python
> 3, but the development version on Github does. For Ubuntu, I've got a
> daily-build PPA which includes python3-matplotlib:
> https://launchpad.net/~takluyver/+archive/matplotlib-daily
> 
> Thomas
From: Thomas K. <th...@kl...> - 2012年05月30日 19:33:18
On 30 May 2012 20:05, Tom Lippman <tom...@gm...> wrote:
> I'm on OS X 10.7, using the python 3.2
I saw someone recently who'd managed to get it built for Python 3 on
OS X. I suggested he come here to help simplify the process - this is
what he did: http://stackoverflow.com/a/10574470/434217
Thomas
From: Michael D. <md...@st...> - 2012年05月30日 19:47:31
The git master is compatible with Python 3, but it has not made it into 
a release.
Will be making at least one more 1.1.x bugfix release which will support 
Python 2.4 - 2.7 before making the next major release which will support 
Python 2.6 - 3.2.
Mike
On 05/30/2012 02:49 PM, Tom Lippman wrote:
> Hi All,
>
> I saw that matplotlib had been ported to python 3 (here 
> <http://pythonsprints.com/2011/04/8/matplotlib-python-3-thanks-cape-town-group/>), 
> and that the matplotlib-py3 branch was merged back into the main 
> branch. So I assumed matplotlib was compatible with python 3, and 
> went ahead and tried to use it. It didn't work. Is there a different 
> fork which is compatible with python 3? What happened?
>
> thanks,
>
> Tom
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
From: Thomas K. <th...@kl...> - 2012年05月30日 19:49:47
On 30 May 2012 19:49, Tom Lippman <tom...@gm...> wrote:
> I saw that matplotlib had been ported to python 3 (here), and that the
> matplotlib-py3 branch was merged back into the main branch. So I assumed
> matplotlib was compatible with python 3, and went ahead and tried to use it.
> It didn't work. Is there a different fork which is compatible with python
> 3? What happened?
How did you try to use it? The released version doesn't support Python
3, but the development version on Github does. For Ubuntu, I've got a
daily-build PPA which includes python3-matplotlib:
https://launchpad.net/~takluyver/+archive/matplotlib-daily
Thomas
From: Michael D. <md...@st...> - 2012年05月30日 21:47:43
On 05/30/2012 03:32 PM, Thomas Kluyver wrote:
> On 30 May 2012 20:05, Tom Lippman<tom...@gm...> wrote:
>> I'm on OS X 10.7, using the python 3.2
> I saw someone recently who'd managed to get it built for Python 3 on
> OS X. I suggested he come here to help simplify the process - this is
> what he did: http://stackoverflow.com/a/10574470/434217
>
> Thomas
>
It would be great to convert that post in a pull request so it can be 
included upstream. I'm not a Mac user myself, but I think there's 
enough Mac users to test that and push it through to make things easier 
on everyone else.
Mike
From: Tom L. <tom...@gm...> - 2012年05月31日 02:30:53
Hi All,
I've gotten it somewhat working. For some reason the build process isn't pointing 2to3 at the files in lib/matplotlib. But it's definitely running 2to3 on something..
Like the linked solution, I changed setupext.py to look for the dependencies in /usr/local. I also made a new makefile and setupeggs which are changed in obvious ways. The changes are on my github (tmlippman).
Rather than copy folders manually, I ran make twice:
	sudo make -f make.py3.osx PREFIX=/usr/local fetch deps
	sudo make -f make.py3.osx PREFIX=/Library/Frameworks/Python.framework/Versions/3.2 mpl_build mpl_install_develop
(outputs attached)
Everything appeared to compile fine, but when I tried to import matplotlib, I got errors like: ImportError: No module named cPickle.
After running 2to3 on the lib/matplotlib directory (in my source location) everything works.
Tom
From: Michael D. <md...@st...> - 2012年05月31日 13:00:52
2to3 is run on the source files in lib/matplotlib, which are then put 
under the build directory. Think of it like a compilation step -- the 
original source files should never be touched. You will need to install 
matplotlib (I recommend using virtualenv for this) in order to run it.
Mike
On 05/30/2012 10:30 PM, Tom Lippman wrote:
> Hi All,
>
> I've gotten it somewhat working. For some reason the build process 
> isn't pointing 2to3 at the files in lib/matplotlib. But it's 
> definitely running 2to3 on something..
>
> Like the linked solution, I changed setupext.py to look for the 
> dependencies in /usr/local. I also made a new makefile and setupeggs 
> which are changed in obvious ways. The changes are on my github 
> (tmlippman).
>
> Rather than copy folders manually, I ran make twice:
>
> sudo make -f make.py3.osx PREFIX=/usr/local fetch deps
>
> sudo make -f make.py3.osx 
> PREFIX=/Library/Frameworks/Python.framework/Versions/3.2 mpl_build 
> mpl_install_develop
>
> (outputs attached)
>
> Everything appeared to compile fine, but when I tried to import 
> matplotlib, I got errors like: ImportError: No module named cPickle.
>
> After running 2to3 on the lib/matplotlib directory (in my source 
> location) everything works.
>
>
> Tom
>
>
>
>
> On May 30, 2012, at 2:40 PM, Michael Droettboom wrote:
>
> > On 05/30/2012 03:32 PM, Thomas Kluyver wrote:
> >> On 30 May 2012 20:05, Tom Lippman<tom...@gm...> wrote:
> >>> I'm on OS X 10.7, using the python 3.2
> >> I saw someone recently who'd managed to get it built for Python 3 on
> >> OS X. I suggested he come here to help simplify the process - this is
> >> what he did: http://stackoverflow.com/a/10574470/434217
> >>
> >> Thomas
> >>
> > It would be great to convert that post in a pull request so it can be
> > included upstream. I'm not a Mac user myself, but I think there's
> > enough Mac users to test that and push it through to make things easier
> > on everyone else.
> >
> > Mike
> >
> > ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. 
> Discussions
> > will include endpoint security, mobile security and the latest in 
> malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > Matplotlib-devel mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /