English
Ask Your Question
0

python error

asked 2012-07-06 12:23:54 +0000

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 19:22:06 +0000

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

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Stats

Asked: 2012-07-06 12:23:54 +0000

Seen: 389 times

Last updated: Aug 12 '12