For the record: Fixed with 10.9.beta8: ┌────────────────────────────────────────────────────────────────────┐ │ SageMath version 10.9.beta8, Release Date: 2026-03-22 │ │ Using Python 3.12.5. Type "help()" for help. │ └────────────────────────────────────────────────────────────────────┘ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Warning: this is a prerelease version, and it may be unstable. ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ sage: pip install Mathics3 Collecting Mathics3 Downloading mathics3-9.0.0-py3-none-any.whl.metadata (4.6 kB) ... Installing collected packages: stopit, typing-extensions, Pympler, palettable, click, Mathics-Scanner, flexparser, flexcache, pint, Mathics3 Successfully installed Mathics-Scanner-2.0.0 Mathics3-9.0.0 Pympler-1.1 click-8.3.1 flexcache-0.3 flexparser-0.4 palettable-3.3.3 pint-0.25.3 stopit-1.1.2 typing-extensions-4.15.0
[notice] A new release of pip is available: 24.2 -> 26.0.1 [notice] To update, run: pip install --upgrade pip Note: you may need to restart the kernel to use updated packages. sage: mobj = mathics(x^2 - 1); mobj /home/sage/sage/local/var/lib/sage/venv-python3.12.5/lib/python3.12/site-packages/stopit/__init__.py:10: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources -1 + x ^ 2 sage: Sebastian [email protected] schrieb am Dienstag, 17. März 2026 um 18:46:54 UTC+1: > I can confirm Marc's observation. On the other hand, I can reproduce the > bug even with Mathics3 7.0.0 and Sage 10.5.beta3 (from our Docker Hub > repository). This constellation is interesting since the last time I > successfully tested the Mathics3 interface was with that release (for pull > request 37395 <https://github.com/sagemath/sage/pull/37395>, which was > published in 10.5.beta3 > <https://github.com/sagemath/sage/releases/tag/10.5.beta3>). > > Sebastian > > [email protected] schrieb am Montag, 16. März 2026 um 19:45:06 UTC+1: > >> For whatever it is worth, I tested on ubuntu 24.04 with the pre-reelase >> appimage for Sage 10.9, based on 10.9.beta7 with python 3.14. >> After running %pip install mathics3 the commands: >> >> sage: from sage.interfaces.mathics import mathics >> sage: mobj = mathics(x^2 - 1); mobj >> >> did not produce any tracebacks. They did produce warnings that there is >> no module named pkg_resources, which apparently caused some components of >> mathics to fail to load. Since pkg_resources is not included in Python >> 3.14 it would seem that mathics doesn't completely support Python 3.14 >> (yet?). >> >> - Marc >> On Sunday, March 15, 2026 at 3:49:20 PM UTC-5 [email protected] >> wrote: >> >>> thanks i was about to start working on it and reporting it :) >>> >>> On Sunday, March 15, 2026 at 9:16:52 PM UTC+2 Michael Orlitzky wrote: >>> >>>> On 2026-03-15 11:58:52, Rashad alsharpini2 wrote: >>>> > i believe The issue is that Sage uses its own mpmath backend >>>> > (sage.libs.mpmath.ext_main) which replaces the standard >>>> > mpmath.ctx_mp_python module, but mathics3 was trying to import >>>> mpf/mpc from >>>> > that module. >>>> >>>> This should change in the next beta: >>>> >>>> https://github.com/sagemath/sage/pull/41728 >>>> >>> -- 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/sage-devel/523abffc-9695-4cd3-bd01-a2e1034da7cdn%40googlegroups.com.
