[matplotlib-devel] Cannot build matplotlib from latest svn
Hi all, I cannot build matplotlib from latest svn. I am using SuSE Linux 10.0 on x86_64. python setup.py install BUILDING MATPLOTLIB matplotlib: 0.90.1 (r3634) platform: linux2 REQUIRED DEPENDENCIES numpy: 1.0.4.dev3937 freetype2: 9.8.3 OPTIONAL DEPENDENCIES Traceback (most recent call last): File "setup.py", line 223, in ? if check_for_gtk() and (BUILD_GTK or BUILD_GTKAGG): File "/usr/local/svn/matplotlib/setupext.py", line 411, in check_for_gtk print_status("Gtk+", "gtk+: %s, glib: %s, pygtk: %s, pygobject: %s" % AttributeError: 'module' object has no attribute 'pygobject_version' Nils - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Cannot build matplotlib from latest svn
I suspect you're running an earlier version of pygtk than I am that doesn't have pygobject_version. Please update matplotlib and try again. Thanks for finding this bug. Cheers, Mike Nils Wagner wrote: > Hi all, > > I cannot build matplotlib from latest svn. I am using SuSE Linux 10.0 on > x86_64. > > python setup.py install > > BUILDING MATPLOTLIB > matplotlib: 0.90.1 (r3634) > platform: linux2 > > REQUIRED DEPENDENCIES > numpy: 1.0.4.dev3937 > freetype2: 9.8.3 > > OPTIONAL DEPENDENCIES > Traceback (most recent call last): > File "setup.py", line 223, in ? > if check_for_gtk() and (BUILD_GTK or BUILD_GTKAGG): > File "/usr/local/svn/matplotlib/setupext.py", line 411, in check_for_gtk > print_status("Gtk+", "gtk+: %s, glib: %s, pygtk: %s, pygobject: %s" % > AttributeError: 'module' object has no attribute 'pygobject_version' > > Nils > > > > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ___ > Matplotlib-devel mailing list > Matplotlib-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] Cannot build matplotlib from latest svn
Michael Droettboom wrote: > I suspect you're running an earlier version of pygtk than I am that > doesn't have pygobject_version. > > Please update matplotlib and try again. > > Thanks for finding this bug. > > Cheers, > Mike > > Nils Wagner wrote: >> Hi all, >> >> I cannot build matplotlib from latest svn. I am using SuSE Linux 10.0 on >> x86_64. >> >> python setup.py install >> >> >> BUILDING MATPLOTLIB >> matplotlib: 0.90.1 (r3634) >> platform: linux2 >> >> REQUIRED DEPENDENCIES >> numpy: 1.0.4.dev3937 >> freetype2: 9.8.3 >> >> OPTIONAL DEPENDENCIES >> Traceback (most recent call last): >> File "setup.py", line 223, in ? >> if check_for_gtk() and (BUILD_GTK or BUILD_GTKAGG): >> File "/usr/local/svn/matplotlib/setupext.py", line 411, in >> check_for_gtk >> print_status("Gtk+", "gtk+: %s, glib: %s, pygtk: %s, pygobject: >> %s" % >> AttributeError: 'module' object has no attribute 'pygobject_version' >> >> Nils >> >> >> >> - >> >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> ___ >> Matplotlib-devel mailing list >> Matplotlib-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >> > Mike, Thank you for your prompt reply ! Now it works for me. Cheers, Nils BTW, I am using rpm -qi python-gtk Name: python-gtk Relocations: (not relocatable) Version : 2.8.0 Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany Release : 3 Build Date: Tue 13 Sep 2005 02:56:46 AM CEST Install date: Mon 27 Feb 2006 11:04:09 AM CET Build Host: mahler.suse.de Group : Development/Libraries/Python Source RPM: python-gtk-2.8.0-3.src.rpm Size: 5041273 License: LGPL Signature : DSA/SHA1, Tue 13 Sep 2005 04:32:38 AM CEST, Key ID a84edae89c800aca Packager: http://www.suse.de/feedback URL : http://www.pygtk.org/ Summary : Python bindings for the GTK+ widget set Description : PyGTK is an extension module for python that gives you access to the GTK+ widget set. Just about anything you can write in C with GTK+ you can write in python with PyGTK (within reason), but with all of python's benefits. Authors: James Henstridge <[EMAIL PROTECTED]> Distribution: SUSE LINUX 10.0 (X86-64) - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
[matplotlib-devel] Profiling. was Re: Experimental, traited config module available in svn
Fernando, Here is some more information about profiling that others may find useful: 1) The profile module reports times that are much longer than normal; I don't know to what extent the relative times are still correct; my impression is that they do still give a decent idea of where the bottlenecks and resource hogs are. 2) The combination of hotshot and hotshot2calltree (or similar) gets badly confused by duplicate function names such as __init__, so the kcachegrind view can be quite misleading. 3) A solution is to use the cProfile module in Python 2.5 with an appropriate reformatter. The following script runs a python script through cProfile and generates a *.log file that kcachegrind reads: http://www.gnome.org/~johan/lsprofcalltree.py So the sequence is simply python lsprofcalltree.py testscript.py kcachegrind testscript.py.log & Here are a couple of relevant Google results: https://lists.dulug.duke.edu/pipermail/yum-devel/2007-January/003045.html http://ddaa.net/blog/python/lsprof-calltree Eric Fernando Perez wrote: > On 7/31/07, Darren Dale <[EMAIL PROTECTED]> wrote: > >> I am attaching the results for two different tests. One is loading the >> default >> mpl-data/matplotlib.conf, the other is loading an empty >> ~/.matplotlib/matplotlib.conf. I haven't done much work with profiling, maybe >> others can make some comments about the results. > > I'm afraid I can't help with this right now, but you may want to look at > > http://amath.colorado.edu/faculty/fperez/python/profiling/ > > the little code I put in there makes using kcachegrind very easy for > python profiling, and it's really a useful tool for analyzing > profiling info. > > Cheers, > > f - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel