[Users] Redcarpet 2.0.3 upgrade breaks python2 gtk apps in RH7.3

Justin Hickey Justin.Hickey@nrc.gc.ca
Wed, 19 Nov 2003 15:39:43 -0400


Hello=20

I didn't find this posted to the list archives so I am posting it here
in the hopes that Ximian will be made aware of the problem. This post
describes the problem and work around to get things back to normal.

I recently upgraded red-carpet 2.0.2 to 2.0.3 on one of our Redhat 7.3
servers and then python2 applications using gtk failed to run, including
red-carpet itself. The error message from red-carpet was:

Error: Couldn't import gtk.

Also, redhat-config-users was another application affected and it's
error message was as follows:

Traceback (most recent call last):
  File "/usr/share/redhat-config-users/redhat-config-users.py", line 26,
in ?
    import mainWindow
  File "/usr/share/redhat-config-users/mainWindow.py", line 24, in ?
    import gtk
  File
"/usr/src/build/89041-i386/install/usr/lib/python2.2/site-packages/gtk/__in=
it__.py", line 19, in ?
ImportError: /usr/lib/libpangoxft-1.0.so.0: undefined symbol:
FT_Seek_Stream

The same ImportError message was generated when python2 was run and the
command "import gtk" was entered. Note that the problem did not occur in
python, only in python2.

After some digging and comparing to a similar system the cause of the
error was successfully traced. When red-carpet 2.0.3 is installed the
following packages are also required:

fontconfig 2.2.0-0.ximian.4.3		needed by Xft
freetype 2.1.4-0.ximian.4.5		needed by Xft
freetype-devel 2.1.4-0ximian.4.5	needed by freetype
Xft 2.2-0.ximian.4.5			needed by red-carpet

Comparing the installed packages and files for python2, pango, gtk, and
the above mentioned packages indicated that the only package that was
different was freetype. Note that Xft and fontconfig were not previously
installed.

The solution consisted of removing Xft and fontconfig, as well as
reverting back to red-carpet 2.0.2. At this point, the problem still
persisted, and it was determined that the freetype package was causing
the problem. After reverting back to freetype 2.0.9-2, the problem was
resolved.

So, something in freetype 2.1.4-0.ximian.4.5 is causing python2
applications that use gtk to break under Redhat 7.3. I hope this
information is helpful to someone.

Thank you for your time.

--=20
Sincerely,

Jazzman (a.k.a. Justin Hickey)  e-mail: Justin.Hickey@nrc.gc.ca
National Research Council Canada
Institute of Information Technology (IIT) -- e-Business
46 Dineen Drive
Fredericton, NB, Canada  E3B 9W4    Phone: (506) 444-0399

Justin Hickey  courriel: Justin.Hickey@cnrc.gc.ca
Conseil national de recherches Canada
Institut de technologie de l'information (ITI) - Affaires =E9lectroniques
46, promenade Dineen
Fredericton, NB, Canada  E3B 9W4    T=E9l: (506) 444-0399
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
People who think they know everything are very irritating to those
of us who do.  ---Anonymous
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D