wxPython.h: No such file or directory

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 <robin@...559...>
Distribution: SuSE Linux 9.1 (i586)

Nils

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
rkern@...376...

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
  -- Richard Harter

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

···

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

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