On my Fedora 10 box, with Cairo 1.8.0 installed, when I start python, as follows: python -c 'import gtk.glade' I get: ImportError: /usr/lib/libcairo.so.2: symbol png_set_expand_gray_1_2_4_to_8, version PNG12_0 not defined in file libpng12.so.0 with link time reference I've seen a couple of references to this problem on the Web by Googling, but no real resolution. My Cairo and PNG libraries are all the latest in the Fedora repositories.
It may seem a bit harsh, but really this is an issue with your installation of Python - it seems the libraries are incompatible. In particular I would hazard a guess that Python is dragging in a much older or trimmed down version of libpng. An examination of "/proc/$pid/maps" (or using pmap) will tell you precisely which libraries are mapped into the process.
In fact, python was trying to load libraries associated with a Mono Project installation, not the libraries in /usr/lib/.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.