Install Problem RH9

John P. Withers wrote:

Folks,

I am having a problem installing wxPython 2.4.1.2 from sources on a
fairly stock RH 9 box.

I have followed the build procedure for the "new way" outlined in
README.1st.txt in the root of the wxPythonSrc directory. Three times
now, in case I was missing something.

However, when I try to run the demo.py program from the 2.4.1.2 demo
directory (downloaded separately, obviously), I get the following spew:

Did you have an older version of libwx_gtk in /usr/lib/wxPython/lib before you started?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin,

Did you have an older version of libwx_gtk in /usr/lib/wxPython/lib
before you started?

There is a possibility that I did the first time I did this, but I
repeated the install quite a few times. During that process, I rm'ed the
entire /usr/lib/wxPython directory, and the wxPython in the python
site-packages directory as well. Obviously, I nuked the /build directory
in the wxpythonsrc distro directory as well before I started the new
build.

I also removed wxWindows entirely from my system, in case my normal
install was somehow futzing things up (fairly sure that isn't possible,
but trying to cover all the bases), and made sure that I didn't have any
entries that led to any wxWindows or wxPython stuff in /etc/ld.so.conf.

I am fairly baffled at this point.

Thanks for any help you might be able to give.

jpw

···

--
John P. Withers <withers@rampeffect.com>

Robin,

Try using nm to list the symbols in
/usr/lib/wxPython/lib/libwx_gtkd-2.4.so and grep for IsOwnGtkWindow and
see what you get. I expect that it will be something like
_ZN8wxWindow14IsOwnGtkWindowEP10_GdkWindow. If so then we need to look
at differences between compile command-line options and such for wxGTK
and wxPython and figure out why different symbol names are being
generated for the same method...

Okay, in my nm output from /usr/lib/wxPython/liblibwx-gtkd-2.4 I get the
following line:

0026fdd8 T _ZN8wxWindow14IsOwnGtkWindowEP10_GdkWindow

At the risk of wasting your reading time, I am going to go ahead and
reinstall again, and document exactly what I am doing, even tho I am
just following the instructions in the README.1st.txt file. Maybe I am
missing something.

rm -rf /usr/lib/wxPython/
rm -rf /usr/lib/python2.2/site-packages/wxPython/
rm -rf /usr/lib/python2.2/site-packages/wx/
rm -rf <mypath>/wxPythonSrc-2.4.1.2/build

Ensured there were no libgtk or lib_gtk with wx in their names or
anything else close to a wx lib in /usr/lib.

Made sure no wx related entries in /etc/ld.so.conf

These next bits are straight from the instructions:

Made the wxPythonSrc-2.4.1.2/ build directory and went there.

exported WXPREF=/usr/lib/wxPython

../configure --with-gtk --prefix=$WXPREF --enable-rpath=$WXPREF/lib
--with-opengl --enable-geometry --enable-optimise --enable-debug_flag

Did make and make install

changed to the wxPythonSrc-2.4.1.2/wxPython directory and did

python setup.py WX_CONFIG=$WXPREF/bin/wx-config build install

And then I went to my download of the wxPython-2.4.1.2 demos, ran python
demo.py and got the same spew, the salient line of which was again:

ImportError: /usr/lib/python2.2/site-packages/wxPython/wxc.so: undefined
symbol: _ZN8wxWindow14IsOwnGtkWindowEP12_GdkDrawable

the output from nm /usr/lib/python2.2/site-packages/wxPython/wxc.so

grep IsOwnGtkWindow :

         U _ZN8wxButton14IsOwnGtkWindowEP12_GdkDrawable
         U _ZN8wxWindow14IsOwnGtkWindowEP12_GdkDrawable

Which is interesting because it is different than the last time I did
this. I suspect I forgot previously to rm the site-packages/wx dir on
that particular attempt.

Just for completeness, since this is already an epic debug, here are the
nm outputs of the two libs that I think might be in question other than
wxc.so:

