Ask Your Question
0

python error

asked 2012-07-06 07:23:54 -0500

mjnovice gravatar image

i have gtk installed then y dis error?

>>> import gtk

** (process:21133): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** (process:21133): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** (process:21133): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/gi/__init__.py", line 23, in <module>
    from ._gi import _API, Repository
ImportError: cannot import name _API
gtk/__init__.py:40: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
  from gtk import _gtk
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/gi/__init__.py", line 23, in <module>
    from ._gi import _API, Repository
ImportError: cannot import name _API
Gtk-Message: Failed to load module "pk-gtk-module"
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-08-12 14:22:06 -0500

mjnovice gravatar image

problem solved finally what i did was i uninstalled FC 17 and then reintalled FC 16 ... it is error free now!! But still i dunno wat caused the error ??? Only plausibility is that i used FC 17 (unstable) first and then updated it to the latest stable version... Could be that this caused the error....

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-07-06 07:23:54 -0500

Seen: 399 times

Last updated: Aug 12 '12