Hi, port upgrade recently updated wxPython to py-wxpython 2.8.4.0, python/py-wxpython (Variants: universal). Now I am trying to enhance the py-matplotlib port and have to reinstall it. This does not work and gives me the errors given below, which seem to be the once described here: http://lists.macosforge.org/pipermail/macports-users/2007-February/ 001820.html Can you confirm this? How can we fix this?
sudo port install +gtk2 ---> Fetching py-matplotlib ---> Attempting to fetch matplotlib-0.90.0.tar.gz from http:// downloads.sourceforge.net/matplotlib ---> Verifying checksum(s) for py-matplotlib ---> Extracting py-matplotlib ---> Applying patches to py-matplotlib ---> Configuring py-matplotlib ---> Building py-matplotlib with target build Error: Target com.apple.build returned: shell command " cd "/opt/ local/var/db/dports/build/_Users_jochen_source_macports- trunk_dports_python_py-matplotlib/work/matplotlib-0.90.0" && /opt/ local/bin/python2.4 setup.py build " returned error 1 Command output: ./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 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 -fno-strict-aliasing -Wno-long- double -no-cpp-precomp -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 -c src/_wxagg.cpp -o build/temp.macosx-10.3-i386-2.4/src/_wxagg.o" failed with exit status 1
Error: Status 1 encountered during processing. Greetings, Jochen -- Einigkeit und Recht und Freiheit http://www.Jochen- Kuepper.de Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D Sex, drugs and rock-n-roll
Hi Jochen,
Can you confirm this?
Not just yet, but...
How can we fix this?
... your output gave me an idea. I don't know how to deal all of the warnings that are like:
./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
but a friend of mine said that errors like this"
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>
are usually a sign that the overloaded function (which here is wxString::wxString) does not have an overloading whose arguments are of the right number type. In the case that I had to deal with before, it turned out that Mac OS X typedef'd something as a long long int, which the function didn't have a case for dealing with; it may be that there is something similarly system-specific happening here, but it could equally be something else. If you're not much chop with C or C++, of course, this won't mean anything to you, but maybe somebody else who is might find this useful. Kind regards, Maun Suang -- Boey Maun Suang (Boey is my surname) Email: boeyms at macports dot org
On 20.05.2007, at 10:02, Boey Maun Suang wrote:
./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
These warnings I am not too worried about...
but a friend of mine said that errors like this"
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>
are usually a sign that the overloaded function (which here is wxString::wxString) does not have an overloading whose arguments are of the right number type.
yup. From the C++ perspective that could be right, but that's not where I want to get at. I want py-matplotlib to work... Ok, here's I propose to proceed: I implemented a wxpython variant and make sure that wxpython (WXAGG) is used if the user specifies this variant, but is definitely switched off otherwise (circumventing matplotlibs auto-detection). I have changed the gtk2 variant to behave the same way (it did already for GTKAGG, but not for GTK). py-matplotlib builds with either variant, but with wxPython it crashes upon "import pylab". I will report the problem upstream. Anyway, that's what I get when building against wxPython: DEBUG: Assembled command: 'cd "/opt/local/var/db/dports/build/ _Users_jochen_source_macports-trunk_dports_python_py-matplotlib/work/ matplotlib-0.90.0" && /opt/local/bin/python2.4 setup.py build' setup.py:267: DeprecationWarning: The wxPython compatibility package is no longer automatically generated or actively maintained. Please switch to the wx package as soon as possible. import wxPython /opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/_core.py: 13967: UserWarning: wxPython/wxWidgets release number mismatch warnings.warn("wxPython/wxWidgets release number mismatch") WXAgg's accelerator requires wxPython running build Seem to confirm my previous thoughts on version mismatch and looks like a real upstream change is necessary;( I will check in the current version, although the wxPython variant is broken. But that is better than the old Portfile, which would always be broken if current wxPython is installed. Greetings, Jochen -- Einigkeit und Recht und Freiheit http://www.Jochen- Kuepper.de Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D Sex, drugs and rock-n-roll
participants (2)
-
Boey Maun Suang
-
Jochen Küpper