nm /usr/lib/wxPython/lib/libwx_gtkd-2.4.so | grep IsOwnGtkWindow
0021baa8 T _ZN10wxCheckBox14IsOwnGtkWindowEP10_GdkWindow
00222d50 T _ZN10wxComboBox14IsOwnGtkWindowEP10_GdkWindow
0024a71c T _ZN10wxNotebook14IsOwnGtkWindowEP10_GdkWindow
0024ec28 T _ZN10wxRadioBox14IsOwnGtkWindowEP10_GdkWindow
00259784 T _ZN10wxSpinCtrl14IsOwnGtkWindowEP10_GdkWindow
0025fd34 T _ZN10wxTextCtrl14IsOwnGtkWindowEP10_GdkWindow
00252d20 T _ZN11wxScrollBar14IsOwnGtkWindowEP10_GdkWindow
00258518 T _ZN12wxSpinButton14IsOwnGtkWindowEP10_GdkWindow
0024fa80 T _ZN13wxRadioButton14IsOwnGtkWindowEP10_GdkWindow
002616b8 T _ZN14wxToggleButton14IsOwnGtkWindowEP10_GdkWindow
0021afd8 T _ZN8wxButton14IsOwnGtkWindowEP10_GdkWindow
002573f8 T _ZN8wxSlider14IsOwnGtkWindowEP10_GdkWindow
0026fdd8 T _ZN8wxWindow14IsOwnGtkWindowEP10_GdkWindow
0023ea34 T _ZN9wxListBox14IsOwnGtkWindowEP10_GdkWindow

nm /usr/lib/wxPython/lib/libwx_gtkd_gl-2.4.so.0.0.0 | grep
IsOwnGtkWindow
         U _ZN8wxWindow14IsOwnGtkWindowEP10_GdkWindow

Thanks again for helping me try to get this sorted.

jpw

···

--
John P. Withers <withers@rampeffect.com>

Robin,

Please ignore this bit of my last post about this being different. I
just realized it was different because I was in a different lib. Doh!
Too much coffee.

the output from nm /usr/lib/python2.2/site-packages/wxPython/wxc.so
>grep IsOwnGtkWindow :

         U _ZN8wxButton14IsOwnGtkWindowEP12_GdkDrawable
         U _ZN8wxWindow14IsOwnGtkWindowEP12_GdkDrawable

Which is interesting because it is different than the last time I did
this. I suspect I forgot previously to rm the site-packages/wx dir on
that particular attempt.

jpw

John P. Withers wrote:

Robin,

Try using nm to list the symbols in /usr/lib/wxPython/lib/libwx_gtkd-2.4.so and grep for IsOwnGtkWindow and see what you get. I expect that it will be something like _ZN8wxWindow14IsOwnGtkWindowEP10_GdkWindow. If so then we need to look at differences between compile command-line options and such for wxGTK and wxPython and figure out why different symbol names are being generated for the same method...

Okay, in my nm output from /usr/lib/wxPython/liblibwx-gtkd-2.4 I get the
following line:

0026fdd8 T _ZN8wxWindow14IsOwnGtkWindowEP10_GdkWindow

At the risk of wasting your reading time, I am going to go ahead and
reinstall again, and document exactly what I am doing, even tho I am
just following the instructions in the README.1st.txt file. Maybe I am
missing something.

rm -rf /usr/lib/wxPython/
rm -rf /usr/lib/python2.2/site-packages/wxPython/
rm -rf /usr/lib/python2.2/site-packages/wx/
rm -rf <mypath>/wxPythonSrc-2.4.1.2/build

Ensured there were no libgtk or lib_gtk with wx in their names or
anything else close to a wx lib in /usr/lib.

Made sure no wx related entries in /etc/ld.so.conf

These next bits are straight from the instructions:

Made the wxPythonSrc-2.4.1.2/ build directory and went there.

exported WXPREF=/usr/lib/wxPython

