GNOME Bugzilla – Bug 607077
pyatspi2: magic to detect whether to use corba version or not can be broken
Last modified: 2019-03-27 20:11:32 UTC
When trying to build accerciser, I get this:
+ Trace 220095
m = __import__(name)
del gconfClient
So it looks like the patch from bug #606251 is broken in some cases. And indeed, the "del gconfClient" will fail if "import gconf" fails.
Created attachment 151476 [details] [review] This should fix it
Comment on attachment 151476 [details] [review] This should fix it >+ gconf = None >+ gconfClient = None These add gconf and gconfClient to the namespace, so... >- del gconfClient >- del gconf >+ if gconfClient: >+ del gconfClient >+ if gconf: >+ del gconf We just need the original del's here because they are already in the namespace.
So, I committed a simpler form of the patch that just sets gconf and gconfClient to None (i.e., the first part of the original patch). Seems to work well for me. I also committed a similar fix to the at-spi/pyatspi/__init__.py.in file for CORBA.
Comment on attachment 151476 [details] [review] This should fix it Committed just the portion that defines gconf and gconfClient. Sorry for the problems and thanks for pointing this out.