-
-
Notifications
You must be signed in to change notification settings - Fork 217
-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding #835
Comments
@marcelotduarte suggested to me the problem might be with the G: drive, so I tried copying my whole folder on the desktop (on my C: drive), and re-running cx_Freeze then running the application, but it caused the same issue. |
Can you copy the source to C: (local drive) only to test. I suspect that is a network issue (not with your network, but in the frozen app). |
You're really fast! I thought I'd beat you to that with my previous comment... |
Take a look at #767, it is about pyside2 but has some comments... |
The sample PyQt5 does the same results:
I'm not sure I understand what part of #767 you mean I should follow. Is it the copying of DLLs? |
I haven't tested this pyqt5 sample on windows with py39 yet, then I'll take a look to see if I can find anything ....
about network shares. |
OK, thanks for your time.
I haven't done any compiling from source, and I'm not either using a virtualenv (working off my main python). |
Looking at sys.path, it's looks like not default path, maybe python 3.9 issue. Can you try build with python 3.8 on local disk (without network share)? |
Had to do it on another computer (only had the one version of python installed on that one). Now the issue I get when I launch the app after freezing it is |
I will say that with python 3.7, the freezing process takes much longer, it's copying all of my python packages, which seems more adequate than the quick process that it did on 3.9. |
Remove What's your package versions? I've used this.
|
Well, I installed the same versions as you, and now I get an error during the freezing process.
|
@LaurentBerder |
@LaurentBerder I do a test with the sample in py 3.9.1 in a VM/Win10 and has no issues. Please note:
|
I know there are some problems with numpy. The recommended version that works very well is 1.18.2, that is: |
Thanks for your work and your time @marcelotduarte and @klensy, |
I've met the same issue after upgrading cx-Freeze version 6.6. The exeutable file does not work on the folder which includes multi-byte character. But cx-Freeze version 6.5.3 works well. Reproduction
conda create -n cx python=3.9.5
conda activate cx
pip install -U cx-Freeze
cxfreeze -c hello.py
# rename build\exe.win-amd64-3.9 directory to "テスト"
cd build\テスト
.\hello.exe hello.py
|
@marcelotduarte thank you! |
Hi,
I'm working under Windows 10 in Python 3.9.0 (native, no Anaconda or anything), with cx_Freeze 6.4.2
Whenever I use cx_Freeze, the processes goes through without issues, but I can't run the exe, with this error:
This is the content of my setup.py file:
The G:/ drive is a my Google Drive (synched with Drive File Stream).
It seems (right of the bat) like PYTHONHOME and PYTHONPATH do not get found, but I'm not sure whether I should specify this myself.
What's causing this, and how could I solve it?
The text was updated successfully, but these errors were encountered: