GNOME Bugzilla – Bug 792348
Documentation fails to build in 1.2 when using python 3
Last modified: 2018-01-09 01:14:58 UTC
Using --enable-gtk-doc I end up with this error if I use python 3: [ 53s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/nautilus-python-1.2/src' [ 53s] Making all in examples [ 53s] make[2]: Entering directory '/home/abuild/rpmbuild/BUILD/nautilus-python-1.2/examples' [ 53s] make[2]: Nothing to be done for 'all'. [ 53s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/nautilus-python-1.2/examples' [ 53s] Making all in docs [ 53s] make[2]: Entering directory '/home/abuild/rpmbuild/BUILD/nautilus-python-1.2/docs' [ 53s] python3 -c 'import datetime; print datetime.date.today()' > reference/builddate.xml [ 53s] File "<string>", line 1 [ 53s] import datetime; print datetime.date.today() [ 53s] ^ [ 53s] SyntaxError: invalid syntax [ 53s] make[2]: *** [Makefile:617: reference/builddate.xml] Error 1 [ 53s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/nautilus-python-1.2/docs' [ 53s] make[1]: *** [Makefile:490: all-recursive] Error 1 [ 53s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/nautilus-python-1.2' [ 53s] make: *** [Makefile:397: all] Error 2 [ 53s] error: Bad exit status from /var/tmp/rpm-tmp.oNgyhA (%build) with python 2 all works just fine.
Thanks for the report, I've fixed this on master. If you need the fix, you can either pull or change that import line in Makefile.am to: import datetime; print(datetime.date.today()) I'll push out a new version shortly.
Here's the new release: https://download.gnome.org/sources/nautilus-python/1.2/
How wonderful Adam! Thank you for the work.