Summary: | math/sage: to be upgraded | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Danilo G. Baio <dbaio> |
Component: | Individual Port(s) | Assignee: | Thierry Thomas <thierry> |
Status: | Open --- | ||
Severity: | Affects Many People | CC: | tech-lists |
Priority: | --- | Flags: | thierry:
maintainer-feedback+
|
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any | ||
See Also: |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257116 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260809 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263533 |
||
Bug Depends on: | 257460, 264679 | ||
Bug Blocks: |
Description
Danilo G. Baio
2021-07-25 12:39:25 UTC
Thanks for the report. Indeed, sage-math-9.2 (the version of the port) requires sphinx 3.1.2 (it works with 3.5.2). I have not been able to upgrade math/sage to 9.3 for other reasons, but it would also require sphinx 3.x. Sage-9.4 (to be released soon, ATM sage-9.4.beta6), is written for Sphinx-4.0.1: I'll try it with your patch available in PR 257116. (In reply to Thierry Thomas from comment #1) Hi Thierry. Just to check, is there a way to disable the documentation build? If yes, is this reasonable until Sage is updated to 9.4? Thanks! (In reply to Danilo G. Baio from comment #2) Hi Danilo: sorry for the late answer. I have been trying to fix or upgrade math/sage with various patches, but without success ATM (See PR 260809). I'm reluctant to disable the documentation build to "fix" the port, because Sage is used to build its documentation: if it cannot, that means that the port builds but is buggy. But one thing is sure: the encountered problem does not depend on the sphinx version: do not retain this PR for math/sage, and do not hesitate to commit it when it's ready! (In reply to Thierry Thomas from comment #3) Oh, good to know it's not related to the Sphinx update. Thanks for the feedback. Trying to upgrade Sage to 9.7 fails because it requires a newer math/py-matplotlib: [sagemath_doc_html-none] [dynamics ] Traceback (most recent call last): [sagemath_doc_html-none] [dynamics ] File "/usr/local/lib/python3.9/site-packages/matplotlib/sphinxext/plot_directive.py", line 484, in run_code [sagemath_doc_html-none] [dynamics ] exec(code, ns) [sagemath_doc_html-none] [dynamics ] File "<string>", line 4, in <module> [sagemath_doc_html-none] [dynamics ] File "<string>", line 32, in sphinx_plot [sagemath_doc_html-none] [dynamics ] File "/usr/ports/math/sage-9.7/work/sage-9.7/src/sage/plot/graphics.py", line 2767, in matplotlib [sagemath_doc_html-none] [dynamics ] g._render_on_subplot(subplot) [sagemath_doc_html-none] [dynamics ] File "/usr/ports/math/sage-9.7/work/sage-9.7/src/sage/plot/matrix_plot.py", line 175, in _render_on_subplot [sagemath_doc_html-none] [dynamics ] cmap = get_cmap(options.pop('cmap',None)) [sagemath_doc_html-none] [dynamics ] File "/usr/ports/math/sage-9.7/work/sage-9.7/src/sage/plot/colors.py", line 1379, in get_cmap [sagemath_doc_html-none] [dynamics ] from matplotlib import colormaps [sagemath_doc_html-none] [dynamics ] ImportError: cannot import name 'colormaps' from 'matplotlib' (/usr/local/lib/python3.9/site-packages/matplotlib/__init__.py) colormaps is part of matplotlib 3.5.2. Still trying to upgrade Sage to the latest (10.0 ATM). No more problem with matplotlib, bur I am fighting against Singular… |