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 792348 - Documentation fails to build in 1.2 when using python 3
Documentation fails to build in 1.2 when using python 3
Status: RESOLVED FIXED
Product: nautilus-python
Classification: Other
Component: general
1.2
Other Linux
: Normal normal
: v1.2.1
Assigned To: Adam Plumb
Adam Plumb
Depends on:
Blocks:
 
 
Reported: 2018-01-09 00:23 UTC by Luciano Santos
Modified: 2018-01-09 01:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Luciano Santos 2018-01-09 00:23:56 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.
Comment 1 Adam Plumb 2018-01-09 00:39:59 UTC
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.
Comment 2 Adam Plumb 2018-01-09 00:47:18 UTC
Here's the new release: https://download.gnome.org/sources/nautilus-python/1.2/
Comment 3 Luciano Santos 2018-01-09 01:14:58 UTC
How wonderful Adam! Thank you for the work.