Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#74540 - [python-pipenv] pipenv requires version of setuptools that isn't in Arch yet

Attached to Project: Community Packages
Opened by Jason Yundt (Jayman) - Friday, 22 April 2022, 20:22 GMT
Last edited by Andrew Crerar (andrewSC) - Tuesday, 26 April 2022, 20:29 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Andrew Crerar (andrewSC)
Morten Linderud (Foxboron)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 8
Private No

Details

Description:
The version of pipenv currently being shipped is too new. It requires setuptools>=60.0.0 [1], but the python-setuptools only provides 59.5.0 [2]. When you run pipenv, it crashes with the error “The 'setuptools>=60.0.0' distribution was not found and is required by pipenv”.

Additional info:
Package version: 2022.4.21-1

Steps to reproduce:

1. Run pipenv

[1]: <https://github.com/pypa/pipenv/commit/23851d8170648f3ce6b2cbc5352ec1a99abe53f7#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7R26>
[2]: <https://archlinux.org/packages/extra/any/python-setuptools/>
   log.txt (3.8 KiB)
This task depends upon

Closed by  Andrew Crerar (andrewSC)
Tuesday, 26 April 2022, 20:29 GMT
Reason for closing:  Fixed
Additional comments about closing:  I've pushed pkgrel 2 out with the downgrade patch in place as a temporary fix. It appears upstream may have unintentionally updated the requirements when removing py3.6 support. See: https://github.com/pypa/pipenv/issues/50 75#issuecomment-1109062812

If anyone experiences further issues with the package please either re-open or create a new ticket. Thanks!
Comment by Chih-Hsuan Yen (yan12125) - Saturday, 23 April 2022, 07:03 GMT
The relevant upstream PR also bumps pip version besides setuptools https://github.com/pypa/pipenv/pull/5066
Comment by Paweł Paprota (yagood) - Saturday, 23 April 2022, 12:35 GMT
After installing fresh setuptools via pip --user, pip itself becomes the problem when using pipenv:

pkg_resources.DistributionNotFound: The 'pip>=22.0.4' distribution was not found and is required by pipenv
Comment by zamlz (zamlz) - Sunday, 24 April 2022, 19:31 GMT
What is the temporary mitigation to fix this while we wait for upstream to fix this bug?
Is it safe to update setuptools locally with pip?
I have a lot of projects that depend on pipenv.
Comment by Paweł Paprota (yagood) - Sunday, 24 April 2022, 20:30 GMT
I downgraded to python-pipenv 2022.3.28-1 and added it to IgnorePkg for now.

I would not install setuptools locally if you rely on this environment as it's a major version upgrade.
Comment by zamlz (zamlz) - Monday, 25 April 2022, 00:17 GMT
Thanks, I will take those steps.
Comment by Andrew Crerar (andrewSC) - Monday, 25 April 2022, 15:38 GMT
Quick status update on this: I've reached out to upstream to provide any feedback on a patch I created to downgrade the bump in setuptools and pip to 59.5 and 21 respectively. Also have reached out to the python-setuptools maintainer to see if we're blocked on anything for getting setuptools to latest. FWIW I've built pipenv and tested it with the patch (see attached, used with attached PKGBUILD) locally and it _appears_ to fix the situation. However, the majorver bump for setuptools upstream indicates a distutils default change which.. I don't know if/how that impacts pipenv without doing more digging which takes time (and unfortunately haven't had much to spare as of late). Will follow up once I either hear back or am able to do more digging.
Comment by zamlz (zamlz) - Monday, 25 April 2022, 19:46 GMT
Thank you for your work on following up on this Andrew!

Loading...