Skip to content
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

Invalid version and will not be supported in a future release #5208

Closed
kaykhan opened this issue Jul 29, 2022 · 15 comments · Fixed by #5350
Closed

Invalid version and will not be supported in a future release #5208

kaykhan opened this issue Jul 29, 2022 · 15 comments · Fixed by #5350
Labels
hacktoberfest PR: awaiting-review The PR related to this issue is awaiting review by a maintainer.

Comments

@kaykhan
Copy link

kaykhan commented Jul 29, 2022

When i run pipenv shell i get the following warning/error?

pipenv shell

/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
  warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
  warnings.warn(
Loading .env environment variables.

python --version
Python 3.10.4

OS
Ubuntu 22.04

@matteius
Copy link
Member

@kaykhan This issue has been reported from time to time, but unfortunately it is really challenging to figure out where pipenv could be invoking this from. Could you try the main branch of pipenv pip install git+https://github.com/pypa/pipenv.git@main and see if the error is still present?

@matteius matteius added the Status: Awaiting Update ⏳ This issue requires more information before assistance can be provided. label Aug 11, 2022
@kaykhan
Copy link
Author

kaykhan commented Aug 12, 2022

@matteius im using pipenv, version 2022.7.24 which was released recently - https://github.com/pypa/pipenv/releases/tag/v2022.7.24

Still get the same error

is there anything else i can do to help debug?


Just looking into this further i came across another post -- apparently its an issue with "setuptools"?

https://askubuntu.com/questions/1406952/what-is-the-meaning-of-this-pkgresourcesdeprecationwarning-warning-from-pipenv

Ive not had a chance to apply the solution (downgrade) to test if that is it

Although the actual github thread the op suggest this problem does not occur in version 59. pypa/setuptools#3278 - but in my case it does, but not sure if its the same issue or related.

pip list | grep "setuptools"                                                                                                                                                                      
setuptools              59.6.0

@matteius
Copy link
Member

Downgrading setuptools really should not be the answer. It's just a warning, you can ignore it for now until it can be figured out.

@kaykhan
Copy link
Author

kaykhan commented Aug 12, 2022

Downgrading setuptools really should not be the answer. It's just a warning, you can ignore it for now until it can be figured out.

Okay thank you, i will check back at a later date and if theres anyting else i can do/try to help let me know!

@matteius
Copy link
Member

@kaykhan I would be curious to know, if you still get the error with pipenv==2022.8.24?

@kaykhan
Copy link
Author

kaykhan commented Aug 25, 2022

@matteius Upgraded pipenv for you, unfortunately i still get these errors/warnings

1. pipenv --version

/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
  warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
  warnings.warn(
pipenv, version 2022.8.15

2. pip install --upgrade pipenv

3. pipenv --version


/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
  warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
  warnings.warn(
pipenv, version 2022.8.24

@real-yfprojects
Copy link

The warning will show up even when entering the following:

$ pipenv help
/home/user/.local/lib/python3.8/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 1.13.1-unknown is an invalid version and will not be supported in a future release
  warnings.warn(
/home/user/.local/lib/python3.8/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 0.23ubuntu1 is an invalid version and will not be supported in a future release
  warnings.warn(
/home/user/.local/lib/python3.8/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: 0.1.36ubuntu1 is an invalid version and will not be supported in a future release
  warnings.warn(
Usage: pipenv [OPTIONS] COMMAND [ARGS]...
Try 'pipenv -h' for help.

Error: No such command 'help'.

Did you mean one of these?
    shell

This means that the problem lies before or while parsing the cmd arguments.

@sepsallao
Copy link

I am using WSL2 Ubuntu 18.04

By just checking the version, I also get this error:

$ pipenv --version
/home/sep/.local/lib/python3.6/site-packages/pkg_resources/__init__.py:119: PkgResourcesDeprecationWarning: 0.18ubuntu0.18.04.1 is an invalid version and will not be supported in a future release
  PkgResourcesDeprecationWarning,
pipenv, version 2022.4.20

@matteius matteius added help wanted hacktoberfest Contributor Candidate The issue has been identified/triaged and contributions are welcomed/encouraged. labels Sep 7, 2022
@matteius matteius added PR: awaiting-review The PR related to this issue is awaiting review by a maintainer. and removed help wanted Contributor Candidate The issue has been identified/triaged and contributions are welcomed/encouraged. Status: Awaiting Update ⏳ This issue requires more information before assistance can be provided. labels Sep 13, 2022
@matteius
Copy link
Member

2022.9.20 is released

@kaykhan
Copy link
Author

kaykhan commented Sep 21, 2022

Upgrading to this new version (2022.9.20) has resolved the problem for me. thanks!

Screenshot from 2022-09-21 12-46-59

@fatraphael95
Copy link

I have just come across this issue mentioned by @kaykhan previously but for me, the issue is appearing on GitHub when I was trying to run a job.

Screenshot 2023-01-16 at 3 31 57 AM

I have also tried including the "pip install git+https://github.com/pypa/pipenv.git@main" on the main branch (suggested by @matteius ) but unfortunately, I still face the same issue 😭

Screenshot 2023-01-16 at 3 34 24 AM

Hope to know if anyone knows how to resolve this? 🙏🏻

@matteius
Copy link
Member

@fatraphael95 that fix was released to pypi a while ago. Is it possible you are invoking pipenv from an apt installed version?

@fatraphael95
Copy link

Hi @matteius, sorry I'm quite new to this and not quite sure what you mean by invoking pipenv from an apt installed version. Currently, I have sort of resolved the earlier issue by changing from setuptools==65.x.x to setuptools==66.0.0 and right now this is the current status whereby the "1.1build1" is an invalid version.

Screenshot 2023-01-16 at 5 03 57 PM

@matteius
Copy link
Member

@fatraphael95 you should not have to install main branch, this fix has long since been released in pypi -- noticed you are pip install -r requirements.txt after installing pipenv which could revert back to a version you have specified in the requirements.txt. Do you have a version of pipenv specified there that isn't the latest?

@fatraphael95
Copy link

@matteius ohh i see and yes it was not the latest version. I have updated the requirement.txt file and it is working now. Thanks a lot for your kind help! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest PR: awaiting-review The PR related to this issue is awaiting review by a maintainer.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants