PyInstaller wont work anymore for me...

159 views
Skip to first unread message

Jonas

unread,
Jul 30, 2021, 4:33:40 AM7/30/21
to PyInstaller
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
Reply all
Reply to author
Forward
0 new messages