Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12461 - wxPython broken by wxGTK upgrade
Summary: wxPython broken by wxGTK upgrade
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-19 19:20 UTC by Olivier Crete (RETIRED)
Modified: 2003-01-17 14:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Crete (RETIRED) gentoo-dev 2002-12-19 19:20:01 UTC
wxPython is highly dependent upon wxGTK... Upgrading wxGTK breaks wxPython.
There are two solutions:
A. Have wxPython use its own private copy of wxGTK (which is actually what
wxPython ppl now recommend I think...)
B. Make sure wxPython is updated with wxGTK in portage.. (adding a comment to
that effect to the wxGTK/Python ebuilds would be nice)

I would clearly prefer B...
Comment 1 Nick Hadaway 2002-12-21 13:37:58 UTC
yes... it appears that our copy of wxGTK 2.3.4 was marked stable and wxPython 
wasn't upgraded in conjunction.  I am working on it right now.  I'll let you 
know if the updated version of wxPython appears to work well...
Comment 2 Nick Hadaway 2002-12-21 15:13:52 UTC
I am having trouble with wxPython 2.3.4.1 and 2.3.4.2 as well with wxGTK-
2.3.4... More testing will be done.  I'll post here as I get more results.

Currently things are failing on this... 

gcc -DNDEBUG -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -Isrc -
I/usr/include/python2.2 -c src/gtk/misc2.cpp -o build/temp.linux-i686-
2.2/src/gtk/misc2.o -I/usr/lib/wx/include/gtk-2.3 -DGTK_NO_CHECK_CASTS -
D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/gtk-1.2 -
I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -UNDEBUG -
O2 -mcpu=i686 -pipe
/usr/include/wx/utils.h: In function `PyObject* _wrap_wxSafeYield(PyObject*, 
PyObject*, PyObject*)':
/usr/include/wx/utils.h:373: too many arguments to function `bool wxSafeYield
(wxWindow* = 0)'
src/gtk/misc2.cpp:1524: at this point in file
error: command 'gcc' failed with exit status 1
Comment 3 SpanKY gentoo-dev 2002-12-21 16:43:18 UTC
that was my fault ... 
could you add your ebuilds for wxPython to cvs so i can mess around with them too ? 
Comment 4 Nick Hadaway 2003-01-01 23:05:53 UTC
I have just added wxGTK-2.4.0 to portage and i am anxiously awaiting wxPython 
2.4.0.?... I am not sure why wxPython is failing to compile in the 2.3.4.? 
series...I will post here as I make headway.
Comment 5 Olivier Crete (RETIRED) gentoo-dev 2003-01-02 03:05:18 UTC
wxPython documentation says it needs to be in the exact same version as wxGTK.
Comment 6 Nick Hadaway 2003-01-02 04:31:27 UTC
already a known fact which is why the initial unmasking of wxGTK-2.3.4 was a 
detrimental move.
Comment 7 Olivier Crete (RETIRED) gentoo-dev 2003-01-11 19:59:46 UTC
wxPython 2.4.0.1 is now out.. It would be a good time to update the ebuild...
Comment 8 Jasmin Buchert 2003-01-14 13:59:39 UTC
I just tried to emerge net-p2p/pysoulseek, but dev-python/wxPython-2.4.0.1 fails
to build on my system. I have wxGTK 2.4.0 installed.
Here is the output:

<snip>
gcc -DNDEBUG -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -Isrc
-I/usr/include/python2.2 -c src/gtk/cmndlgs.cpp -o
build/temp.linux-i686-2.2/src/gtk/cmndlgs.o -I/usr/lib/wx/include/gtk-2.4
-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -UNDEBUG -march=i586 -mcpu=i686 -O2 -pipe
-fomit-frame-pointer -frename-registers
gcc -DNDEBUG -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -Isrc
-I/usr/include/python2.2 -c src/gtk/stattool.cpp -o
build/temp.linux-i686-2.2/src/gtk/stattool.o -I/usr/lib/wx/include/gtk-2.4
-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -UNDEBUG -march=i586 -mcpu=i686 -O2 -pipe
-fomit-frame-pointer -frename-registers
gcc -DNDEBUG -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -Isrc
-I/usr/include/python2.2 -c src/gtk/frames.cpp -o
build/temp.linux-i686-2.2/src/gtk/frames.o -I/usr/lib/wx/include/gtk-2.4
-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -UNDEBUG -march=i586 -mcpu=i686 -O2 -pipe
-fomit-frame-pointer -frename-registers
gcc -DNDEBUG -fPIC -DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -Isrc
-I/usr/include/python2.2 -c src/gtk/image.cpp -o
build/temp.linux-i686-2.2/src/gtk/image.o -I/usr/lib/wx/include/gtk-2.4
-DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -UNDEBUG -march=i586 -mcpu=i686 -O2 -pipe
-fomit-frame-pointer -frename-registers
src/gtk/image.cpp: In function `void* 
   SwigwxTIFFHandlerTowxImageHandler(void*)':
src/gtk/image.cpp:1218: `wxTIFFHandler' undeclared (first use this function)
src/gtk/image.cpp:1218: (Each undeclared identifier is reported only once for 
   each function it appears in.)
src/gtk/image.cpp:1218: `src' undeclared (first use this function)
src/gtk/image.cpp:1220: parse error before `)' token
src/gtk/image.cpp: In function `void* SwigwxTIFFHandlerTowxObject(void*)':
src/gtk/image.cpp:1228: parse error before `)' token
src/gtk/image.cpp: In function `PyObject* _wrap_new_wxTIFFHandler(PyObject*, 
   PyObject*, PyObject*)':
src/gtk/image.cpp:1236: `_result' undeclared (first use this function)
src/gtk/image.cpp:1245: parse error before `)' token
src/gtk/image.cpp:1245: parse error before `(' token
error: command 'gcc' failed with exit status 1

!!! ERROR: dev-python/wxPython-2.4.0.1 failed.
!!! Function src_compile, Line 53, Exitcode 1
!!! build failed

Greetings
Comment 9 Nick Hadaway 2003-01-14 14:13:43 UTC
add tiff to your use variables, re-emerge wxGTK and then wxPython... 
Comment 10 SpanKY gentoo-dev 2003-01-14 14:15:07 UTC
raker: you changed the error message ? 
 
jasmin: re-emerge wxGTK with all the graphical USE variables enabled (specifically tiff) 
Comment 11 Nick Hadaway 2003-01-14 14:42:12 UTC
Yeah... I got rid of the error message.  Although there have been many problems related to not having  enough image library support I don't think that generic error message is a good idea.  Sometimes a problem may not be related to that...

What I am actually thinking is making tiff/jpeg/etc required dependancies.
Comment 12 Nick Hadaway 2003-01-15 13:16:55 UTC
wxGTK-2.4.0 and wxPython-2.4.0.1 has been released into portage as stable.
The dependancies in wxGTK are now set so all the image library support is installed by default.
Comment 13 Christian Schaefer 2003-01-17 01:17:51 UTC
hi there,

I just emerged pysoulseek, which emerged wxPython as well.
but when I start pyslsk I get the following error:

<snip>
You're using an old version of wxPython libraries (2.4.0).
You should install wxPython 2.3.3 or newer.
</snap>

sorry, am I mistaken when I say that v2.4.0 actually IS newer than 2.3.3???
Comment 14 SpanKY gentoo-dev 2003-01-17 14:25:30 UTC
we dont make claims for pysoulseek's ability to code 
 
upgrade to the masked version of pysoulseek and it'll work