logo       

Re: PyUnicodeUCS2_ I'm stumped: msg#00158

gnome.gtk+.python

Subject: Re: PyUnicodeUCS2_ I'm stumped

On Sat, 26 Feb 2005 10:02:35 -0500 (EST)
"Tom Cooper" <tcooper@xxxxxxxxxxxxx> wrote:

> I noticed after an upgrade that my RedHat config utilities would not run.
> I've futzed with this quite a bit, and I've narrowed the problem down, but
> I'm really unsure as to how to proceed.
>
> Specifically, the problem is this:
> [root@hostname /]# python
> Python 2.2.3 (#1, Mar 8 2004, 22:56:40)
> [GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-20)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import gtk
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File
> "/usr/src/build/147273-i386/install/usr/lib/python2.2/site-packages/gtk/__init__.py",
> line 19, in ?
> ImportError: /usr/lib/python2.2/site-packages/gtk/_gtkmodule.so: undefined
> symbol: PyUnicodeUCS2_FromUnicode
> >>>

python can be compiled to use either 16-bit (UCS-2) or 32-bit (UCS-4) for
internal unicode representation.
Extension modules are incompatible between those two options. UCS-2 was used in
the past by most
distros, but now most use UCS-4, which is what GvR suggests as well.
Never replace the python interpreter on a redhat/fedora system on your own.
When you upgrade python, the savest thing is to upgrade all python extension
modules on your system
(pygtk, py-kudzu, rhpl, pyx86config, pyparted) and the system-config apps at
the same time.
Or leave the installed python alone and install the new version alongside,
which is really the best advice.
_______________________________________________
pygtk mailing list pygtk@xxxxxxxxxx
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise