I use Mandrakelinux and the default Python package directory is
/usr/lib/python2.4/site-packages so when I installed the wxPython
binaries they
are installed to that location. The Python interpreter I work with uses the
package direcotry located at /usr/local/lib/python2.4/site-packages so I
simply
copied the wxPython and GTK packages along with the .pth and
wxversion.py files
from the first site-packages directory to the second. I am getting the
following
error though (note: I did the same thing with the gtk package but I'm
not sure
if that matters):
[ryan@resnet152-160 ~]$ python
Python 2.4.3 (#1, Mar 30 2006, 13:24:24)
[GCC 3.4.3 (Mandrakelinux 10.2 3.4.3-7mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File
"/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/__init__.py",
line 42, in ?
from wx._core import *
File
"/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line
4, in ?
import _core_
ImportError:
/usr/lib/wxPython-2.6.3.2-gtk2-unicode/lib/libwx_gtk2ud-2.6.so.0:undefined
symbol: gtk_file_chooser_set_do_overwrite_confirmation
Can anyone lend some insight into why I am getting this error.
Thanks,
I use Mandrakelinux and the default Python package directory is
/usr/lib/python2.4/site-packages so when I installed the wxPython
binaries they
are installed to that location. The Python interpreter I work with uses the
package direcotry located at /usr/local/lib/python2.4/site-packages so I
simply
copied the wxPython and GTK packages along with the .pth and
wxversion.py files
from the first site-packages directory to the second. I am getting the
following
error though (note: I did the same thing with the gtk package but I'm
not sure
if that matters):
Which one? The python pygtk package or the libgtk libraries?
[ryan@resnet152-160 ~]$ python
Python 2.4.3 (#1, Mar 30 2006, 13:24:24)
[GCC 3.4.3 (Mandrakelinux 10.2 3.4.3-7mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import wx
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File
"/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/__init__.py",
line 42, in ?
from wx._core import *
File
"/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line
4, in ?
import _core_
ImportError:
/usr/lib/wxPython-2.6.3.2-gtk2-unicode/lib/libwx_gtk2ud-2.6.so.0:undefined
symbol: gtk_file_chooser_set_do_overwrite_confirmation
Can anyone lend some insight into why I am getting this error.
Best guess is that either you have a different version of libgtk than what the wxPython modules were built with, or if you have multiple versions of libgtk installed that the dynamic linker is not able to find the right version. Try running this: