-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Non-ASCII character '\xe2' in file #50
Comments
What version of zipp is being installed on Python 2? If it’s zipp 2 or later, you are getting an incompatible version of zipp probably because you have an old pip installed. Your best bet is to install pip 9 or later before installing pipenv. Or just pin to zipp<2 in your environment when installing pipenv (or anything else that might require zipp). |
1.2.0 |
When I check out |
I tried replicating the issue no CentOS 7 without any luck:
|
It seems to be an environment issue. In our environment, we are using I did not know about the pypa install, and after trying that, things are better. It also seems to trigger mostly when using pipenv as non-root. This is the way I can reproduce the issue.
(this is not the way I actually got to this issue, but this works (breaks) the way I think) |
For example, this is working:
|
Thanks so much for the replication in a Dockerfile. From that, I was able to distill the issue down to this Dockerfile:
It took a while to eliminate If you look at the build log though, you'll see a few warnings:
As you can see, the problem is that pip as bundled with EPEL is The proper workaround is to upgrade pip before installing virtualenv or pipenv:
or pin to
Furthermore, Unfortunately, there's not much zipp can do here short of restoring Python 2 support in its latest releases (along with its transitive dependencies), and Centos 7 users are going to continue to run into issues as Python 2 support is sunset in the ecosystem and packages drop support for it (and other older releases). I hope this analysis provides some clarity and viable workarounds. Good luck, and feel free to follow up if you have more questions. |
@jaraco Thank you so much for explaining that! I'm fixing my automation scripts to upgrade pip, setuptools, and wheel! |
* Added a config for dependabot. * Update features list for dependabot. Co-authored-by: KOLANICH <kolan_n@mail.ru>
I got the following while running
python2.7 -m pip install -U --user pipenv
on CentOS7:I found that the ascii characters were added in dff39a6
I was able to pin
zipp==1.1.1
, and was able to move forward:python2.7 -m pip install -U --user "zipp==1.1.1" pipenv
The text was updated successfully, but these errors were encountered: