-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The 'DeprecationWarning' is triggered due to the use of deprecated 'pkg_resources' form setuptools #6097
Labels
Comments
I am not seeing this -- we did fix a similar issue a long time ago, but haven't seen this for some time -- is it possible you still have some old pipenv package available on your path?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description
Pipenv is using pkg_resources as an API, which is deprecated (see https://setuptools.pypa.io/en/latest/pkg_resources.html).
In setuptools documentations there is an explanation of how to manage resources thorugh importlib:
Expected result
DeprecationWarning does not appear any more.
Actual result
A warning raises when using the most of pipenv instructions
Steps to replicate
A simple way to replicate is just to call the help command from pipenv:
$ pipenv --support
Pipenv version:
'2023.11.17'
Pipenv location:
'/usr/local/lib/python3.11/site-packages/pipenv'
Python location:
'/usr/local/bin/python'
OS Name:
'posix'
User pip version:
'23.3.2'
user Python installations found:
PEP 508 Information:
System environment variables:
PYTHONDEVMODE
PIPENV_VENV_IN_PROJECT
HOSTNAME
PYTHON_VERSION
DJANGO_EMAIL_HOST
DJANGO_SECRET_KEY
PWD
DB_ENGINE
DJANGO_EMAIL_PORT
PYTHON_SETUPTOOLS_VERSION
DB_PORT
DB_USER
HOME
LANG
GPG_KEY
DJANGO_ALLOWED_HOSTS
DJANGO_EMAIL_HOST_PASSWORD
DJANGO_SETTINGS_MODULE
DJANGO_SUPERUSER_PASSWORD
DJANGO_MEDIA_ROOT
DJANGO_SUPERUSER_EMAIL
PYTHONPATH
TERM
DB_HOST
DB_PASSWD
DJANGO_DEBUG
SHLVL
DJANGO_SUPERUSER_USERNAME
DJANGO_EMAIL_HOST_USER
PYTHON_PIP_VERSION
DB_NAME
PYTHON_GET_PIP_SHA256
PYTHONBREAKPOINT
PYTHON_GET_PIP_URL
PATH
DJANGO_STATIC_ROOT
PIPENV_SHELL
_
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
PIPENV_VENV_IN_PROJECT
:1
PIPENV_SHELL
:bash
Debug–specific environment variables:
PATH
:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG
:C.UTF-8
PWD
:/app
Contents of
Pipfile
('/app/Pipfile'):Contents of
Pipfile.lock
('/app/Pipfile.lock'):The text was updated successfully, but these errors were encountered: