Skip to content

sage shows "DeprecationWarning: pkg_resources is deprecated as an API." when __import__('pkg_resources').require('sagemath-standard==10.3') #38389

@guoh064

Description

@guoh064

Environment

- **OS**: Ubuntu 22.04.4 LTS
- **Sage Version**: 10.3
- **CPU**: Intel(R) Xeon(R) Gold 6338 CPU @ 2.00GHz

Steps To Reproduce

For the installation steps, I followed steps 1,2,3 and go to the Sage Installation Manual, installed the first and last group of packages in the 'Linux system package installation' section. Then I followed steps 7, 8, 11 and set MAKE="make -j32". Then I followed steps 12, 14 (and 20). After the build the problem already occurs.

If type "sage --version", following is shown:

/home/dinglabguohaokjb1/sage/sage/local/var/lib/sage/venv-python3.10/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.3')
SageMath version 10.3, Release Date: 2024-03-19

If run "sage" directly, following will be shown, and sage prompt will show:

/home/dinglabguohaokjb1/sage/sage/local/var/lib/sage/venv-python3.10/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.3')
/home/dinglabguohaokjb1/sage/sage/local/var/lib/sage/venv-python3.10/bin/sage-ipython: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.3')

If run "sage some_file.sage", following will be shown, and the program will continue to run normally:

/home/dinglabguohaokjb1/sage/sage/local/var/lib/sage/venv-python3.10/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.3')
/home/dinglabguohaokjb1/sage/sage/local/var/lib/sage/venv-python3.10/bin/sage-run: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.3')
/home/dinglabguohaokjb1/sage/sage/local/var/lib/sage/venv-python3.10/bin/sage-preparse: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.3')
/home/dinglabguohaokjb1/sage/sage/local/var/lib/sage/venv-python3.10/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.3')

Config log

config.log

Package logs

sphinxcontrib_websupport-1.2.7.log
pyyaml-6.0.1.log
pythran-0.14.0.log

Additional Information

I am not sure if this is a build error.
However previously I used the conda-forge version of Sage and on that machine everything goes well, no bothering warnings.
On this machine I have no conda-like environments so the best I can try is to build from source. Thank you in advance for the help.

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions