GNOME Bugzilla – Bug 778947
Build failure with python2
Last modified: 2021-05-25 17:46:14 UTC
Caribou fails to build in Continuous with this error: Generating and caching the translation database Merging translations into caribou-autostart.desktop. Traceback (most recent call last):
+ Trace 237160
maker.create_schemas(args.output)
self._pretty_xml(fp, schemafile)
fp.write('%s<%s%s>\n' % (' '*indent*2, e.tagName, self._attribs(e)))
Makefile:847: recipe for target 'org.gnome.caribou.gschema.xml.in' failed make[2]: *** [org.gnome.caribou.gschema.xml.in] Error 1 make[2]: *** Waiting for unfinished jobs.... Traceback (most recent call last):
Makefile:852: recipe for target 'org.gnome.antler.gschema.xml.in' failed make[2]: *** [org.gnome.antler.gschema.xml.in] Error 1 After commit: https://git.gnome.org/browse/caribou/commit/?id=e5375dc19f2ca404e1c70081ac6eea4c5119460b
This was caused by: https://git.gnome.org/browse/caribou/commit/?id=e5375dc19f2ca404e1c70081ac6eea4c5119460b Sorry, but I have no idea how to make it work with both python2 and python3, or if we can eventually drop python2 compatibility. Parag, perhaps you might know?
The build failure went away on its own, which was weird. As for supporting both Python 2 and 3, I'd start with a better Python selection check in configure.ac that defaults to Python 3, and then fix all the compatibility issues that crop up.
Created attachment 346253 [details] [review] Update the Python interpreter selection We should use a `--with-python=PATH` configure argument instead of AM_PATH_PYTHON with an ancient version that is not even supported any more. This allows builders to select the appropriate version of Python following a well-known approach.
Created attachment 346254 [details] [review] Default to Python 3 We should try and use Python 3, and only fall back to Python 2 if necessary.
Review of attachment 346253 [details] [review]: Thanks.
Review of attachment 346254 [details] [review]: Thanks.
I'm also seeing this in case you need more help debugging it.
Yes, it would be great if anyone can help me out here.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new enhancement request ticket at https://gitlab.gnome.org/GNOME/caribou/-/issues/ Thank you for your understanding and your help.