Closed jiffygist closed 2 days ago
I was able to build after applying this guy's patch https://github.com/sagemath/sage/issues/38242#issuecomment-2180437545
I have put it in /etc/portage/patches/sci-mathematics/sagemath-standard/numpy_fix.diff
--- a/sage/plot/complex_plot.pyx
+++ b/sage/plot/complex_plot.pyx
@@ -1290,7 +1290,7 @@ def rgb_to_hls(rgb):
l = (rgb_max + rgb_min)/2.0 # lightness
hls = np.zeros_like(rgb)
- delta = rgb.ptp(-1)
+ delta = np.ptp(rgb, -1)
s = np.zeros_like(delta)
ipos = delta > 0
There were some patch for numpy 2.0 compatibility, I thought they had made it into 10.4 - obviously not. I will include the full support patch. More interesting to me, you build the doc without issue? I had an issue with intersphinx and ipywdgets the last time I tried and I was waiting for feedback to work out if it was just a problem on my system.
The docs build fine here with numpy-1.26.4
.
sagemath-standard-10.4-r1 pushed and sage-doc-10.4 amended to include upstream numpy 2.0 support patch.
The docs build fine here with
numpy-1.26.4
.
I may have caught the tree in the slightly broken state when I tried to build 9999 on Saturday. Or there was an issue with ipywidget intersphinx file upstream. Builds fine now.
I now get a failure building sage-doc-9999
with numpy-2.0.0
installed:
[plotting ] AttributeError: `ptp` was removed from the ndarray class in NumPy 2.0. Use np.ptp(arr, ...) instead.
[plotting ] The inventory file is in ../../../build_doc/inventory/en/reference/plotting.
Error building the documentation.
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/lib/python3.12/site-packages/sage_docbuild/__main__.py", line 530, in <module>
sys.exit(main())
as in the first post. No additional patch was used.
It looks like sagemath-standard-9999
needs to be updated to allow for numpy-2.0.0
.
Now I get what you mean! Of course right now 9999 should be the latest rc of 10.4. But in the vbraun branch where things have started to move for the first beta of 10.5, numpy 2.0 support has been merged (at least tentatively). I guess, I'll get you out of that limbo on the master branch.
Pushed fix on the master branch for 9999 build. Hopefully this is enough to build.
OK this was about numpy 2.0.0. Closing.
I have dev-python/numpy version 2.0.0 installed.
Full build log