Fail to run on portuguese windows systems

59 views
Skip to first unread message

Shai Shasag

unread,
Nov 2, 2020, 10:09:59 AM11/2/20
to PyInstaller
My application is build using python 3.6.6 and pyinstaller 3.4.
The application runs on most Windows systems, but on some Portuguese only Brazilian Windows 10 - it does not run at all, i.e. the application immediate returns.
I tried reducing the issue by building a single file containing only a single line:

print("Hello World")

without any imports.

This also fails to run under these Portuguese only Brazilian Windows 10.

Enabling Portuguese on a English based system does not reproduce the issue.

Any idea what could be the problem?

Thanks,
Shai Shasag

bwoodsend

unread,
Nov 2, 2020, 11:13:58 AM11/2/20
to PyInstaller
Could you upgrade your PyInstaller? Encodings and locales used to be a very prominent issue when we were trying to support Python2 and Python3 which handle encodings very differently. But it should've been cleared up by now.

Shai Shasag

unread,
Nov 5, 2020, 10:12:12 AM11/5/20
to PyInstaller
I rebuild the minimal application using python 3.6.6 and pyinstaller 4.0.
To no avail. The app does not run on Portuguese/Brazilian Windows 10.
What else can I try?

Thanks,
Shai Shasag

bwoodsend

unread,
Nov 6, 2020, 9:44:52 AM11/6/20
to PyInstaller

Is it possible there are any non-acsii filenames involved - either where you put the program, the username of the Portuguese machine, or any of the TEMPDIRs? There was a fix for that made quite recently but it hasn’t been released yet. I’ve built a wheel with the changes included so you can try it here. Be sure to uninstall your current PyInstaller before installing that one as pip gets a bit confused by local distributions.

Shai Shasag

unread,
Nov 10, 2020, 7:15:14 AM11/10/20
to PyInstaller
4.1 seems to work! Thanks.
Can you describe what changed in 4.1 with regard to such issues?

bwoodsend

unread,
Nov 10, 2020, 4:23:50 PM11/10/20
to PyInstaller

The change I think it is is bootloader: pyi_path_fullpath: use _wfullpath() #5189 . Basically the bootloader (the little program which loads Python and runs your code) used an ascii-only data type to handle filenames which obviously means that it will fall to bits on encountering anything unicode. It’s written in C though which is why you can’t just install from Github. PyInstaller 4.1 is supposed to be released very soon though (actually it should have been released already) …

Shai Shasag

unread,
Nov 12, 2020, 8:34:00 AM11/12/20
to PyInstaller
Ok thanks for the info. Any estimation when 4.1 will be released? We have several Brazilian users who are waiting for a solution...
Thanks again & keep up the good work!
Shai

bwoodsend

unread,
Nov 14, 2020, 11:17:38 AM11/14/20
to PyInstaller
I honestly haven't a clue. It's whenever Harmut has enough time to make the release which could be this afternoon or in a months time. We're not as short staffed as we used to be but things still take a while in PyInstaller land.

bwoodsend

unread,
Nov 24, 2020, 11:22:25 AM11/24/20
to PyInstaller
4.1 is released!

Reply all
Reply to author
Forward
0 new messages