-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Build Failure on Windows, Python 3.6 GCC Compilers: UnicodeDecodeError. #16668
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
Comments
Do you have non-ascii characters in your path? Could you stop at the error and try to work out what is going on? |
does |
I'm sure that no non-ascii characters existed, It's seems like the exception is triggered when testing SSE flags:
o.decode() failed to decode
|
https://bugs.python.org/issue27179#msg267091 seems slightly related, I haven't read the whole thread. |
Maybe a parallel problem, I always build numpy with |
My guess would be that the codepage of the parallel processes does not match the codepage of the parent process. |
This problem arose again in my local machine, even with non-parallel build. |
There was a long discussion and a PEP 597 about changing the default stdout encoding. Bottom line: what does
to use that encoding does it fix the problem? |
my encoding result is |
@mattip I want to provide a PR to solve this issue, modify |
I think the preferred spelling of this is when calling As for the multiple warnings, can you show the part of the log that looks like the one in this comment ? |
The build can succeed after specify
|
Good to hear: so the correct fix for this issue is As for the warnings: on 64-bit windows, you should not be using |
Note that I still suspect there's a nastier issue here regarding the locale in which parallel vs non-parallel builds are executed in. |
yes, my bad. I didn't expect msvc to raise warning messages in another language than English. @Qiyu8, well to solve this issue you have to replace: numpy/numpy/distutils/ccompiler_opt.py Line 676 in 86fcce6
with: "warning D9002|" # msvc, it should be work with any language. And why? |
updating to the latest master , an
UnicodeDecodeError
occurred even after executegit clean -xfd
Reproducing code example:
No code example.
Error message:
The text was updated successfully, but these errors were encountered: