From: Nils W. <nw...@me...> - 2005-09-08 07:09:10
|
Hi all, I am trying to build matplotlib from cvs on SuSE 9.1. python setup.py build results in src/_wxagg.cpp:55:34: wx/wxPython/wxPython.h: No such file or directory src/_wxagg.cpp: In member function `Py::Object _wxagg_module::convert_agg_to_wx_image(const Py::Tuple&)': src/_wxagg.cpp:105: error: `wxPyConstructObject' undeclared (first use this function) src/_wxagg.cpp:105: error: (Each undeclared identifier is reported only once for each function it appears in.) src/_wxagg.cpp: In member function `Py::Object _wxagg_module::convert_agg_to_wx_bitmap(const Py::Tuple&)': src/_wxagg.cpp:129: error: `wxPyConstructObject' undeclared (first use this function) src/_wxagg.cpp: In function `void init_wxagg()': src/_wxagg.cpp:260: error: `wxPyCoreAPI_IMPORT' undeclared (first use this function) error: command 'gcc' failed with exit status 1 Where can I find wxPython.h ? cvs/matplotlib> rpm -qi python-wxGTK Name : python-wxGTK Relocations: (not relocatable) Version : 2.4.2.4 Vendor: SuSE Linux AG, Nuernberg, Germany Release : 138 Build Date: Wed 07 Apr 2004 08:27:12 AM CEST Install date: Tue 03 Aug 2004 11:13:30 AM CEST Build Host: g103.suse.de Group : Development/Libraries/Python Source RPM: wxGTK-2.4.2.4-138.src.rpm Size : 15938338 License: GPL Signature : DSA/SHA1, Wed 07 Apr 2004 08:33:58 AM CEST, Key ID a84edae89c800aca Packager : http://www.suse.de/feedback URL : http://www.wxpython.org Summary : Cross Platform GUI Toolkit for Python Using wxGTK Description : wxPython is a GUI toolkit for Python that is a wrapper around the wxWidgets C++ GUI library. wxPython provides a large variety of window types and controls, all implemented with a native look and feel (and native runtime speed) on the platforms it is supported on. Additional documentation is available in package python-wxGTK-doc and demos and examples are in package python-wxGTK-examples. Authors: -------- Robin Dunn <ro...@al...> Distribution: SuSE Linux 9.1 (i586) Nils |
From: Robert K. <rk...@uc...> - 2005-09-08 07:26:17
|
Nils Wagner wrote: > Hi all, > > I am trying to build matplotlib from cvs on SuSE 9.1. > > python setup.py build results in > > src/_wxagg.cpp:55:34: wx/wxPython/wxPython.h: No such file or directory It's included in SuSE 9.3 at least. It might have been left out of the 9.1 release, but you'll have to take that up with SuSE. http://www.novell.com/products/linuxpackages/professional/python-wxgtk.html -- Robert Kern rk...@uc... "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter |
From: Arnd B. <arn...@we...> - 2005-09-08 07:58:46
|
On Thu, 8 Sep 2005, Robert Kern wrote: > Nils Wagner wrote: > > Hi all, > > > > I am trying to build matplotlib from cvs on SuSE 9.1. > > > > python setup.py build results in > > > > src/_wxagg.cpp:55:34: wx/wxPython/wxPython.h: No such file or directory could that one be in a corresponding python-wxGTK "-dev" package? (For debian sarge it was necessary to download the source package and copy the corresponding files from wx/wxPython/ to the right place) Best, Arnd |
From: Christian K. <ck...@ho...> - 2005-09-08 08:00:07
|
Nils Wagner wrote: > Hi all, > > I am trying to build matplotlib from cvs on SuSE 9.1. > > python setup.py build results in > > src/_wxagg.cpp:55:34: wx/wxPython/wxPython.h: No such file or directory > src/_wxagg.cpp: In member function `Py::Object > _wxagg_module::convert_agg_to_wx_image(const Py::Tuple&)': > src/_wxagg.cpp:105: error: `wxPyConstructObject' undeclared (first use > this function) > src/_wxagg.cpp:105: error: (Each undeclared identifier is reported only > once for each function it appears in.) > src/_wxagg.cpp: In member function `Py::Object > _wxagg_module::convert_agg_to_wx_bitmap(const Py::Tuple&)': > src/_wxagg.cpp:129: error: `wxPyConstructObject' undeclared (first use > this function) > src/_wxagg.cpp: In function `void init_wxagg()': > src/_wxagg.cpp:260: error: `wxPyCoreAPI_IMPORT' undeclared (first use > this function) > error: command 'gcc' failed with exit status 1 > > Where can I find wxPython.h ? > > cvs/matplotlib> rpm -qi python-wxGTK Have you installed python-wxGTK-devel as well? The include files should be there. Btw. the rpm packages from wxpython.org work without problems on SuSE and are more recent than those shipped. Regards, Christian |
From: Christian K. <ck...@ho...> - 2005-09-08 11:56:26
|
Nils Wagner wrote: > Christian Kristukat wrote: > >>Nils Wagner wrote: >> >>>Hi all, >>> >>>I am trying to build matplotlib from cvs on SuSE 9.1. >>> >>>python setup.py build results in >>> >>>src/_wxagg.cpp:55:34: wx/wxPython/wxPython.h: No such file or directory >>>src/_wxagg.cpp: In member function `Py::Object >>>_wxagg_module::convert_agg_to_wx_image(const Py::Tuple&)': >>>src/_wxagg.cpp:105: error: `wxPyConstructObject' undeclared (first use >>>this function) >>>src/_wxagg.cpp:105: error: (Each undeclared identifier is reported only >>>once for each function it appears in.) >>>src/_wxagg.cpp: In member function `Py::Object >>>_wxagg_module::convert_agg_to_wx_bitmap(const Py::Tuple&)': >>>src/_wxagg.cpp:129: error: `wxPyConstructObject' undeclared (first use >>>this function) >>>src/_wxagg.cpp: In function `void init_wxagg()': >>>src/_wxagg.cpp:260: error: `wxPyCoreAPI_IMPORT' undeclared (first use >>>this function) >>>error: command 'gcc' failed with exit status 1 >>> >>>Where can I find wxPython.h ? >>> >>>cvs/matplotlib> rpm -qi python-wxGTK >> >>Have you installed python-wxGTK-devel as well? The include files >>should be there. Btw. the rpm packages from wxpython.org work without >>problems on SuSE and are more recent than those shipped. >> > > Unfortunately, SuSE 9.1 comes without python-wxGTK-devel. > Which rpm's (from wxpython.org) are necessary and can be used with SuSE > 9.1 ? > On 9.2 I'm using those: wxPython2.6-gtk2-unicode-2.6.1.0-1_py2.3 wxPython2.6-devel-gtk2-unicode-2.6.1.0-1_py2.3 wxPython-common-gtk2-unicode-2.6.0.1-1_py2.3 Christian |
From: Christian K. <ck...@ho...> - 2005-09-08 12:08:38
|
Nils Wagner wrote: >>>Unfortunately, SuSE 9.1 comes without python-wxGTK-devel. >>>Which rpm's (from wxpython.org) are necessary and can be used with SuSE >>>9.1 ? >>> >> >>On 9.2 I'm using those: >> >>wxPython2.6-gtk2-unicode-2.6.1.0-1_py2.3 >>wxPython2.6-devel-gtk2-unicode-2.6.1.0-1_py2.3 >>wxPython-common-gtk2-unicode-2.6.0.1-1_py2.3 >> > > Sorry, I cannot find SuSE specific rpm's but only rpm's for Fedora, > Mandrake and Red Hat. > http://www.wxpython.org/download.php > There aren't any for SuSE, I'm using the RH9 ones. Christian |
From: John H. <jdh...@ac...> - 2005-09-08 13:47:24
|
>>>>> "Nils" == Nils Wagner <nw...@me...> writes: Nils> Hi all, I am trying to build matplotlib from cvs on SuSE Nils> 9.1. Nils> python setup.py build results in Nils> src/_wxagg.cpp:55:34: wx/wxPython/wxPython.h: No such file Nils> or directory src/_wxagg.cpp: In member function `Py::Object Nils> _wxagg_module::convert_agg_to_wx_image(const Py::Tuple&)': Nils> src/_wxagg.cpp:105: error: `wxPyConstructObject' undeclared Nils> (first use this function) src/_wxagg.cpp:105: error: (Each Nils> undeclared identifier is reported only once for each Nils> function it appears in.) src/_wxagg.cpp: In member function Nils> `Py::Object _wxagg_module::convert_agg_to_wx_bitmap(const Nils> Py::Tuple&)': src/_wxagg.cpp:129: error: Nils> `wxPyConstructObject' undeclared (first use this function) Nils> src/_wxagg.cpp: In function `void init_wxagg()': Nils> src/_wxagg.cpp:260: error: `wxPyCoreAPI_IMPORT' undeclared Nils> (first use this function) error: command 'gcc' failed with Nils> exit status 1 Nils> Where can I find wxPython.h ? Nils, if you don't specifically want the wxagg animated blit functionality (as described here http://www.scipy.org/wikis/topical_software/Animations), you can set 'BUILD_WXAGG = 0' in setup.py. Otherwise, you'll need to get the devel headers as others have suggested. Kevin, Do you think it would be possible to make the BUILD_WXAGG logic a little smarter so that it doesn't kill the build process? Or perhaps set BUILD_WXAGG to False by default. I'm afraid this one will bite a lot of people who have wxpython installed but not the devel headers (as noted in previous discussions, the debian devel packages appear broken with respect to wxPython.h). JDH |
From: Ken M. <mc...@ii...> - 2005-09-08 15:11:32
|
On Sep 8, 2005, at 8:46 AM, John Hunter wrote: > Kevin, Do you think it would be possible to make the BUILD_WXAGG logic > a little smarter so that it doesn't kill the build process? Or > perhaps set BUILD_WXAGG to False by default. I will review buildext.py and see if I can add a check for the presence of `wxPython.h'. For now, you should probably set BUILD_WXAGG to False by default. Maybe I should get this Kevin guy to help ;-) > I'm afraid this one will bite a lot of people who have wxpython > installed > but not the devel headers (as noted in previous discussions, the > debian devel > packages appear broken with respect to wxPython.h). I'm working with Ron Lee to get that fixed. It looks like it may be an upstream issue, in that the wxPython distutils script doesn't even try to install the headers. It probably won't be a hard fix, once I've made sure I understand the problem. Ken |
From: Ken M. <mc...@ii...> - 2005-09-09 06:09:36
|
John, I just submitted a (lightly tested) patch to sourceforge which tries to detect that wxPython.h is missing. This situation is handled the same way a missing `wx-config' is, in that the build is only killed when BUILD_WXAGG is True (as opposed to just emitting a message when it's "auto"). Ken |
From: John H. <jdh...@ac...> - 2005-09-09 18:16:29
|
>>>>> "Ken" == Ken McIvor <mc...@ii...> writes: Ken> John, I just submitted a (lightly tested) patch to Ken> sourceforge which tries to detect that wxPython.h is missing. Ken> This situation is handled the same way a missing `wx-config' Ken> is, in that the build is only killed when BUILD_WXAGG is True Ken> (as opposed to just emitting a message when it's "auto"). OK, I just committed this. There was a minor correction flags = getoutput(wxconfig + ' --cppflags').split() ^^^^^^^^ Checking in setupext.py; /cvsroot/matplotlib/matplotlib/setupext.py,v <-- setupext.py new revision: 1.88; previous revision: 1.87 'Thanks, Kevin'.replace('vi', '') <wink> |