On Thu, Apr 24, 2025 at 8:24 AM Topaze <[email protected]> wrote:

> OK, so I started from scratch. I've got lots of disk space and memory, so
> I don't know why make stumbled. And twice in the same place, hence my
> report. But this time I managed to compile without any problem (did make
> -j 1 (parameter “1”, no more) help?). So compilation went smoothly the
> third time.
>
> But now sage won't run, as you can see. And it's still something that
> involves numpy,.
>
As you see from my other reply, it's a mess with 10.6 in this respect.

You probably can fix this by running

./sage --pip install matplotlib


Or, if you did a git checkout of 10.6, you might try to merge the update
on
https://github.com/sagemath/sage/pull/39789
(by doing "git pull origin pull/39789/head)
and run "make build" again.


--------------------------------------------------------------------------------------------------------------------------
>
> /home/mainuser/software/sage-10.6/bin/sage-venv-config:4:
> DeprecationWarning: pkg_resources is deprecated as an API. See
> https://setuptools.pypa.io/en/latest/pkg_resources.html
>   __import__('pkg_resources').require('sagemath-standard==10.6')
> Traceback (most recent call last):
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 656, in _build_master
>     ws.require(__requires__)
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 1063, in require
>     needed = self.resolve(parse_requirements(requirements))
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 890, in resolve
>     dist = self._resolve_dist(
>            ^^^^^^^^^^^^^^^^^^^
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 936, in _resolve_dist
>     raise VersionConflict(dist, req).with_context(dependent_req)
> pkg_resources.ContextualVersionConflict: (numpy 2.2.3
> (/home/mainuser/software/sage-10.6/lib/python3.11/site-packages),
> Requirement.parse('numpy<2,>=1.21'), {'matplotlib'})
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "/home/mainuser/software/sage-10.6/bin/sage-venv-config", line 4,
> in <module>
>     __import__('pkg_resources').require('sagemath-standard==10.6')
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 3656, in <module>
>     @_call_aside
>      ^^^^^^^^^^^
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 3640, in _call_aside
>     f(*args, **kwargs)
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 3669, in _initialize_master_working_set
>     working_set = _declare_state('object', 'working_set',
> WorkingSet._build_master())
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 658, in _build_master
>     return cls._build_from_requirements(__requires__)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 671, in _build_from_requirements
>     dists = ws.resolve(reqs, Environment())
>             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 890, in resolve
>     dist = self._resolve_dist(
>            ^^^^^^^^^^^^^^^^^^^
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 936, in _resolve_dist
>     raise VersionConflict(dist, req).with_context(dependent_req)
> pkg_resources.ContextualVersionConflict: (numpy 2.2.3
> (/home/mainuser/software/sage-10.6/lib/python3.11/site-packages),
> Requirement.parse('numpy<2,>=1.21'), {'matplotlib'})
> /home/mainuser/software/sage-10.6/bin/sage-notebook:4: DeprecationWarning:
> pkg_resources is deprecated as an API. See
> https://setuptools.pypa.io/en/latest/pkg_resources.html
>   __import__('pkg_resources').require('sagemath-standard==10.6')
> Traceback (most recent call last):
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 656, in _build_master
>     ws.require(__requires__)
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 1063, in require
>     needed = self.resolve(parse_requirements(requirements))
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 890, in resolve
>     dist = self._resolve_dist(
>            ^^^^^^^^^^^^^^^^^^^
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 936, in _resolve_dist
>     raise VersionConflict(dist, req).with_context(dependent_req)
> pkg_resources.ContextualVersionConflict: (numpy 2.2.3
> (/home/mainuser/software/sage-10.6/lib/python3.11/site-packages),
> Requirement.parse('numpy<2,>=1.21'), {'matplotlib'})
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "/home/mainuser/software/sage-10.6/bin/sage-notebook", line 4, in
> <module>
>     __import__('pkg_resources').require('sagemath-standard==10.6')
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 3656, in <module>
>     @_call_aside
>      ^^^^^^^^^^^
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 3640, in _call_aside
>     f(*args, **kwargs)
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 3669, in _initialize_master_working_set
>     working_set = _declare_state('object', 'working_set',
> WorkingSet._build_master())
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 658, in _build_master
>     return cls._build_from_requirements(__requires__)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 671, in _build_from_requirements
>     dists = ws.resolve(reqs, Environment())
>             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 890, in resolve
>     dist = self._resolve_dist(
>            ^^^^^^^^^^^^^^^^^^^
>   File
> "/home/mainuser/software/sage-10.6/lib/python3.11/site-packages/pkg_resources/__init__.py",
> line 936, in _resolve_dist
>     raise VersionConflict(dist, req).with_context(dependent_req)
> pkg_resources.ContextualVersionConflict: (numpy 2.2.3
> (/home/mainuser/software/sage-10.6/lib/python3.11/site-packages),
> Requirement.parse('numpy<2,>=1.21'), {'matplotlib'})
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" 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-support/23e244eb-d407-401c-bcc2-9dbb0a43d146n%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-support/23e244eb-d407-401c-bcc2-9dbb0a43d146n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" 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-support/CAAWYfq2CxW-XSpO4%2BvbT%3D3%3DTfFuKMReFaxPnTLUH3spTPs-83w%40mail.gmail.com.

Reply via email to