Situation: the program is working OK from python, exe is created by pyinstaller (I installed ucrt runtime, and lost dlls were found), however after launching I have an error:
Fatal Python error: Py_Initialize: unable to load the file system codec
ImportError: No module named 'encodings'
Encodings are exactly present in base_library.zip, and were hooked:
68196 INFO: Loading module hook "hook-pydoc.py"...
68196 INFO: Loading module hook "hook-encodings.py"...
75684 INFO: Loading module hook "hook-encodings.py"...
84118 INFO: Loading module hook "hook-distutils.py"...
84118 INFO: Loading module hook "hook-distutils.py"...
Made an attemt to inwestigate the situation, launched out00-PYZ.pyz in build directory:
File "D:\Users\....\Kivy_UTF\build\Parser\out00-PYZ.pyz", line 1
SyntaxError: Non-UTF-8 code starting with '\x81' in file D:\Users\....\Kivy_UTF\build\Parser\out00-PYZ.pyz on line 2, but no encoding declared; see
http://python.org/dev/peps/pep-0263/ for details
System encoding is 1251
Added
# -*- coding: utf-8 -*-
to all the sources (which are in utf), according to PEP-263, but no effect,adding
codecs.register(encodings.cp1251.Codec)
to '__main__ is negative too.
Win 10, the latest build.
270 INFO: PyInstaller: 3.3
270 INFO: Python: 3.5.4
270 INFO: Platform: Windows-10-10.0.16299-SP0
...
[INFO ] [Kivy ] v1.10.0
286 INFO: [Kivy ] v1.10.0
[INFO ] [Python ] v3.5.4 (v3.5.4:3f56838, Aug 8 2017, 02:17:05) [MSC v.1900 64 bit (AMD64)]
286 INFO: [Python ] v3.5.4 (v3.5.4:3f56838, Aug 8 2017, 02:17:05) [MSC v.1900 64 bit (AMD64)]
Any advice? If it's simple, please, point me to RTFM, but I don't find it after Internet digging...