Sage-9.3: error in dochtml/manifolds / matrix_real_double_dense / MPFR / matplotlib

25 views
Skip to first unread message

Thierry Thomas

unread,
May 11, 2021, 6:14:56 AM5/11/21
to sage-devel
Hello,

Trying to build Sage-9.3 on FreeBSD, it fails in dochtml/manifolds, with
the following trace:

[manifolds] # extension module 'sage.matrix.matrix_real_double_dense' loaded from '/usr/ports/math/sage-9.3/work/build/usr/local/lib/python3.8/site-packages/sage/matrix/matrix_real_double_dense.cpython-38.so'
[manifolds] # trying /usr/ports/math/sage-9.3/work/build/usr/local/lib/python3.8/site-packages/sage/matrix/matrix_double_dense.cpython-38.so
[manifolds] # extension module 'sage.matrix.matrix_double_dense' loaded from '/usr/ports/math/sage-9.3/work/build/usr/local/lib/python3.8/site-packages/sage/matrix/matrix_double_dense.cpython-38.so'
[manifolds] # extension module 'sage.matrix.matrix_double_dense' executed from '/usr/ports/math/sage-9.3/work/build/usr/local/lib/python3.8/site-packages/sage/matrix/matrix_double_dense.cpython-38.so'
[manifolds] import 'sage.matrix.matrix_double_dense' # <_frozen_importlib_external.ExtensionFileLoader object at 0xa14c32790>
[manifolds] # extension module 'sage.matrix.matrix_real_double_dense' executed from '/usr/ports/math/sage-9.3/work/build/usr/local/lib/python3.8/site-packages/sage/matrix/matrix_real_double_dense.cpython-38.so'
[manifolds] import 'sage.matrix.matrix_real_double_dense' # <_frozen_importlib_external.ExtensionFileLoader object at 0xa155e0100>
get_str.c:157: MPFR assertion failed: size_s1 >= m
[manifolds] /usr/ports/math/sage-9.3/work/build/usr/local/lib/python3.8/site-packages/sage/manifolds/chart.py:docstring of sage.manifolds.chart.RealChart.plot:104: WARNING: Exception occurred in plotting chart-1
[manifolds] from /usr/ports/math/sage-9.3/work/sage-9.3/src/doc/en/reference/manifolds/sage/manifolds/chart.rst:
[manifolds] Traceback (most recent call last):
[manifolds] File "/usr/local/lib/python3.8/site-packages/matplotlib/sphinxext/plot_directive.py", line 483, in run_code
[manifolds] exec(code, ns)
[manifolds] File "<string>", line 4, in <module>
[manifolds] File "<string>", line 9, in sphinx_plot
[manifolds] NameError: name 'matplotlib' is not defined
[manifolds] /usr/ports/math/sage-9.3/work/build/usr/local/lib/python3.8/site-packages/sage/manifolds/chart.py:docstring of sage.manifolds.chart.RealChart.plot:121: WARNING: Exception occurred in plotting chart-2
[manifolds] from /usr/ports/math/sage-9.3/work/sage-9.3/src/doc/en/reference/manifolds/sage/manifolds/chart.rst:
[manifolds] Traceback (most recent call last):
[manifolds] File "/usr/local/lib/python3.8/site-packages/matplotlib/sphinxext/plot_directive.py", line 483, in run_code
[manifolds] exec(code, ns)
[manifolds] File "<string>", line 7, in <module>
[manifolds] File "<string>", line 9, in sphinx_plot
[manifolds] NameError: name 'matplotlib' is not defined

Sage 9.2 builds fine with the same external dependencies (i.e. mpfr
4.1.0, Python 3.8.9, matplotlib 3.4.1 and Sphinx 3.5.2), and I cannot
find what could cause this error. Any idea?
--
Th. Thomas.

Dima Pasechnik

unread,
May 11, 2021, 6:46:04 AM5/11/21
to sage-devel
hmm, is
import matplotlib
not missing somewhere?

Perhaps

import matplotlib

fails if you try it at sage prompt?
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/YJpZG7TmBzBJy7cf%40graf.pompo.net.
Reply all
Reply to author
Forward
0 new messages