8.9: doc build error when _JAVA_OPTIONS is set

Skip to first unread message

Harald Schilly

Oct 1, 2019, 1:55:38 PM10/1/19
to sage-...@googlegroups.com
Hi, I'm trying to build the documentation for doc.sagemath.org on CoCalc.

It happens that we set some java options, and they are spit out by java when you start it.

Building dochtml/manifolds tries to parse the java version somehow, but that's not going to work. I have to admit, I haven't checked for a ticket … I bet this is pretty unusual. This did work fine for 8.8. For now, I'm just unsetting this env variable.

The relevant aspect is in the very last line: there is a linebreak and then "11". Python tries to convert everything to an int 11, but it should only pick the last line.

-- Harald


[dochtml] [manifolds] /home/user/sage-git/local/lib/python2.7/site-packages/sage/manifolds/chart.py:docstring of sage.manifolds.chart.RealChart.plot:372: WARNING: Exception occurred in plotting chart-6
[dochtml] [manifolds]  from /home/user/sage-git/src/doc/en/reference/manifolds/sage/manifolds/chart.rst:
[dochtml] [manifolds] Traceback (most recent call last):
[dochtml] [manifolds]   File "/home/user/sage-git/local/lib/python2.7/site-packages/matplotlib/sphinxext/plot_directive.py", line 524, in run_code
[dochtml] [manifolds]     six.exec_(code, ns)
[dochtml] [manifolds]   File "/home/user/sage-git/local/lib/python2.7/site-packages/six.py", line 709, in exec_
[dochtml] [manifolds]     exec("""exec _code_ in _globs_, _locs_""")
[dochtml] [manifolds]   File "<string>", line 1, in <module>
[dochtml] [manifolds]   File "<string>", line 17, in <module>
[dochtml] [manifolds]   File "<string>", line 41, in sphinx_plot
[dochtml] [manifolds]   File "sage/plot/plot3d/base.pyx", line 1635, in sage.plot.plot3d.base.Graphics3d.save (build/cythonized/sage/plot/plot3d/base.c:21488)
[dochtml] [manifolds]     self.save_image(filename, **kwds)
[dochtml] [manifolds]   File "sage/plot/plot3d/base.pyx", line 1564, in sage.plot.plot3d.base.Graphics3d.save_image (build/cythonized/sage/plot/plot3d/base.c:21046)
[dochtml] [manifolds]     self._save_image_png(filename, **kwds)
[dochtml] [manifolds]   File "sage/plot/plot3d/base.pyx", line 1526, in sage.plot.plot3d.base.Graphics3d._save_image_png (build/cythonized/sage/plot/plot3d/base.c:20683)
[dochtml] [manifolds]     scene = self._rich_repr_jmol(**opts)
[dochtml] [manifolds]   File "sage/plot/plot3d/base.pyx", line 261, in sage.plot.plot3d.base.Graphics3d._rich_repr_jmol (build/cythonized/sage/plot/plot3d/base.c:7211)
[dochtml] [manifolds]     if not jdata.is_jvm_available():
[dochtml] [manifolds]   File "/home/user/sage-git/local/lib/python2.7/site-packages/sage/interfaces/jmoldata.py", line 70, in is_jvm_available
[dochtml] [manifolds]     java_version_number = int(re.sub(r'.*version "(0\.|1\.)?(\d*)[\s\S]*', r'\2', version))
[dochtml] [manifolds]     java_version_number = int(re.sub(r'.*version "(0\.|1\.)?(\d*)[\s\S]*', r'\2', version))
[dochtml] [manifolds] ValueError: invalid literal for int() with base 10: 'Picked up _JAVA_OPTIONS: -Djava.io.tmpdir=/home/user/tmp/ -Xms64m\n11'

Reply all
Reply to author
0 new messages