If I try to run "*pyinstaller --onefile -i ico.ico main.py*"
no matter with which python script this Error shows up:
8486 INFO: Processing pre-safe import module hook
urllib3.packages.six.moves from
'c:\\users\\jonas\\appdata\\local\\programs\\python\\python39\\lib\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-urllib3.packages.six.moves.py'.
Traceback (most recent call last):
File "<string>", line 2, in <module>
File
"c:\users\jonas\appdata\local\programs\python\python39\lib\site-packages\urllib3\__init__.py",
line 7, in <module>
import logging
File
"c:\users\jonas\appdata\local\programs\python\python39\lib\site-packages\logging\__init__.py",
line 618
raise NotImplementedError, 'emit must be implemented '\
^
SyntaxError: invalid syntax
pre-safe-import-module hook failed, needs fixing.
I've rly tried everything.... (Even uninstalling and installing Python
again.)
Python version: 3.9.6
<https://www.python.org/ftp/python/3.9.6/python-3.9.6-amd64.exe>
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyinstaller/acdda815-89c3-4944-aafe-c6fa8c14fe60n%40googlegroups.com.