../configure --with-gtk --prefix=$WXPREF --enable-rpath=$WXPREF/lib
--with-opengl --enable-geometry --enable-optimise --enable-debug_flag

Did make and make install

changed to the wxPythonSrc-2.4.1.2/wxPython directory and did

python setup.py WX_CONFIG=$WXPREF/bin/wx-config build install

And then I went to my download of the wxPython-2.4.1.2 demos, ran python
demo.py and got the same spew, the salient line of which was again:

ImportError: /usr/lib/python2.2/site-packages/wxPython/wxc.so: undefined
symbol: _ZN8wxWindow14IsOwnGtkWindowEP12_GdkDrawable

the output from nm /usr/lib/python2.2/site-packages/wxPython/wxc.so
>grep IsOwnGtkWindow :

         U _ZN8wxButton14IsOwnGtkWindowEP12_GdkDrawable
         U _ZN8wxWindow14IsOwnGtkWindowEP12_GdkDrawable

Which is interesting because it is different than the last time I did
this. I suspect I forgot previously to rm the site-packages/wx dir on
that particular attempt.

Just for completeness, since this is already an epic debug, here are the
nm outputs of the two libs that I think might be in question other than
wxc.so:

nm /usr/lib/wxPython/lib/libwx_gtkd-2.4.so | grep IsOwnGtkWindow
0021baa8 T _ZN10wxCheckBox14IsOwnGtkWindowEP10_GdkWindow
00222d50 T _ZN10wxComboBox14IsOwnGtkWindowEP10_GdkWindow
0024a71c T _ZN10wxNotebook14IsOwnGtkWindowEP10_GdkWindow
0024ec28 T _ZN10wxRadioBox14IsOwnGtkWindowEP10_GdkWindow
00259784 T _ZN10wxSpinCtrl14IsOwnGtkWindowEP10_GdkWindow
0025fd34 T _ZN10wxTextCtrl14IsOwnGtkWindowEP10_GdkWindow
00252d20 T _ZN11wxScrollBar14IsOwnGtkWindowEP10_GdkWindow
00258518 T _ZN12wxSpinButton14IsOwnGtkWindowEP10_GdkWindow
0024fa80 T _ZN13wxRadioButton14IsOwnGtkWindowEP10_GdkWindow
002616b8 T _ZN14wxToggleButton14IsOwnGtkWindowEP10_GdkWindow
0021afd8 T _ZN8wxButton14IsOwnGtkWindowEP10_GdkWindow
002573f8 T _ZN8wxSlider14IsOwnGtkWindowEP10_GdkWindow
0026fdd8 T _ZN8wxWindow14IsOwnGtkWindowEP10_GdkWindow
0023ea34 T _ZN9wxListBox14IsOwnGtkWindowEP10_GdkWindow

nm /usr/lib/wxPython/lib/libwx_gtkd_gl-2.4.so.0.0.0 | grep
IsOwnGtkWindow
         U _ZN8wxWindow14IsOwnGtkWindowEP10_GdkWindow

Thanks for all the info, but I need one more thing. Please copy and paste a typical compile command-line from the wxGTK build and one from the wxPython build too. My guess is that there is some flag that is different between the two that is causing a different set of gtk headers to be used, or something screwy like that.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

John P. Withers wrote:

Robin,

Thanks for all the info, but I need one more thing. Please copy and paste a typical compile command-line from the wxGTK build and one from the wxPython build too. My guess is that there is some flag that is different between the two that is causing a different set of gtk headers to be used, or something screwy like that.

../configure --with-gtk --prefix=$WXPREF --enable-rpath=$WXPREF/lib
--with-opengl --enable-geometry --enable-optimise --enable-debug_flag

python setup.py WX_CONFIG=$WXPREF/bin/wx-config build install

Sorry, I meant one of the compiler (gcc, or whatever) command lines that make executes for wxGTK and that setup.py runs for wxPython.

···

On Fri, 2003-08-22 at 20:29, Robin Dunn wrote:

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!