473,406 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Python GTK import error

hi

I installed Fedora Core 2 in my desktop and it has been running
flawlessly in the last few months until I upgraded some packages
(gtk/gtk-devel/python) to the latest version via apt-get. Now, when I
execute any system configuration gui program, i.e.
/usr/bin/system-config-*, it raises an error message as follows:

File "/usr/src/build/375621-i386/install/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py",
line 43, in ?
ImportError: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol:
atk_object_add_relationship

(the top line may vary, but the last line is the same for all of them)
and the script exits after the error.

I don't know if anybody met this before, and how can I fix it?
thank you very much!

Qianqian
Jul 18 '05 #1
6 2325
Hi !

The error is that the system ins't finding this lib:

/usr/lib/libgtk-x11-2.0.so.0

Try to see if your system has it.

See ya !

Em Ter 23 Nov 2004 22:08, Qianqian Fang escreveu:
hi

I installed Fedora Core 2 in my desktop and it has been running
flawlessly in the last few months until I upgraded some packages
(gtk/gtk-devel/python) to the latest version via apt-get. Now, when I
execute any system configuration gui program, i.e.
/usr/bin/system-config-*, it raises an error message as follows:

File
"/usr/src/build/375621-i386/install/usr/lib/python2.3/site-packages/gtk-2.0
/gtk/__init__.py", line 43, in ?
ImportError: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol:
atk_object_add_relationship

(the top line may vary, but the last line is the same for all of them)
and the script exits after the error.

I don't know if anybody met this before, and how can I fix it?
thank you very much!

Qianqian


--
Douglas Soares de Andrade - UnilesteMG
Linux User: #237615
dsa em unilestemg.br

Jul 18 '05 #2
no, the file is there, it actually links to another file:

/usr/lib/libgtk-x11-2.0.so.0.400.13

but both files are in the right locations.
anything else that is suspecious to the problem?

thanks
Douglas Soares de Andrade <ds*@unilestemg.br> wrote in message news:<ma**************************************@pyt hon.org>...
Hi !

The error is that the system ins't finding this lib:

/usr/lib/libgtk-x11-2.0.so.0

Try to see if your system has it.

See ya !

Jul 18 '05 #3
Try checking the permissions on the link and the library - if you
installed the module manually the permissions may not allow anyone but
the root user to import the module.

Andrew

On Sat, 2004-11-27 at 20:21 -0800, Qianqian Fang wrote:
no, the file is there, it actually links to another file:

/usr/lib/libgtk-x11-2.0.so.0.400.13

but both files are in the right locations.
anything else that is suspecious to the problem?

thanks
Douglas Soares de Andrade <ds*@unilestemg.br> wrote in message news:<ma**************************************@pyt hon.org>...
Hi !

The error is that the system ins't finding this lib:

/usr/lib/libgtk-x11-2.0.so.0

Try to see if your system has it.

See ya !

--
Andrew James <dr**@gremlinhosting.com>

Jul 18 '05 #4
sorry keep bugging you guys, but this is somehow a wield problem that
I am eager to solve.

I checked the permission and it looks fine to me:
lrwxrwxrwx 1 root root 26 Nov 28 04:06 /usr/lib/libgtk-x11-2.0.so.0
-> libgtk-x11-2.0.so.0.400.13

-rwxr-xr-x 1 root root 2862900 Oct 15 14:23
/usr/lib/libgtk-x11-2.0.so.0.400.13
I even run with root, the error message "ImportError:
/usr/lib/libgtk-x11-2.0.so.0: undefined symbol:
atk_object_add_relationship" still comes out.
I always try to avoid installing packages manually, rpm or apt-get is
my preferred way. However, this time, it beats my working principle
because this error message appeared after I upgraded packages using
"synaptic", an apt-get GUI. now, I don't even trust apt-get:(


Andrew James <dr**@gremlinhosting.com> wrote in message news:<ma**************************************@pyt hon.org>...
Try checking the permissions on the link and the library - if you
installed the module manually the permissions may not allow anyone but
the root user to import the module.

Andrew

Jul 18 '05 #5
On 2004-11-23, Qianqian Fang <Qi***********@Dartmouth.Edu> wrote:
ImportError: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol:


Try setting LD_LIBRARY_PATH:

export LD_LIBRARY_PATH=/usr/local/lib

or wherever the .so is. If this works, add that dir to

/etc/ld.so.conf

and run (as root)

ldconfig -v

Dave Cook
Jul 18 '05 #6
I found some of your posts from back in July. I am having the same problem and I was wondering if you ever got a solution.

Thanks.

sorry keep bugging you guys, but this is somehow a wield problem that
I am eager to solve.

I checked the permission and it looks fine to me:


lrwxrwxrwx 1 root root 26 Nov 28 04:06 /usr/lib/libgtk-x11-2.0.so.0
-> libgtk-x11-2.0.so.0.400.13

-rwxr-xr-x 1 root root 2862900 Oct 15 14:23
/usr/lib/libgtk-x11-2.0.so.0.400.13


I even run with root, the error message "ImportError:
/usr/lib/libgtk-x11-2.0.so.0: undefined symbol:
atk_object_add_relationship" still comes out.


I always try to avoid installing packages manually, rpm or apt-get is
my preferred way. However, this time, it beats my working principle
because this error message appeared after I upgraded packages using
"synaptic", an apt-get GUI. now, I don't even trust apt-get:(




Andrew James <drew@gremlinhosting.com> wrote in message news:<mailman.6847.1101632630.5135.python-list@python.org>...[color=blue]
> Try checking the permissions on the link and the library - if you
> installed the module manually the permissions may not allow anyone but
> the root user to import the module.
>
> Andrew[/color]
May 3 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jeremy C. Reed | last post by:
Configuring gramps (genealogy software) says: checking Python bindings for gtk... ok checking Python bindings for GNOME... ok checking Python bindings for gconf... Traceback (most recent call...
1
by: Jerald | last post by:
Running python 2.3.4 on valgrind (a tool like purify which checks the use of uninitialized memory, etc), gives a lot of errors. See below. jfj@cluster:~/> python -V Python 2.3.4...
3
by: jefishman | last post by:
I have a Python (2.3.x) interpreter running embedded in a C++ application on a host machine. I would like to run a specific package on that host machine (numpy). I have managed to compile...
1
by: Justin Johnson | last post by:
Hello, I'm trying to build Python 2.5.0 on AIX 5.3 using IBM's compiler (VisualAge C++ Professional / C for AIX Compiler, Version 6). I run configure and make, but makes fails with undefined...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 342 open (-38) / 3712 closed (+54) / 4054 total (+16) Bugs : 951 open (-14) / 6588 closed (+33) / 7539 total (+19) RFE : 257 open...
4
by: vedrandekovic | last post by:
Hi, I have already install Microsoft visual studio .NET 2003 and MinGw, when I try to build a extension: python my_extension_setup.py build ( or install ) , I get an error: LINK : fatal...
6
by: Pete Crite | last post by:
Hello, I've been trying to install Gnumeric via MacPorts recently, but I can't get past the installation of py25-numpy. It appears that python crashes consistently during installation. I'm...
2
by: Gabriel Rossetti | last post by:
Hello everyone, I'm trying to use python's freeze utility but I'm running into problems. I called it like this : python /usr/share/doc/python2.5/examples/Tools/freeze/freeze.py...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.