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 694480 - build failure: ../tools/make_schema.py caribou.settings.CaribouSettings
build failure: ../tools/make_schema.py caribou.settings.CaribouSettings
Status: RESOLVED FIXED
Product: caribou
Classification: Applications
Component: default
0.4.x
Other Linux
: Normal critical
: ---
Assigned To: caribou-maint
caribou-maint
Depends on:
Blocks:
 
 
Reported: 2013-02-22 19:38 UTC by David Ronis
Modified: 2013-02-28 10:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix errors when building with python 3 (1.81 KB, patch)
2013-02-28 10:17 UTC, Daiki Ueno
committed Details | Review

Description David Ronis 2013-02-22 19:38:23 UTC
I'm trying my first installation of version 0.4.0.   I'm on a slackware box, but have all of gnome installed in a subtree of /opt.  I've got various python 2.x and 3.3.0 installed.   They all fail.   Here's the latest traceback (using python2.7):

 GEN    org.gnome.Caribou.Antler.service
../tools/make_schema.py caribou.settings.CaribouSettings
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[3]: *** [org.gnome.caribou.gschema.xml.in] Error 1

Using python3.3 I get:

../tools/make_schema.py caribou.settings.CaribouSettings
  File "../tools/make_schema.py", line 72
    print "usage: %s <schema id>" % sys.argv[0]
                                ^
SyntaxError: invalid syntax


I tried running autogen.sh (actually gnome-autogen.sh) as suggested in bug 678973, but that didn't help
Comment 1 Daiki Ueno 2013-02-22 21:27:12 UTC
For python 2.x, I guess you could either try newer caribou releases (>= 0.4.4) or pygobject-3 (>= 3.3.3).  See bug 683256.

For python 3, it seems some patches in bug 690962 still need to be merged.  I'll work on them soon.
Comment 2 Daiki Ueno 2013-02-28 10:17:56 UTC
Created attachment 237583 [details] [review]
Fix errors when building with python 3

--
Port some fixes from bug 690962.
Comment 3 Daiki Ueno 2013-02-28 10:20:38 UTC
Attachment 237583 [details] pushed as c19a148 - Fix errors when building with python 3