-
Notifications
You must be signed in to change notification settings - Fork 3k
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
pip install codepage error (sqlalchemy,windows) #4110
Comments
+1 for fix; I've seen many (now pysandbox) recently because of code page 932 on my Windows...
|
Related to #4251 |
I seen this issue also happen with packages that have cython extension modules (aiohttp, yarl) in packages on 3.6 when they did not have wheels for 3.6 on PyPi. Note this bug does not appear when pip installing bdist_wheel's even if there are no c/cython extension modules. |
I want to say some words about that error. In short: Some days ago I can't update aiohttp and today I can't install compleately new package.
My system specs writed in that pastebin url and as Chris say, my system language is Russian and string generated in CP1251. Link to pastebin: https://pastebin.com/khmaK0Pu If you need anything else, then ask me, I will reply. Hope that helps with solving that error. |
Fundamentally, I believe the problem is that Visual C can produce output that is in a mix of the ANSI and the OEM codepages when run with stdout directed to a pipe. This means that the output is in practice un-decodable to Unicode. At the moment, pip fails with a UnicodeError as a result of this. We're working on a patch that allows pip to produce output without failing, although the output will still contain mojibake as it is the data itself that is in error. |
I write fix for me.
...
So I Also, what is actually in output (log by
As you can see, here is 3 lines what contain my local language. |
This should now be fixed by #4486, which is now available in the development version of pip and will be released in pip 10. I am closing this issue, but if you are still able to reproduce the problem in the development version of pip, please reopen it with a description of now to replicate the issue. |
So... pip on windows is basically broken since more than half a year without a convenient way for a temporary fix? pip-10 is not released and I don't see any pre-release either. |
I personally agree with hasufell’s point. Newbies (I guess they’d be students) have been wasting time due to this issue in Japan because of majority of Japanese Windows (cp932). I wish pip were not a blocker but a helper of newbies’ start-up in Python’s ecosystem. |
@sakurai-youhei I think there'll be a 10.0 soon. Until then, you could use pip's development version by installing it as follows:
|
@pradyunsg you forgot an |
Thanks for catching that @AraHaan! |
I've installed 10.0.0.dev0 with bellow command because Windows locks pip.exe and "users" doesn't have git client. It worked.
|
Thanks @shimizukawa! tbh, I'd not actually put in the amount of thought that I should have in my comment above. Your command is indeed better than what I'd suggested. I might just start suggesting the same soon. :) |
So a new year has come and there is still no concrete plan for Pip 10. Would it be plausible to have a 9.0.2 to include this fix, please? This is clearly an issue that affects people, and one those affected are highly unlikely to know how to solve. |
I have to agree with @uranusjr. I've been watching this issue about one year, it's so long time and some times a think it's kinda windows-users-bullying ? |
+1 for 9.0.2 |
Not sure what you mean by that. I'm a windows user and a pip dev, and I implemented the fix for this issue. I agree it's high priority to get it released (for some of our users - like most encoding issues, it's user-specific - if it hits you you get it all the time, but if it doesn't you're not clear what the fuss is about). If the pip release process was structured that way, I'd support the idea of a bugfix release, but unfortunately, it's not - we release what's currently on the master branch at any time, and we currently have some new features on master that need a bit of work to complete (PEP 517/518 support in particular, and also the hiding of the internal API, which while appropriate for pip 10, isn't really acceptable for a 9.0.x release). So while I'd agree that this fix is one I'd be happy to include in a 9.0.2 release, we don't really have an easy way to cut a 9.0.2 release at this time. One of our goals for a more sustainable pip development process should probably be structuring things so we have a better workflow to support bugfix releases. But we have extremely limited developer resources, and basically no commercial or vendor support, so "big picture" questions like this are hard to find time to address. If anyone wants to raise the issue with whoever provides commercial support for their use of Python/pip, asking them to contribute towards the sustainability of Python's package management infrastructure, that would be a good long-term step to avoiding this type of situation in the future. |
Hi @pfmoore. I understand your viewpoint, and you're right about it. About the "windows-users-bullying" I was just kidding, sorry for that. :-) |
No problem - I just wasn't sure what you meant and whether there was a genuine issue we could address underlying your comment. |
@uranusjr @paulorodriguesxv If you still have this issue, try my code (other fixes not help to me, so I code it by myself). The code showed, probably, above #4110 (comment). |
thanks @XCanG |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I have changed code page in my cmd to 65001 (it's utf-8), and while installing sqlalchemy by pip:
I obtained next error:
To solve this, change you code page to 866
And try to install sqlalchemy once again.
Issue on sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/issues/3851/pip-install-error-windows-10
The text was updated successfully, but these errors were encountered: