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

pipenv 2021.11.5 regresses back to issue #2961 #4834

Closed
lukaso opened this issue Nov 6, 2021 · 8 comments
Closed

pipenv 2021.11.5 regresses back to issue #2961 #4834

lukaso opened this issue Nov 6, 2021 · 8 comments

Comments

@lukaso
Copy link

lukaso commented Nov 6, 2021

Issue description

It appears that issue #2961 has returned. This is occurring on a mac.

Expected result

pipenv should operate without throwing an exception.

Actual result

Traceback (most recent call last):
  File "/Users/buildgimp/.new_local/bin/pipenv", line 5, in <module>
    from pipenv import cli
  File "/Users/buildgimp/.new_local/lib/python/site-packages/pipenv/__init__.py", line 22, in <module>
    from pipenv.vendor.vistir.compat import ResourceWarning, fs_str
  File "/Users/buildgimp/.new_local/lib/python/site-packages/pipenv/vendor/vistir/__init__.py", line 4, in <module>
    from .compat import (
  File "/Users/buildgimp/.new_local/lib/python/site-packages/pipenv/vendor/vistir/compat.py", line 13, in <module>
    from .backports.tempfile import NamedTemporaryFile as _NamedTemporaryFile
  File "/Users/buildgimp/.new_local/lib/python/site-packages/pipenv/vendor/vistir/backports/__init__.py", line 6, in <module>
    from .tempfile import NamedTemporaryFile
  File "/Users/buildgimp/.new_local/lib/python/site-packages/pipenv/vendor/vistir/backports/tempfile.py", line 15, in <module>
    from backports.weakref import finalize
ImportError: No module named weakref

Steps to replicate

Pipenv is deeply embedded in a jhbuild install, so not able to extract to exactly reproduce. But it appears that pipenv is simply not functioning at all.

"Workaround"

pip install --upgrade --user pipenv==2021.5.29

@theocodes
Copy link

I can second this. On Monterey (M1 Pro) and python 2.7.17, a simple pip install -U pipenv which installs the latest release resulted in the same issue above when running pipenv.

rolling back was the only solution :(

@Timmeeh
Copy link

Timmeeh commented Nov 7, 2021

Also in Docker image python:2.7-slim.

Running pip install pipenv && pipenv --version has the same result. Using "workaround" version works.

@mattbasta
Copy link

I'm also seeing this with the latest release(s) on Github Actions (Ubuntu) on python 3.8

@jshwi
Copy link

jshwi commented Nov 7, 2021

I was also getting this, had to peg installation to pipenv==2021.5.29

@frostming
Copy link
Contributor

Sorry but 2021.11.5 no longer supports Python 2.7, please stick to the old versions.

I will yank the release of that problematic release after I got the permission of PyPI package.

@majg0
Copy link

majg0 commented Nov 8, 2021

yank the release of that problematic release

Does this mean that things will start working again during builds without the workaround?

If you could please ping us when it's out, that would be great.

Thank you for your help! 🙏🏼

@majg0
Copy link

majg0 commented Dec 13, 2021

Hi! Do you know whether we can remove the workaround now?

@lukaso
Copy link
Author

lukaso commented Dec 13, 2021

I'm not using the workaround anymore. I think the issue has been fixed (but I'm not quite sure what I did so I'm not certain).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants