[issue2502] on-demand import fails with gobject._gobject
Alan Franzoni
bugs at mercurial.selenic.com
Wed Nov 17 10:02:13 UTC 2010
New submission from Alan Franzoni <programming at franzoni.eu>:
How to trigger this error:
#!/usr/bin/python
from mercurial import demandimport
demandimport.enable()
from gobject._gobject import *
#from gnomekeyring import find_network_password_sync
Output:
Traceback (most recent call last):
File "../example_gobject_crash.py", line 4, in <module>
from gobject._gobject import *
File "/home/alan/temp/hg-bleedingedge/mercurial/demandimport.py",
line 91, in _demandimport
return _origimport(name, globals, locals, fromlist)
File "/usr/lib/pymodules/python2.6/gtk-2.0/gobject/__init__.py",
line 47, in <module>
from gobject.constants import *
File "/home/alan/temp/hg-bleedingedge/mercurial/demandimport.py",
line 91, in _demandimport
return _origimport(name, globals, locals, fromlist)
File "/usr/lib/pymodules/python2.6/gtk-2.0/gobject/constants.py",
line 25, in <module>
_gobject = sys.modules['gobject._gobject']
KeyError: 'gobject._gobject'
Since we're trying to use gnomekeyring in the keyring extension to allow an
easy and safe way to store password, this is an issue.
----------
messages: 14428
nosy: alanfranz
priority: bug
status: unread
title: on-demand import fails with gobject._gobject
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2502>
____________________________________________________
More information about the Mercurial-devel
mailing list