GNOME Bugzilla – Bug 678973
build failure: AttributeError: 'Variant' object has no attribute 'print'
Last modified: 2012-07-04 10:22:41 UTC
I am building caribou git master via JHBuild on Fedora 17. The build fails with: Making all in antler make[2]: Entering directory `/home/oxyde/gnome/build/caribou/data/antler' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/oxyde/gnome/build/caribou/data/antler' make[2]: Entering directory `/home/oxyde/gnome/build/caribou/data' ../tools/make_schema.py caribou.settings.CaribouSettings make[2]: Leaving directory `/home/oxyde/gnome/build/caribou/data' make[1]: Leaving directory `/home/oxyde/gnome/build/caribou/data' Traceback (most recent call last):
+ Trace 230443
maker.create_schemas()
self._create_schema(self.settings, doc, schema)
self._create_schema(s, doc, schemalist)
getattr(setting.gvariant, "print")(False)),
make[2]: *** [org.gnome.caribou.gschema.xml.in] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1
I'm experiencing the same build issue, but running the build for GNOME 3.5.3 release (i.e. caribou from 0.4.2 package). The "plain" build with jhbuild, instead, goes smooth and clean. Maybe something related to python/pygi/gobject-introspection? Here is my build failure log make[2]: ingresso nella directory "/home/release/releases/gnome-apps-3.5.3/caribou-0.4.2/data" ../tools/make_schema.py caribou.settings.CaribouSettings ../tools/make_schema.py caribou.antler.AntlerSettings Traceback (most recent call last):
+ Trace 230448
Traceback (most recent call last): File "../tools/make_schema.py", line 81, in <module> maker.create_schemas() File "../tools/make_schema.py", line 21, in create_schemas self._create_schema(self.settings, doc, schema) File "../tools/make_schema.py", line 66, in _create_schema self._create_schema(s, doc, schemalist) File "../tools/make_schema.py", line 66, in _create_schema self._create_schema(s, doc, schemalist) File "../tools/make_schema.py", line 66, in _create_schema self._create_schema(s, doc, schemalist) File "../tools/make_schema.py", line 61, in _create_schema getattr(setting.gvariant, "print")(False)), AttributeError: 'Variant' object has no attribute 'print' make[2]: *** [org.gnome.antler.gschema.xml.in] Errore 1 make[2]: *** Attesa per i processi non terminati.... make[2]: *** [org.gnome.caribou.gschema.xml.in] Errore 1 make[2]: uscita dalla directory "/home/release/releases/gnome-apps-3.5.3/caribou-0.4.2/data" make[1]: *** [all-recursive] Errore 1
FWIW, Note to mention that I think that it is an old bug. Now and then I had problems compiling caribou using jhbuild. But I'm able to compile it manually: ./autogen.sh --prefix=/opt/gnome3/ make And I have just tested it and works. I didn't create any bug before because as I was the only one with issues, I thought that was a problem with my environment.
Thank you Alejandro. I discovered unset JHBuild's PYTHONPATH and caribou builds. Needs futher investigation.
Fixed now. Fixed somewhere in the pygi/gobject-introspection stack.