Re: [Matplotlib-users] problem building matplotlib
On 09/14/2010 01:36 PM, Dan Kortschak wrote: Hello, I just tried to have just tried to build matplotlib, but it fails - and is unable to find wxPython (looking under 2.8 rather than 2.6 where is lives - installed from source) or libgtk-2 headers (installed from apt repo). Can anyone suggest how to resolve these issues? If you want to use wx, you need 2.8. It looks like you don't have any of the gui dependencies. Since you you are running ubuntu, I suggest you use the installation method recently described in this thread: http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg18464.html Be careful to read down through the thread; the first try at comprehensive instructions has an error. Eric -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] problem building matplotlib
Thanks Eric, The gui dependencies are secondary, but I will look into that. Since they are optional, the absence of them should not be the cause of the failure, but it looks like it might be. Is that the case? cheers Dan On Tue, 2010-09-14 at 21:42 -1000, Eric Firing wrote: On 09/14/2010 01:36 PM, Dan Kortschak wrote: Hello, I just tried to have just tried to build matplotlib, but it fails - and is unable to find wxPython (looking under 2.8 rather than 2.6 where is lives - installed from source) or libgtk-2 headers (installed from apt repo). Can anyone suggest how to resolve these issues? If you want to use wx, you need 2.8. It looks like you don't have any of the gui dependencies. Since you you are running ubuntu, I suggest you use the installation method recently described in this thread: http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg18464.html Be careful to read down through the thread; the first try at comprehensive instructions has an error. Eric -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] problem building matplotlib
I've just has a look at that and unfortunately it does not fix the problem Is there any other suggestion that might be worth a try? I should point out that I already have numpy 1.4.1 installed and scipy 0.8.0 as dependencies for other packages. thanks Dan On Tue, 2010-09-14 at 21:42 -1000, Eric Firing wrote: Since you you are running ubuntu, I suggest you use the installation method recently described in this thread: http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg18464.html Be careful to read down through the thread; the first try at comprehensive instructions has an error. -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] problem building matplotlib
On 09/15/2010 03:50 AM, Benjamin Root wrote: On Wed, Sep 15, 2010 at 5:34 AM, Dan Kortschak dan.kortsc...@adelaide.edu.au mailto:dan.kortsc...@adelaide.edu.au wrote: I've just has a look at that and unfortunately it does not fix the problem Is there any other suggestion that might be worth a try? I should point out that I already have numpy 1.4.1 installed and scipy 0.8.0 as dependencies for other packages. thanks Dan Hmm, that shouldn't be an issue. Maybe you need to completely clean out the matplotlib build (by removing the build directory) and try again? Be sure to save the build output so we can see what happens if/when it fails. Looking again at the original build output, and at setup.py and setupext.py, it appears that there is a bug in the latter. If the wrong version of wx is found, it should be disabling the attempt to build wxagg, and reporting wxPython: no. We need to fix the bug, but the workaround for now is to use a setup.cfg file with wxagg = False Eric Ben Root -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] problem building matplotlib
That fixes the problem. thanks On Wed, 2010-09-15 at 07:30 -1000, Eric Firing wrote: Looking again at the original build output, and at setup.py and setupext.py, it appears that there is a bug in the latter. If the wrong version of wx is found, it should be disabling the attempt to build wxagg, and reporting wxPython: no. We need to fix the bug, but the workaround for now is to use a setup.cfg file with wxagg = False Eric -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] problem building matplotlib
On 09/15/2010 01:17 PM, Dan Kortschak wrote: That fixes the problem. thanks On Wed, 2010-09-15 at 07:30 -1000, Eric Firing wrote: Looking again at the original build output, and at setup.py and setupext.py, it appears that there is a bug in the latter. If the wrong version of wx is found, it should be disabling the attempt to build wxagg, and reporting wxPython: no. We need to fix the bug, but the workaround for now is to use a setup.cfg file with wxagg = False Eric It turns out that the _wxagg extension was specific to version 2.6, and for a long time we have required version 2.8, so there was no point in trying to build the extension. In svn 8702 I removed the extension along with related 2.6-only code, and the setup.py references to building the extension. Eric -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Problem building matplotlib
On 28/10/06, Eric Firing [EMAIL PROTECTED] wrote: The error is not in matplotlib, it is in a pygtk header file, which is presumably coming from a Redhat package. I don't know why it is True. happening or what the best solution is, though. It looks like the pygobject.h that I have has typename_, not typename, so I am thinking maybe this is a pygtk bug, since fixed, in which typename is in conflict with something. C++, typename is a reserved word there. You might try editing your copy of pygobject.h, adding the trailing underscore to typename on both lines where it occurs. It can't hurt; these are just dummy variable names. That is the solution, and you say the same that was adopted by the project to solve the problem. Eric -- José Abílio - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Problem building matplotlib
Victor Danilchenko wrote: Hi all, I am trying to build Matplotlib 0.87.7 on an RHEL 4.4-derived system, with Python 2.3.4. I am running into a weird problem. When I do python setup.py build, I get the following error: gcc: src/_gtkagg.cpp In file included from /usr/include/python2.3/Python.h:8, from /usr/include/pygtk-2.0/pygobject.h:5, from src/_gtkagg.cpp:11: /usr/include/python2.3/pyconfig.h:850:1: warning: _POSIX_C_SOURCE redefined In file included from /usr/include/string.h:26, from /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/cstring:51, from src/_gtkagg.cpp:2: /usr/include/features.h:150:1: warning: this is the location of the previous definition In file included from src/_gtkagg.cpp:11: /usr/include/pygtk-2.0/pygobject.h:140: error: expected `,' or `...' before typename /usr/include/pygtk-2.0/pygobject.h:147: error: expected `,' or `...' before typename [...] The error is not in matplotlib, it is in a pygtk header file, which is presumably coming from a Redhat package. I don't know why it is happening or what the best solution is, though. It looks like the pygobject.h that I have has typename_, not typename, so I am thinking maybe this is a pygtk bug, since fixed, in which typename is in conflict with something. You might try editing your copy of pygobject.h, adding the trailing underscore to typename on both lines where it occurs. It can't hurt; these are just dummy variable names. Eric - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users