python demo.py
Traceback (most recent call last):
File "demo.py", line 3, in ?
import Main
File "Main.py", line 15, in ?
from wxPython.wx import *
File "/usr/local/lib/python2.2/site-packages/wxPython/__init__.py", line 20, in ?
import wxc
ImportError: /usr/local/lib/python2.2/site-packages/wxPython/wxc.so: undefined symbol: __7wxMutex
python demo.py
Traceback (most recent call last):
File "demo.py", line 3, in ?
import Main
File "Main.py", line 15, in ?
from wxPython.wx import *
File "/usr/local/lib/python2.2/site-packages/wxPython/__init__.py", line
20, in ?
import wxc
ImportError: /usr/local/lib/python2.2/site-packages/wxPython/wxc.so:
undefined symbol: __7wxMutex
Which versions? Are you sure that the wxGTK shared library found at runtime
is the same one you built with? (Try running ldd on
/usr/local/lib/python2.2/site-packages/wxPython/wxc.so)
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!
Still getting:
ImportError: /usr/local/lib/python2.2/site-packages/wxPython/wxc.so:
undefined symbol: __7wxMutex
> ImportError: /usr/local/lib/python2.2/site-packages/wxPython/wxc.so:
undefined symbol: __7wxMutexWhich versions? Are you sure that the wxGTK shared library found at runtime
is the same one you built with? (Try running ldd on
/usr/local/lib/python2.2/site-packages/wxPython/wxc.so)--
Robin Dunn
so I did a rebuild and then ldd:
ldd /usr/local/lib/python2.2/site-packages/wxPython/wxc.so
libwx_gtk-2.3.so => /usr/local/lib/libwx_gtk-2.3.so (0x6f5a3000)
libc.so.6 => /lib/libc.so.6 (0x6f44d000)
libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x6f26a000)
libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x6f206000)
libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x6f1e3000)
libgthread-1.2.so.0 => /usr/lib/libgthread-1.2.so.0 (0x6f1c1000)
libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x6f16e000)
libpthread.so.0 => /lib/libpthread.so.0 (0x6f138000)
libdl.so.2 => /lib/libdl.so.2 (0x6f115000)
libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x6f0ed000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x6f0bb000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x6efa9000)
libpng.so.2 => /usr/lib/libpng.so.2 (0x6ef63000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x6ef1c000)
libtiff.so.3 => /usr/lib/libtiff.so.3 (0x6eeb0000)
libz.so.1 => /usr/lib/libz.so.1 (0x6ee80000)
libm.so.6 => /lib/libm.so.6 (0x6ede9000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x6ed72000)
/lib/ld.so.1 => /lib/ld.so.1 (0x08000000)
by the way,
What's the significance of the __7 in __7wxMutex?
Please don't say its some Brittish spy thing.... Oh right! Thats 007... never mind...
-Pat
···
On Thu, 20 Jun 2002 10:19:33 -0700 "Robin Dunn" <robin@alldunn.com> wrote:
> > ImportError: /usr/local/lib/python2.2/site-packages/wxPython/wxc.so:
> undefined symbol: __7wxMutex
>
> Which versions? Are you sure that the wxGTK shared library found at
runtime
> is the same one you built with? (Try running ldd on
> /usr/local/lib/python2.2/site-packages/wxPython/wxc.so)
>
so I did a rebuild and then ldd:ldd /usr/local/lib/python2.2/site-packages/wxPython/wxc.so
libwx_gtk-2.3.so => /usr/local/lib/libwx_gtk-2.3.so (0x6f5a3000)
..
Okay, now try
which wx-config
wx-config --cxxflags
by the way,
What's the significance of the __7 in __7wxMutex?
It's a C++ "mangled name"
echo __7wxMutex | c++filt
will output
wxMutex::wxMutex(void)
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!
> > > ImportError: /usr/local/lib/python2.2/site-packages/wxPython/wxc.so:
> > undefined symbol: __7wxMutex
> >
...
Okay, now try
which wx-config
wx-config --cxxflags
No go:
libwx_gtk-2.3.so => /usr/local/lib/libwx_gtk-2.3.so (0x6f5a3000)
libc.so.6 => /lib/libc.so.6 (0x6f44d000)
libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x6f26a000)
libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x6f206000)
libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x6f1e3000)
libgthread-1.2.so.0 => /usr/lib/libgthread-1.2.so.0 (0x6f1c1000)
libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x6f16e000)
libpthread.so.0 => /lib/libpthread.so.0 (0x6f138000)
libdl.so.2 => /lib/libdl.so.2 (0x6f115000)
libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x6f0ed000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x6f0bb000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x6efa9000)
libpng.so.2 => /usr/lib/libpng.so.2 (0x6ef63000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x6ef1c000)
libtiff.so.3 => /usr/lib/libtiff.so.3 (0x6eeb0000)
libz.so.1 => /usr/lib/libz.so.1 (0x6ee80000)
libm.so.6 => /lib/libm.so.6 (0x6ede9000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x6ed72000)
/lib/ld.so.1 => /lib/ld.so.1 (0x08000000)
/usr/bin/wx-config
-I/usr/lib/wx/include/gtk-2.3 -DGTK_NO_CHECK_CASTS -D__WXGTK__
[pac1@localhost wx]$ cd wxWindows/wxPython
[pac1@localhost wxPython]$ cd demo
[pac1@localhost demo]$ python demo.py
Traceback (most recent call last):
File "demo.py", line 3, in ?
import Main
File "Main.py", line 15, in ?
from wxPython.wx import *
File "/usr/local/lib/python2.2/site-packages/wxPython/__init__.py", line 20, in ?
import wxc
ImportError: /usr/local/lib/python2.2/site-packages/wxPython/wxc.so: undefined symbol: __7wxMutex
···
On Thu, 20 Jun 2002 18:10:16 -0700 "Robin Dunn" <robin@alldunn.com> wrote:
libwx_gtk-2.3.so => /usr/local/lib/libwx_gtk-2.3.so (0x6f5a3000)
/usr/bin/wx-config
-I/usr/lib/wx/include/gtk-2.3 -DGTK_NO_CHECK_CASTS -D__WXGTK__
Your build is getting headers from /usr/include and
/usr/lib/wx/include/gtk-2.3 but the library linked at runtime is in
/usr/local/lib when it probably should be /usr/lib. (Or the other way
around...)
So in other words you've got two separate installs of wxGTK on your system.
You probably should clean up both of them, then rebuild and install wxGTK
and then try rebuilding wxPython. If you installed wxGTK from RPM then it
is probably the one in /usr, abd you can get rid of it just by uninstalling
the RPM. Otherwise you'll need to remove these files:
$prefix/bin/wx*
$prefix/lib/libwx*
$prefix/lib/wx
$prefix/include/wx
$prefix/share/wx
for both prefixes of /usr and /usr/local.
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!
Tried that already. Got rid of everything wx under /usr and rebuilt wxGtk and wxPython
Same problem.
could it be any of these?
libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x6f26a000)
libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x6f206000)
libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x6f1e3000)
libgthread-1.2.so.0 => /usr/lib/libgthread-1.2.so.0 (0x6f1c1000)
libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x6f16e000)
···
"Robin Dunn" <robin@alldunn.com> wrote:
So in other words you've got two separate installs of wxGTK on your system.
You probably should clean up both of them, then rebuild and install wxGTK
ok this time I did a cvs update.
Now the splash screen comes up after
python demo.py but it segfaults - That's progress I guess.
-Pat
···
On Fri, 21 Jun 2002 21:08:06 +0000 Patrick Callahan <pac1@tiac.net> wrote:
"Robin Dunn" <robin@alldunn.com> wrote:
> So in other words you've got two separate installs of wxGTK on your system.
> You probably should clean up both of them, then rebuild and install wxGTKTried that already. Got rid of everything wx under /usr and rebuilt wxGtk and wxPython
Same problem.
could it be any of these?
libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x6f26a000)
libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x6f206000)
libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x6f1e3000)
libgthread-1.2.so.0 => /usr/lib/libgthread-1.2.so.0 (0x6f1c1000)
libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x6f16e000)_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users