[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

PyGTK not building for the correct unicode version on Python2.3



Hello,

I attempted to install pygtk via "apt-get install python2.3-gtk2".
However, when i type:

import pygtk
pygtk.require("2.0")
import gtk

It gives me:

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
File "/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py", line 33, in ? import gobject as _gobject
  File "/usr/lib/python2.3/ihooks.py", line 398, in import_module
    q, tail = self.find_head_package(parent, str(name))
  File "/usr/lib/python2.3/ihooks.py", line 439, in find_head_package
    q = self.import_it(head, qname, parent)
  File "/usr/lib/python2.3/ihooks.py", line 489, in import_it
    m = self.loader.load_module(fqname, stuff)
  File "/usr/lib/python2.3/ihooks.py", line 268, in load_module
    m = self.hooks.load_dynamic(name, filename, file)
  File "ltihooks.py", line 50, in load_dynamic
    return ihooks.Hooks.load_dynamic(self, name, filename, file)
  File "/usr/lib/python2.3/ihooks.py", line 172, in load_dynamic
    return imp.load_dynamic(name, filename, file)
ImportError: /usr/lib/python2.3/site-packages/gtk-2.0/gobject.so: undefined symbol: PyUnicodeUCS4_AsUnicode

I have gotten similer errors like this before on Debian - FREQUENTLY.

I re-installed Python with ucs2 unicode support, and that did not fix it.
I wouldn't expect that it would.

I have attempted to install pygtk from source, however, it does not create a "gtk" directory in gtk-2.0, as it should.

Is there any way to get arround this?
If not, why is the source build (gotten from "apt-get source python2.3-gtk2", though i also tryed googling for pygtk 2.6, and i found a tar.gz of 2.6.0, not creating a gtk directory when i build it like this?:

./configure --with-python=/usr/bin/python2.3 --prefix=/usr
make
make install

Btw, i am using Debian sarge (3.1).

Thanks,
Peter



Reply to: