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 creates scripts for PyInstaller with no encoding specified #5539
Comments
If there's a If you're getting the Sorry to keep passing you on to different projects, but the infrastructure is a complex mix and it's often difficult to pinpoint which part is causing an issue at first... |
As a workaround, you can build a wheel using |
Yup, that works fine. Thanks! |
Hello, yes there is a workaround but the issue is still not fixed. Can this issue be re-opened please? |
@kubrickfr as @pfmoore said, an issue should be opened against setuptools. This is not pip issue in the end. |
Adding link for reference: |
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. |
First of all, I've already opened an issue in PyInstaller repo, but I was told this is not their issue but yours (or setuptools's).
Environment
Description
I install PyInstaller with
pip install pyinstaller
. It installs, but doesn't work:pyinstaller myscript.py
fails due topyinstaller-script.py
in theScripts
subfolder contains non-UTF-8 codes. In fact, its encoding is CP1251 on my machine but no encoding is specified inside the file.The offending line contains the path to the Python interpreter executable. This is because I run all commands in the virtual environment located in path with non-latin characters. If I run commands in virtual environment placed in latin-only path, no errors are thrown.
Expected behavior
PyInstaller should work and create an executable file from my Python script.
How to Reproduce
pip install pyinstaller
.pyinstaller <script name>.py
.Output
The text was updated successfully, but these errors were encountered: