-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
PyInstaller fails to read Windows versioninfo files with byteorder markers (BOM) #6259
Comments
I dug more and found that it is caused by my its contents:
I myself didn't made it.. but i used a python module to generate it.. |
how may i workaround it? |
Can you share your vfile as an attachment instead of copy/pasting it in so that we can verify that it is UTF-8 as it claims to be? It seems to be implying that comments passed to >>> eval("# distracting comment\n1 + 1 # more comments")
2 |
Your Use an editor with proper encodings support (e.g., Notepad++) and convert it from "UTF-8-BOM" to "UTF-8". |
I tried changing this file and the file after (my) changes ^ |
Which module did you use? |
It's as Rok says, there's a BOM at the start of the file: >>> open("WhirlEdit_2.txt", "rb").read(50)
b'\xef\xbb\xbfVSVersionInfo(\n ffi=FixedFileInfo(\n filever' I guess we could make that function BOM tollerant without too much hassle. |
Indeed. |
Well.. i forgot.. I made that file months ago.. since then i have been editing it to keep up with the next versions of my software.. |
I was freezing my simple program using pyinstaller...
just then:
THIS HAPPENED:
the whole log:
the command i ran:
well.. My program has all good characters (not weird unicode) that too all typed by me ONLY
btw, i am using an virtual env for the project..
**Then
I tried another file and it worked fine..
The text was updated successfully, but these errors were encountered: