Sage build error (sagenb)

39 views
Skip to first unread message

Vincent Klein

unread,
Jul 26, 2019, 10:52:05 AM7/26/19
to sage-devel
8.9.beta3
On unbuntu 16.04 after a "make distclean && ./configure --with-python=3" i get the following error :

[sagenb-1.1.2]     byte-compiling /home/vklein/odk/sage/local/var/tmp/sage/build/sagenb-1.1.2/inst/home/vklein/odk/sage/local/lib/python3.7/site-packages/sagenb/notebook/wiki2html.py to wiki2html.cpython-37.pyc
[sagenb-1.1.2]       File "/home/vklein/odk/sage/local/lib/python3.7/site-packages/sagenb/notebook/wiki2html.py", line 62
[sagenb-1.1.2]         'url_guard': ur'(^|(?<!\w))',
[sagenb-1.1.2]                                    ^
[sagenb-1.1.2]     SyntaxError: invalid syntax
[sagenb-1.1.2] 
...
Successfully installed sagenb-1.1.2
Cleaning up...
Removed build tracker '/tmp/pip-req-tracker-s1fel8oz'
make[4]: Entering directory '/home/vklein/odk/sage/local/var/tmp/sage/build/sagenb-1.1.2/src/doc'
Running Sphinx v1.8.5
making output directory...
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 19 source files that are out of date
updating environment: 19 added, 0 changed, 0 removed
reading sources... [  5%] index
reading sources... [ 10%] misc/introspect
reading sources... [ 15%] misc/misc

Exception occurred:
  File "sage/misc/lazy_import.pyx", line 218, in sage.misc.lazy_import.LazyImport._get_object (build/cythonized/sage/misc/lazy_import.c:2502)
    raise RuntimeError(f"resolving lazy import {self._name} during startup")
RuntimeError: resolving lazy import dumps during startup
The full traceback has been saved in /tmp/sphinx-err-f8a0uhzu.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
Makefile:20: recipe for target 'html' failed
make[4]: *** [html] Error 2
make[4]: Leaving directory '/home/vklein/odk/sage/local/var/tmp/sage/build/sagenb-1.1.2/src/doc'
********************************************************************************
Error building the documentation
********************************************************************************
...

Full sagenb.log in attachment.

Does somebody have an idea to solve this ?

Vincent K.

sagenb-1.1.2.log

Vincent Delecroix

unread,
Jul 26, 2019, 10:59:32 AM7/26/19
to sage-...@googlegroups.com
This is indeed Python3 invalid. I would replace the string by

u'(^|(?<!\\w))'

That is Python2 and Python3 valid.

Vincent Klein

unread,
Jul 26, 2019, 11:47:08 AM7/26/19
to sage-devel
I have tested your fix with python3 and it works. Thanks.

Vincent Klein

unread,
Jul 26, 2019, 11:55:22 AM7/26/19
to sage-devel
Reply all
Reply to author
Forward
0 new messages