After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 678973 - build failure: AttributeError: 'Variant' object has no attribute 'print'
build failure: AttributeError: 'Variant' object has no attribute 'print'
Status: RESOLVED FIXED
Product: caribou
Classification: Applications
Component: default
git master
Other All
: Normal major
: ---
Assigned To: caribou-maint
caribou-maint
Depends on:
Blocks:
 
 
Reported: 2012-06-27 11:41 UTC by Craig Keogh
Modified: 2012-07-04 10:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Craig Keogh 2012-06-27 11:41:36 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):
  • 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 61 in _create_schema
    getattr(setting.gvariant, "print")(False)),
AttributeError: 'Variant' object has no attribute 'print'
make[2]: *** [org.gnome.caribou.gschema.xml.in] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Comment 1 Luca Ferretti 2012-06-28 01:00:07 UTC
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):
  • 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 61 in _create_schema
    getattr(setting.gvariant, "print")(False)),
AttributeError: 'Variant' object has no attribute 'print'
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
Comment 2 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-06-29 12:44:57 UTC
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.
Comment 3 Craig Keogh 2012-06-29 13:14:37 UTC
Thank you Alejandro. I discovered unset JHBuild's PYTHONPATH and caribou builds. Needs futher investigation.
Comment 4 Craig Keogh 2012-06-30 07:26:29 UTC
Fixed now. Fixed somewhere in the pygi/gobject-introspection stack.