py-matplotlib install failure

Jyrki Wahlstedt jwa at macports.org
Wed Feb 28 06:48:57 PST 2007


Hi,
this seems to be a case, where wxWidgets/wxPython version makes a  
difference (at least as long as wxWidgets and wxPython are not  
synced). I installed py-wxpython26, with wxWidgets 2.6.3. The build  
goes fine. Not so with 2.8.2-rc1, which comes with py-wxpython  
currently. ${prefix}/lib/python2.4/site-packages contains the file  
wxversion.py that doesn't seem to know version 2.8 yet, so all  
packages depending on py-wxpython, one way or another, could try the  
older version. This is a bit of a nightmare, so if and when those two  
are released in sync properly, I'd like to celebrate:-)

On 27.2.2007, at 16.56, Kevin Horton wrote:

> I saw that the py-matplotlib port had been updated, so I made  
> another attempt to install it.  This attempt failed:
>
> % sudo port install py-matplotlib
> Password:
> Error: Target com.apple.build returned: shell command "cd "/opt/ 
> local/var/db/dports/build/ 
> _Volumes_Maxtor_300_opt_local_var_db_dports_sources_rsync.rsync.darwin 
> ports.org_dpupdate_dports_python_py-matplotlib/work/ 
> matplotlib-0.87.6" && MPLIB_BASE="/opt/local" /opt/local/bin/ 
> python2.4 setup.py build" returned error 1
> Command output: setup.py:225: DeprecationWarning: The wxPython  
> compatibility package is no longer automatically generated or  
> activly maintained.  Please switch to the wx package as soon as  
> possible.
>   try: import wxPython
> GTK requires pygtk
> running build
> running build_py
> running build_ext
> building 'matplotlib.backends._wxagg' extension
> /usr/bin/gcc-4.0 -fno-strict-aliasing -Wno-long-double -no-cpp- 
> precomp -mno-fused-madd -fno-common -fno-common -dynamic -DNDEBUG - 
> g -O3 -Wall -Wstrict-prototypes -D_FILE_OFFSET_BITS=64 - 
> D_LARGE_FILES -D__WXMAC__ -I/opt/local/include -I/usr/include -I/ 
> opt/local/include/python2.4 -I. -Isrc -Iswig -Iagg23/include -I. -I/ 
> opt/local/include -I/usr/include -I/opt/local/include/python2.4 -I.  
> -I/opt/local/include/freetype2 -I/usr/include/freetype2 -I/opt/ 
> local/include/python2.4/freetype2 -I./freetype2 -Isrc/freetype2 - 
> Iswig/freetype2 -Iagg23/include/freetype2 -I./freetype2 -I/opt/ 
> local/include/freetype2 -I/usr/include/freetype2 -I/opt/local/ 
> include/python2.4/freetype2 -I./freetype2 -I/opt/local/include -I/ 
> usr/include -I/opt/local/include/python2.4 -I. -I/opt/local/lib/wx/ 
> include/mac-unicode-release-2.8 -I/opt/local/include/wx-2.8 -I/opt/ 
> local/Library/Frameworks/Python.framework/Versions/2.4/include/ 
> python2.4 -I/opt/local/include/python2.4 -c src/_wxagg.cpp -o build/ 
> temp.darwin-8.8.0-P
>  ower_Macintosh-2.4/src/_wxagg.o
> cc1plus: warning: command line option "-Wstrict-prototypes" is  
> valid for C/ObjC but not for C++
> src/_wxagg.cpp: In function 'wxBitmap* convert_agg2bitmap 
> (RendererAgg*, Bbox*)':
> src/_wxagg.cpp:238: error: conversion from 'wxImage*' to 'const  
> wxString' is ambiguous
> /opt/local/include/wx-2.8/wx/string.h:692: note: candidates are:  
> wxString::wxString(wxChar, size_t) <near match>
> /opt/local/include/wx-2.8/wx/string.h:682: note:                  
> wxString::wxString(int) <near match>
> ./CXX/Extensions.hxx: In constructor  
> 'Py::PythonExtension<T>::PythonExtension() [with T = BufferRegion]':
> src/_backend_agg.h:50:   instantiated from here
> ./CXX/Extensions.hxx:477: warning: right-hand operand of comma has  
> no effect
> ./CXX/Extensions.hxx: In constructor  
> 'Py::PythonExtension<T>::PythonExtension() [with T = LazyValue]':
> src/_transforms.h:27:   instantiated from here
> ./CXX/Extensions.hxx:477: warning: right-hand operand of comma has  
> no effect
> ./CXX/Extensions.hxx: In constructor  
> 'Py::PythonExtension<T>::PythonExtension() [with T = Func]':
> src/_transforms.h:379:   instantiated from here
> ./CXX/Extensions.hxx:477: warning: right-hand operand of comma has  
> no effect
> ./CXX/Extensions.hxx: In constructor  
> 'Py::PythonExtension<T>::PythonExtension() [with T = FuncXY]':
> src/_transforms.h:466:   instantiated from here
> ./CXX/Extensions.hxx:477: warning: right-hand operand of comma has  
> no effect
> ./CXX/Extensions.hxx: In constructor  
> 'Py::PythonExtension<T>::PythonExtension() [with T = Transformation]':
> src/_transforms.h:538:   instantiated from here
> ./CXX/Extensions.hxx:477: warning: right-hand operand of comma has  
> no effect
> error: command '/usr/bin/gcc-4.0' failed with exit status 1
>
> Error: Status 1 encountered during processing.
>
> --
> Kevin Horton
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macports-users



!
! Jyrki Wahlstedt
!	skype:jyrkiwahlstedt
!	http://www.wahlstedt.fi/jyrki/
!
! Our life is no dream; but it ought to become one and perhaps will.
! PGP key ID: 0x139CC386 fingerprint: F355 B46F 026C B8C1 89C0  A780  
6366 EFD9 139C C386






More information about the macports-users mailing list