Problem to install pyinstaller 4,1

2,135 views
Skip to first unread message

Mélissa Ch.

unread,
Mar 6, 2021, 12:17:59 PM3/6/21
to PyInstaller
Hi i have a lot of problem to install PyInstaller. 
when i pass by  pip install pyinstaller, it begin with 4,2 and error appears, after thy try other version to finish whit 3.3.1.   i need version 4.1 minimal to install and use auto-py-to-exe.
i have try to uninstall pyinstaller and re-install nothing work. i try this one too pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip it don't work.  i try to donwloads the pyinstaller-4.2.tar.gz file on the pypi web site and chrome block it because it sait this will damage my system. 

This is one of the error message i receive when i try to install it.

C:\Windows\system32>pip install pyinstaller
Collecting pyinstaller
  Using cached pyinstaller-4.2.tar.gz (3.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\mélissa\appdata\local\programs\python\python39\python.exe' 'c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\MLISSA~1\AppData\Local\Temp\tmp9aaisqls'
         cwd: C:\Users\Mélissa\AppData\Local\Temp\pip-install-sayhlnad\pyinstaller_e50c146fbabd40cd8cdfeeee5277c294
    Complete output (38 lines):
    Error in sitecustomize; set PYTHONVERBOSE for traceback:
    SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe9 in position 0: unexpected end of data (sitecustomize.py, line 7)
    running dist_info
    creating C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info
    writing C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info\PKG-INFO
    writing dependency_links to C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info\dependency_links.txt
    writing entry points to C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info\entry_points.txt
    writing requirements to C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info\requires.txt
    writing top-level names to C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info\top_level.txt
    writing manifest file 'C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info\SOURCES.txt'
    reading manifest file 'C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'pyinstaller-gui.py'
    no previously-included directories found matching 'bootloader\build'
    no previously-included directories found matching 'bootloader\.waf-*'
    no previously-included directories found matching 'bootloader\.waf3-*'
    no previously-included directories found matching 'bootloader\waf-*'
    no previously-included directories found matching 'bootloader\waf3-*'
    no previously-included directories found matching 'bootloader\_sdks'
    no previously-included directories found matching 'bootloader\.vagrant'
    warning: no previously-included files found matching 'bootloader\.lock-waf*'
    no previously-included directories found matching 'doc\source'
    no previously-included directories found matching 'doc\_build'
    warning: no previously-included files matching '*.tmp' found under directory 'doc'
    warning: no files found matching 'news\_template.rst'
    no previously-included directories found matching 'news'
    no previously-included directories found matching 'old'
    no previously-included directories found matching 'scripts'
    no previously-included directories found matching 'tests\scripts'
    no previously-included directories found matching '.github'
    warning: no previously-included files found matching '.*'
    warning: no previously-included files found matching '*.yml'
    warning: no previously-included files found matching '*~'
    warning: no previously-included files found matching '.directory'
    warning: no previously-included files matching '*.py[co]' found anywhere in distribution
    writing manifest file 'C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info\SOURCES.txt'
    creating 'C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.dist-info'
    error: invalid command 'bdist_wheel'
    ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/b4/83/9f6ff034650abe9778c9a4f86bcead63f89a62acf02b1b47fc2bfc6bf8dd/pyinstaller-4.2.tar.gz#sha256=f5c0eeb2aa663cce9a5404292c0195011fa500a6501c873a466b2e8cad3c950c (from https://pypi.org/simple/pyinstaller/) (requires-python:>=3.5). Command errored out with exit status 1: 'c:\users\mélissa\appdata\local\programs\python\python39\python.exe' 'c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\MLISSA~1\AppData\Local\Temp\tmp9aaisqls' Check the logs for full command output.

They wrote the same message until it finish to install pyinstaller 3.3.1
my version of phyton:
C:\Windows\system32>python
Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

pip version 21.0.1

thank a lot it 3 day now i try a lot of different thing and nothing work....
p.s. sorry for my English is not my fist language. 

bwoodsend

unread,
Mar 7, 2021, 4:47:28 AM3/7/21
to PyInstaller

SyntaxError: (unicode error) ‘utf-8’ codec can’t decode byte 0xe9 in position 0: unexpected end of data (sitecustomize.py, line 7)

It’s getting into a mess because of the é in mélissa in your filenames although it’s hard to tell where. I also have a é in my username and I’ve not seen that error come from pip (although it springs up in plenty of other places).

But it hasn’t stopped there. There’s two ways pip can install a source distribution and it looks like it’s tried both and neither worked. The second error is easier however:

error: invalid command ‘bdist_wheel’

This just mean you haven’t got wheel installed. Run:

pip install wheel

Then try again. (Maybe pip install -U setuptools whilst you’re at it to be safe).

Mélissa Ch.

unread,
Mar 8, 2021, 2:56:03 AM3/8/21
to PyInstaller
Hi bwoodsend,
Thank for the hint, i have install the pip install wheel, it sais successfully installed wheel-0.36.2 and for the setuptools it said requirement already satisfied. ...... site package 54.1.1
after i have install pyinstaller 4.2 whit sucess and auto-py-to-exe 2.8.0 also. But when i try to run auto-py-to-exe i receive a new error message.

C:\Windows\system32>auto-py-to-exe
Traceback (most recent call last):
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\gevent\threadpool.py", line 167, in __run_task
    thread_result.set(func(*args, **kwargs))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 1: invalid continuation byte
2021-03-07T15:49:49Z (<ThreadPoolWorker at 0x223e97060f0 thread_ident=0x3628 threadpool-hub=<Hub at 0x223e8cdaac0 thread_ident=0x3be4>>, <built-in function gethostbyaddr>) failed with UnicodeDecodeError

Traceback (most recent call last):
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\Mélissa\AppData\Local\Programs\Python\Python39\Scripts\auto-py-to-exe.exe\__main__.py", line 7, in <module>
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\auto_py_to_exe\__main__.py", line 99, in run
    start_ui(logging_level)
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\auto_py_to_exe\__main__.py", line 22, in start_ui
    ui.start(config.ui_open_mode)
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\auto_py_to_exe\ui.py", line 140, in start
    eel.start('index.html', size=(650, 672), port=0)
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\eel\__init__.py", line 164, in start
    run_lambda()
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\eel\__init__.py", line 155, in run_lambda
    return btl.run(
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\bottle.py", line 3137, in run
    server.run(app)
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\bottle_websocket\server.py", line 17, in run
    server.serve_forever()
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\gevent\baseserver.py", line 398, in serve_forever
    self.start()
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\gevent\baseserver.py", line 336, in start
    self.init_socket()
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\gevent\pywsgi.py", line 1546, in init_socket
    self.update_environ()
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\gevent\pywsgi.py", line 1558, in update_environ
    name = socket.getfqdn(address[0])
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\gevent\_socketcommon.py", line 304, in getfqdn
    hostname, aliases, _ = gethostbyaddr(name)
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\gevent\_socketcommon.py", line 276, in gethostbyaddr
    return get_hub().resolver.gethostbyaddr(ip_address)
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\gevent\resolver\thread.py", line 66, in gethostbyaddr
    return self.pool.apply(_socket.gethostbyaddr, args, kwargs)
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\gevent\pool.py", line 161, in apply
    return self.spawn(func, *args, **kwds).get()
  File "src\\gevent\\event.py", line 329, in gevent._gevent_cevent.AsyncResult.get
  File "src\\gevent\\event.py", line 359, in gevent._gevent_cevent.AsyncResult.get
  File "src\\gevent\\event.py", line 347, in gevent._gevent_cevent.AsyncResult.get
  File "src\\gevent\\event.py", line 327, in gevent._gevent_cevent.AsyncResult._raise_exception
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\gevent\_compat.py", line 65, in reraise
    raise value.with_traceback(tb)
  File "c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\gevent\threadpool.py", line 167, in __run_task
    thread_result.set(func(*args, **kwargs))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 1: invalid continuation byte

So  if i understand well, it the é in my name that mess all the thing. So the ""easy"" way it to change my name whithout a é. But this will not make a bigger mess in all the other programme or in window's? 
or they have another way?

Bref thank a lot for your responce.

bwoodsend

unread,
Mar 9, 2021, 9:11:23 AM3/9/21
to PyInstaller

I see your Python is installed in a user folder containing an é. That probably explains why you’re seeing more problems than I do. Unless you’re happy to uninstall Python then reinstall it somewhere else, I suggest you create a virtual environment using venv.

  • Open a terminal in a folder that doesn’t have any és in it.
  • Run python -m venv env to create a environment in the folder env.
  • Run env\Scripts\activate.bat to enter your environment. Only affects this terminal.
  • Install your dependencies and PyInstaller: pip install pyinstaller other dependencies
  • Run pyinstaller.

Mélissa Ch.

unread,
Mar 10, 2021, 2:41:17 AM3/10/21
to PyInstaller
Hi bwoodsend,  I make a new venv,. Fist i do the pip list everything go right, after i do a upgrade of pip, and receive a error message. So i remake a new venv and install all dependencies is need everything go right. But wen i run auto-py-to-exe i receive the same error message. See below.  i saw that python take the same way to run and this do the error. I have make the venv in a new directory/drive . So i think of two solution maby tree. Fist like you said re-install python in my other drive. Two find a another way to convect my .PY file into .exe file, or tree and i'm not very hot whit this one, bring back my computer where i buy it and demand to reset all the system and ré-install windows and after i will re-install all my programm ect..... 
The error message whit the pip error whit the fist venv environment, and also the other error message. 
Thank a lot! :)

E:\test virtual env>envtest\Scripts\activate.bat

(envtest) E:\test virtual env>pip list
Package    Version
---------- -------
pip        20.2.3
setuptools 49.2.1
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the 'e:\test virtual env\envtest\scripts\python.exe -m pip install --upgrade pip' command.

(envtest) E:\test virtual env>pip install --upgrade pip
Collecting pip
  Using cached pip-21.0.1-py3-none-any.whl (1.5 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.2.3
    Uninstalling pip-20.2.3:
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Accès refusé: 'e:\\test virtual env\\envtest\\scripts\\pip.exe'
Consider using the `--user` option or check the permissions.


(envtest) E:\test virtual env>pip  list
Traceback (most recent call last):
  File "C:\Users\Mélissa\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\Mélissa\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "E:\test virtual env\envtest\Scripts\pip.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip'

(envtest) E:\test virtual env>pip install --upgrade pip
Traceback (most recent call last):
  File "C:\Users\Mélissa\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\Mélissa\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "E:\test virtual env\envtest\Scripts\pip.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip'

(envtest) E:\test virtual env>envtest\Scripts\deactivate.bat
E:\test virtual env>python -m venv testing

E:\test virtual env>testing\Scripts\activate.bat

(testing) E:\test virtual env>pip list
Package    Version
---------- -------
pip        20.2.3
setuptools 49.2.1
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the 'e:\test virtual env\testing\scripts\python.exe -m pip install --upgrade pip' command.

(testing) E:\test virtual env>pip install wheel
Collecting wheel
  Using cached wheel-0.36.2-py2.py3-none-any.whl (35 kB)
Installing collected packages: wheel
Successfully installed wheel-0.36.2
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the 'e:\test virtual env\testing\scripts\python.exe -m pip install --upgrade pip' command.

(testing) E:\test virtual env>pip install pyinstaller
Processing c:\users\mélissa\appdata\local\pip\cache\wheels\b2\10\66\947cc1c6aebd3e270efd8ec60cf7656d5cbad06c0b34eae143\pyinstaller-4.2-py3-none-any.whl
Collecting pefile>=2017.8.1; sys_platform == "win32"
  Using cached pefile-2019.4.18.tar.gz (62 kB)
Collecting pyinstaller-hooks-contrib>=2020.6
  Downloading pyinstaller_hooks_contrib-2021.1-py2.py3-none-any.whl (181 kB)
     |████████████████████████████████| 181 kB 656 kB/s
Requirement already satisfied: setuptools in e:\test virtual env\testing\lib\site-packages (from pyinstaller) (49.2.1)
Collecting pywin32-ctypes>=0.2.0; sys_platform == "win32"
  Using cached pywin32_ctypes-0.2.0-py2.py3-none-any.whl (28 kB)
Collecting altgraph
  Using cached altgraph-0.17-py2.py3-none-any.whl (21 kB)
Collecting future
  Using cached future-0.18.2.tar.gz (829 kB)
Building wheels for collected packages: pefile, future
  Building wheel for pefile (setup.py) ... done
  Created wheel for pefile: filename=pefile-2019.4.18-py3-none-any.whl size=60822 sha256=cd64238c2ce2945fba0bd9958756de49647f74d77ce95124c4b52cb302ad3c65
  Stored in directory: c:\users\mélissa\appdata\local\pip\cache\wheels\f4\da\18\d53583cd2746d6d4a38630ac2ed3adf1cf4c87cb893f4c29b3
  Building wheel for future (setup.py) ... done
  Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491059 sha256=147145c1decd773ddda8d04c8e75cc6643ec8ce2ee62a1dcb60a38b80bf262da
  Stored in directory: c:\users\mélissa\appdata\local\pip\cache\wheels\2f\a0\d3\4030d9f80e6b3be787f19fc911b8e7aa462986a40ab1e4bb94
Successfully built pefile future
Installing collected packages: future, pefile, pyinstaller-hooks-contrib, pywin32-ctypes, altgraph, pyinstaller
Successfully installed altgraph-0.17 future-0.18.2 pefile-2019.4.18 pyinstaller-4.2 pyinstaller-hooks-contrib-2021.1 pywin32-ctypes-0.2.0
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the 'e:\test virtual env\testing\scripts\python.exe -m pip install --upgrade pip' command.

(testing) E:\test virtual env>pip install Eel
Collecting Eel
  Using cached Eel-0.14.0.tar.gz (17 kB)
Collecting bottle
  Using cached bottle-0.12.19-py3-none-any.whl (89 kB)
Collecting bottle-websocket
  Using cached bottle-websocket-0.2.9.tar.gz (2.0 kB)
Requirement already satisfied: future in e:\test virtual env\testing\lib\site-packages (from Eel) (0.18.2)
Collecting pyparsing
  Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting whichcraft
  Using cached whichcraft-0.6.1-py2.py3-none-any.whl (5.2 kB)
Collecting gevent-websocket
  Using cached gevent_websocket-0.10.1-py3-none-any.whl (22 kB)
Collecting gevent
  Using cached gevent-21.1.2-cp39-cp39-win_amd64.whl (1.6 MB)
Requirement already satisfied: setuptools in e:\test virtual env\testing\lib\site-packages (from gevent->gevent-websocket->bottle-websocket->Eel) (49.2.1)
Collecting zope.event
  Using cached zope.event-4.5.0-py2.py3-none-any.whl (6.8 kB)
Collecting cffi>=1.12.2; platform_python_implementation == "CPython" and sys_platform == "win32"
  Using cached cffi-1.14.5-cp39-cp39-win_amd64.whl (179 kB)
Collecting zope.interface
  Using cached zope.interface-5.2.0-cp39-cp39-win_amd64.whl (196 kB)
Collecting greenlet<2.0,>=0.4.17; platform_python_implementation == "CPython"
  Using cached greenlet-1.0.0-cp39-cp39-win_amd64.whl (95 kB)
Collecting pycparser
  Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Building wheels for collected packages: Eel, bottle-websocket
  Building wheel for Eel (setup.py) ... done
  Created wheel for Eel: filename=Eel-0.14.0-py3-none-any.whl size=17460 sha256=a68a152f905160172c9789217c3020d3b0aa2dd598048b2e56266601ea9cd566
  Stored in directory: c:\users\mélissa\appdata\local\pip\cache\wheels\f1\c2\5c\5f6bc6e4a71a5ea3c3d9b46f832e1ca0a2a66d229c4efb13c9
  Building wheel for bottle-websocket (setup.py) ... done
  Created wheel for bottle-websocket: filename=bottle_websocket-0.2.9-py3-none-any.whl size=2347 sha256=aeccf1a62f05b1576f99ef831a936f43afaafae652eab15194984f5e167bab74
  Stored in directory: c:\users\mélissa\appdata\local\pip\cache\wheels\3f\03\89\b62449b34a0c944daa3c7ae993e2d9a97096b22a2c9d4bd49b
Successfully built Eel bottle-websocket
Installing collected packages: bottle, zope.event, pycparser, cffi, zope.interface, greenlet, gevent, gevent-websocket, bottle-websocket, pyparsing, whichcraft, Eel
Successfully installed Eel-0.14.0 bottle-0.12.19 bottle-websocket-0.2.9 cffi-1.14.5 gevent-21.1.2 gevent-websocket-0.10.1 greenlet-1.0.0 pycparser-2.20 pyparsing-2.4.7 whichcraft-0.6.1 zope.event-4.5.0 zope.interface-5.2.0
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the 'e:\test virtual env\testing\scripts\python.exe -m pip install --upgrade pip' command.

(testing) E:\test virtual env>pip install auto-py-to-exe
Collecting auto-py-to-exe
  Using cached auto_py_to_exe-2.8.0-py2.py3-none-any.whl (79 kB)
Processing c:\users\mélissa\appdata\local\pip\cache\wheels\51\3e\2d\8bfcb8673bdd877d767d7ee13ef42a42d15c677457d4075f4e\eel-0.12.4-py3-none-any.whl
Requirement already satisfied: pyinstaller>=4.1 in e:\test virtual env\testing\lib\site-packages (from auto-py-to-exe) (4.2)
Requirement already satisfied: future in e:\test virtual env\testing\lib\site-packages (from Eel==0.12.4->auto-py-to-exe) (0.18.2)
Requirement already satisfied: whichcraft in e:\test virtual env\testing\lib\site-packages (from Eel==0.12.4->auto-py-to-exe) (0.6.1)
Requirement already satisfied: bottle in e:\test virtual env\testing\lib\site-packages (from Eel==0.12.4->auto-py-to-exe) (0.12.19)
Requirement already satisfied: bottle-websocket in e:\test virtual env\testing\lib\site-packages (from Eel==0.12.4->auto-py-to-exe) (0.2.9)
Requirement already satisfied: setuptools in e:\test virtual env\testing\lib\site-packages (from pyinstaller>=4.1->auto-py-to-exe) (49.2.1)
Requirement already satisfied: altgraph in e:\test virtual env\testing\lib\site-packages (from pyinstaller>=4.1->auto-py-to-exe) (0.17)
Requirement already satisfied: pefile>=2017.8.1; sys_platform == "win32" in e:\test virtual env\testing\lib\site-packages (from pyinstaller>=4.1->auto-py-to-exe) (2019.4.18)
Requirement already satisfied: pyinstaller-hooks-contrib>=2020.6 in e:\test virtual env\testing\lib\site-packages (from pyinstaller>=4.1->auto-py-to-exe) (2021.1)
Requirement already satisfied: pywin32-ctypes>=0.2.0; sys_platform == "win32" in e:\test virtual env\testing\lib\site-packages (from pyinstaller>=4.1->auto-py-to-exe) (0.2.0)
Requirement already satisfied: gevent-websocket in e:\test virtual env\testing\lib\site-packages (from bottle-websocket->Eel==0.12.4->auto-py-to-exe) (0.10.1)
Requirement already satisfied: gevent in e:\test virtual env\testing\lib\site-packages (from gevent-websocket->bottle-websocket->Eel==0.12.4->auto-py-to-exe) (21.1.2)
Requirement already satisfied: greenlet<2.0,>=0.4.17; platform_python_implementation == "CPython" in e:\test virtual env\testing\lib\site-packages (from gevent->gevent-websocket->bottle-websocket->Eel==0.12.4->auto-py-to-exe) (1.0.0)
Requirement already satisfied: zope.interface in e:\test virtual env\testing\lib\site-packages (from gevent->gevent-websocket->bottle-websocket->Eel==0.12.4->auto-py-to-exe) (5.2.0)
Requirement already satisfied: zope.event in e:\test virtual env\testing\lib\site-packages (from gevent->gevent-websocket->bottle-websocket->Eel==0.12.4->auto-py-to-exe) (4.5.0)
Requirement already satisfied: cffi>=1.12.2; platform_python_implementation == "CPython" and sys_platform == "win32" in e:\test virtual env\testing\lib\site-packages (from gevent->gevent-websocket->bottle-websocket->Eel==0.12.4->auto-py-to-exe) (1.14.5)
Requirement already satisfied: pycparser in e:\test virtual env\testing\lib\site-packages (from cffi>=1.12.2; platform_python_implementation == "CPython" and sys_platform == "win32"->gevent->gevent-websocket->bottle-websocket->Eel==0.12.4->auto-py-to-exe) (2.20)
Installing collected packages: Eel, auto-py-to-exe
  Attempting uninstall: Eel
    Found existing installation: Eel 0.14.0
    Uninstalling Eel-0.14.0:
      Successfully uninstalled Eel-0.14.0
Successfully installed Eel-0.12.4 auto-py-to-exe-2.8.0
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the 'e:\test virtual env\testing\scripts\python.exe -m pip install --upgrade pip' command.

(testing) E:\test virtual env>pip list
Package                   Version
------------------------- ---------
altgraph                  0.17
auto-py-to-exe            2.8.0
bottle                    0.12.19
bottle-websocket          0.2.9
cffi                      1.14.5
Eel                       0.12.4
future                    0.18.2
gevent                    21.1.2
gevent-websocket          0.10.1
greenlet                  1.0.0
pefile                    2019.4.18
pip                       20.2.3
pycparser                 2.20
pyinstaller               4.2
pyinstaller-hooks-contrib 2021.1
pyparsing                 2.4.7
pywin32-ctypes            0.2.0
setuptools                49.2.1
wheel                     0.36.2
whichcraft                0.6.1
zope.event                4.5.0
zope.interface            5.2.0
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the 'e:\test virtual env\testing\scripts\python.exe -m pip install --upgrade pip' command.

(testing) E:\test virtual env>auto-py-to-exe
Traceback (most recent call last):
  File "e:\test virtual env\testing\lib\site-packages\gevent\threadpool.py", line 167, in __run_task
    thread_result.set(func(*args, **kwargs))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 1: invalid continuation byte
2021-03-09T19:30:40Z (<ThreadPoolWorker at 0x1efb363eb40 thread_ident=0x282c threadpool-hub=<Hub at 0x1efb353bd00 thread_ident=0x12cc>>, <built-in function gethostbyaddr>) failed with UnicodeDecodeError

Traceback (most recent call last):
  File "C:\Users\Mélissa\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\Mélissa\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "E:\test virtual env\testing\Scripts\auto-py-to-exe.exe\__main__.py", line 7, in <module>
  File "e:\test virtual env\testing\lib\site-packages\auto_py_to_exe\__main__.py", line 99, in run
    start_ui(logging_level)
  File "e:\test virtual env\testing\lib\site-packages\auto_py_to_exe\__main__.py", line 22, in start_ui
    ui.start(config.ui_open_mode)
  File "e:\test virtual env\testing\lib\site-packages\auto_py_to_exe\ui.py", line 140, in start
    eel.start('index.html', size=(650, 672), port=0)
  File "e:\test virtual env\testing\lib\site-packages\eel\__init__.py", line 164, in start
    run_lambda()
  File "e:\test virtual env\testing\lib\site-packages\eel\__init__.py", line 155, in run_lambda
    return btl.run(
  File "e:\test virtual env\testing\lib\site-packages\bottle.py", line 3137, in run
    server.run(app)
  File "e:\test virtual env\testing\lib\site-packages\bottle_websocket\server.py", line 17, in run
    server.serve_forever()
  File "e:\test virtual env\testing\lib\site-packages\gevent\baseserver.py", line 398, in serve_forever
    self.start()
  File "e:\test virtual env\testing\lib\site-packages\gevent\baseserver.py", line 336, in start
    self.init_socket()
  File "e:\test virtual env\testing\lib\site-packages\gevent\pywsgi.py", line 1546, in init_socket
    self.update_environ()
  File "e:\test virtual env\testing\lib\site-packages\gevent\pywsgi.py", line 1558, in update_environ
    name = socket.getfqdn(address[0])
  File "e:\test virtual env\testing\lib\site-packages\gevent\_socketcommon.py", line 304, in getfqdn
    hostname, aliases, _ = gethostbyaddr(name)
  File "e:\test virtual env\testing\lib\site-packages\gevent\_socketcommon.py", line 276, in gethostbyaddr
    return get_hub().resolver.gethostbyaddr(ip_address)
  File "e:\test virtual env\testing\lib\site-packages\gevent\resolver\thread.py", line 66, in gethostbyaddr
    return self.pool.apply(_socket.gethostbyaddr, args, kwargs)
  File "e:\test virtual env\testing\lib\site-packages\gevent\pool.py", line 161, in apply
    return self.spawn(func, *args, **kwds).get()
  File "src\\gevent\\event.py", line 329, in gevent._gevent_cevent.AsyncResult.get
  File "src\\gevent\\event.py", line 359, in gevent._gevent_cevent.AsyncResult.get
  File "src\\gevent\\event.py", line 347, in gevent._gevent_cevent.AsyncResult.get
  File "src\\gevent\\event.py", line 327, in gevent._gevent_cevent.AsyncResult._raise_exception
  File "e:\test virtual env\testing\lib\site-packages\gevent\_compat.py", line 65, in reraise
    raise value.with_traceback(tb)
  File "e:\test virtual env\testing\lib\site-packages\gevent\threadpool.py", line 167, in __run_task
    thread_result.set(func(*args, **kwargs))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 1: invalid continuation byte

(testing) E:\test virtual env>

bwoodsend

unread,
Mar 10, 2021, 7:37:42 AM3/10/21
to PyInstaller

pip install --upgrade pip needs to be python -m pip install --upgrade pip on Windows. Otherwise the little pip.exe has to overwrite itself whilst it’s still running which Windows won’t allow. Using python -m pip however doesn’t use the pip.exe file.

Traceback (most recent call last):

  File "C:\Users\Mélissa\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\Mélissa\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "E:\test virtual env\testing\Scripts\auto-py-to-exe.exe\__main__.py", line 7, in <module>
  File "e:\test virtual env\testing\lib\site-packages\auto_py_to_exe\__main__.py", line 99, in run
    start_ui(logging_level)

I forgot that a venv still uses the original standard library packages so will still have the é problem there. In which case, venv is probably not enough. Uninstalling and reinstalling Python might be your only option. Bet even that might not do it because it could use paths from the TMP or USERPROFILE environment variables. I guess you could try running as admin. Or creating a new login.​

Ideally the traceback would be more helpful. You could try adding some print statements in e:\test virtual env\testing\lib\site-packages\gevent\threadpool.py to find out exactly which filename it's not happy with.

Mélissa Ch.

unread,
Mar 11, 2021, 2:58:18 PM3/11/21
to PyInstaller
Hi bwoodsend,
Ok for pip, i wil do this in the future. Thank for the tip! 

For the venv, yes i have see they use the original library package. I have de-installed python and ré-installed in my other disck, but the same error get out. I have  try whit a new user(admin) and the same problem come. I have erase the user Mélissa (but fogot to save all my web link and i don't syncronise my acount, so it lost) and try it, but alway's the same error.
So i have decide to bring back my computer to the place i have buy it, they will install Windows like a fresh new installation and whitout a user name whit a é, upper case, or space...  (hope this will work a last). So when i wil receive it, i will re- install all's my programmes and Ide in my second drive. To be sûre nothing pass via the C:\ drive and Windows, and re-try again. 

I will let you know the result soon. I suppose to receive it fryday or thusday plus the time to re-install all the stuff. It may have a little delais.
Thank a lot!

Mélissa Ch.

unread,
Mar 14, 2021, 9:31:03 AM3/14/21
to PyInstaller
Hi bwoodsend,
Finally after all, it work. I have a new fresh windows install, without a "é" space, upper case name user.  i can run auto-py-to-exe. they work well, went i convert in a terminal mode, but when i convert to a "window Bases"  they have a error message. 
See picture below.
i have try whit another's python programme i made for testing and learning and the same error appear. I have made some search but find nothing with auto-py-to-exe, all with pyinstaller using on terminal but they look to have the same issue. 
All the library of python are up to date,  i use python 3.6 on the terminal, but with my ide(PyCharm) i have 3.9, 3.7 and 3.6 depend on what project i work. Because they have some library who dosen't work on 3.9 and 3.7. 
fist warning.pngsecond warning.png

third warning.png
Thank!

bwoodsend

unread,
Mar 15, 2021, 3:39:12 AM3/15/21
to PyInstaller

Ughh that can be anything. You’re building in windowed mode which makes it very hard to understand problems. Remove any -w, --windowed or --no-console flags from your pyinstaller command then try again. Run the program from terminal. It’ll still break but the error will be easier to see.

Brénainn

Mélissa Ch.

unread,
Mar 15, 2021, 9:35:20 AM3/15/21
to PyInstaller
Hi Brénainn,
ok i use auto-py-to-exe to transform my .Py file into a .exe file. and when i do it not windowed( the result is on a terminal when i click on the .exe file) it work perfectly, but when i try to made it windowed is there the problem come. I saw on the web a lot of peoples who have the same issue, but nothing seam to be solve. Some have go into the Pyinstaller and modifie some code line inside, but it seam too risky, and i not welling enough and experimented to play this card. So i wondered if they have other issue or solution. Or maybe another "programme" to do the same to transform the .Py file .... I have hear of NSIS or Py2exe.... This is the exit result of auto-py-to-exe in windowed mode if this can help.

Running auto-py-to-exe v2.8.0

Building directory: C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y

Provided command: pyinstaller --noconfirm --onedir --windowed --debug "all"  "D:/PycharmProjects/script/game main.py"

Recursion Limit is set to 5000

Executing: pyinstaller --noconfirm --onedir --windowed --debug all D:/PycharmProjects/script/game main.py --distpath C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y\application --workpath C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y\build --specpath C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y



97273 INFO: PyInstaller: 4.2

97286 INFO: Python: 3.6.8

97302 INFO: Platform: Windows-10-10.0.19041-SP0

97319 INFO: wrote C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y\game main.spec

97346 INFO: UPX is not available.

97368 INFO: Extending PYTHONPATH with paths
['D:\\PycharmProjects\\script',
 'C:\\Users\\HP\\AppData\\Local\\Temp\\tmpt76yjg9y']

97843 INFO: checking Analysis

97859 INFO: Building Analysis because Analysis-00.toc is non existent

97874 INFO: Initializing module dependency graph...

97934 INFO: Caching module graph hooks...

98016 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.

98098 INFO: Analyzing base_library.zip ...

102775 INFO: Caching module dependency graph...

102880 INFO: running Analysis Analysis-00.toc

102937 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by d:\programme1\python36\python.exe

103077 INFO: Analyzing D:\PycharmProjects\script\game main.py

103248 INFO: Processing module hooks...

103262 INFO: Loading module hook 'hook-difflib.py' from 'd:\\programme1\\python36\\lib\\site-packages\\PyInstaller\\hooks'...

103317 INFO: Excluding import of doctest from module difflib

103333 INFO: Loading module hook 'hook-encodings.py' from 'd:\\programme1\\python36\\lib\\site-packages\\PyInstaller\\hooks'...

103438 INFO: Loading module hook 'hook-heapq.py' from 'd:\\programme1\\python36\\lib\\site-packages\\PyInstaller\\hooks'...

103455 INFO: Excluding import of doctest from module heapq

103470 INFO: Loading module hook 'hook-pickle.py' from 'd:\\programme1\\python36\\lib\\site-packages\\PyInstaller\\hooks'...

103501 INFO: Excluding import of argparse from module pickle

103530 INFO: Loading module hook 'hook-xml.py' from 'd:\\programme1\\python36\\lib\\site-packages\\PyInstaller\\hooks'...

103840 INFO: Loading module hook 'hook-_tkinter.py' from 'd:\\programme1\\python36\\lib\\site-packages\\PyInstaller\\hooks'...

104046 INFO: checking Tree

104077 INFO: Building Tree because Tree-00.toc is non existent

104081 INFO: Building Tree Tree-00.toc

104302 INFO: checking Tree

104323 INFO: Building Tree because Tree-01.toc is non existent

104339 INFO: Building Tree Tree-01.toc

104437 INFO: checking Tree

104453 INFO: Building Tree because Tree-02.toc is non existent

104484 INFO: Building Tree Tree-02.toc

104519 INFO: Looking for ctypes DLLs

104523 INFO: Analyzing run-time hooks ...

104533 INFO: Including run-time hook 'd:\\programme1\\python36\\lib\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth__tkinter.py'

104589 INFO: Looking for dynamic libraries

104829 INFO: Looking for eggs

104840 INFO: Using Python library d:\programme1\python36\python36.dll

104861 INFO: Found binding redirects: 
[]

105310 INFO: Warnings written to C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y\build\game main\warn-game main.txt

105369 INFO: Graph cross-reference written to C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y\build\game main\xref-game main.html

105423 INFO: checking PYZ

105469 INFO: Building PYZ because PYZ-00.toc is non existent

105494 INFO: Building PYZ (ZlibArchive) C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y\build\game main\PYZ-00.pyz

105512 INFO: Building PYZ (ZlibArchive) C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y\build\game main\PYZ-00.pyz completed successfully.

105543 INFO: checking PKG

105552 INFO: Building PKG because PKG-00.toc is non existent

105564 INFO: Building PKG (CArchive) PKG-00.pkg

105661 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.

105686 INFO: Bootloader d:\programme1\python36\lib\site-packages\PyInstaller\bootloader\Windows-64bit\runw_d.exe

105698 INFO: checking EXE

105734 INFO: Building EXE because EXE-00.toc is non existent

105749 INFO: Building EXE from EXE-00.toc

105848 INFO: Copying icons from ['d:\\programme1\\python36\\lib\\site-packages\\PyInstaller\\bootloader\\images\\icon-windowed.ico']

105924 INFO: Writing RT_GROUP_ICON 0 resource with 104 bytes

105942 INFO: Writing RT_ICON 1 resource with 3752 bytes

105959 INFO: Writing RT_ICON 2 resource with 2216 bytes

105975 INFO: Writing RT_ICON 3 resource with 1384 bytes

105988 INFO: Writing RT_ICON 4 resource with 38188 bytes

106004 INFO: Writing RT_ICON 5 resource with 9640 bytes

106032 INFO: Writing RT_ICON 6 resource with 4264 bytes

106047 INFO: Writing RT_ICON 7 resource with 1128 bytes

106072 INFO: Appending archive to EXE C:\Users\HP\AppData\Local\Temp\tmpt76yjg9y\build\game main\game main.exe

106159 INFO: Building EXE from EXE-00.toc completed successfully.

106176 INFO: checking COLLECT

106202 INFO: Building COLLECT because COLLECT-00.toc is non existent

106235 INFO: Building COLLECT COLLECT-00.toc

111830 INFO: Building COLLECT COLLECT-00.toc completed successfully.



Moving project to: D:\test\Nouveau dossier

Complete.


Thank for helping.

bwoodsend

unread,
Mar 15, 2021, 12:16:27 PM3/15/21
to PyInstaller

Are you using subprocess anywhere in your code (possibly indirectly through another library)? That’s the usual cause for console mode to work but windowed to break. You need explicitly set all 3 stdin, stdout and stderr to either subprocess.DEVNULL or subprocess.PIPE.

Mélissa Ch.

unread,
Mar 16, 2021, 5:12:18 AM3/16/21
to PyInstaller
Good evening bwoodsend,
ok for "subprocess" directely not, is the fist time i saw this.  i don't even know what it is. So like you said indirectly they have a lot of chance.  Also can you explain where i have to set these 3 thing. "stdin,  stdout and stderr" and the subprocess.DEVNULL or subprocess.PIPE.
Is just tree month now,  i have begin in programmation whit Python, i do it by myself, so they have a lot of thing or way i don't know for now... So i appreciate a lot your help and patience.

Thank a lot.

bwoodsend

unread,
Mar 16, 2021, 11:29:10 AM3/16/21
to PyInstaller

Subprocess is part of the standard library. As for indirectly using it - If you put:

import sys
sys.modules["subprocess"] = None

at the top of your code then run it normally in Python, do you get an error saying ModuleNotFoundError: import of subprocess halted; None in sys.modules? If not, are you able to share your code?

Mélissa Ch.

unread,
Mar 17, 2021, 12:10:18 PM3/17/21
to PyInstaller
Hi bwoodsend,
I have try the code you send to me in 3 or 4 programme and no error come out. 
Yes i am able to share a code. This one is the shorter whit a module i have made. It is the one that i have made in  a formation video i fallowing to try auto-py-to-exe. But the result is the same whit other's code i have made and they have more module i have made.  This code are in Python 3.9 and i use PyCharm 2020.3 commutiny for idle.

The main code:

import tkinter
import game

import sys

sys.modules["subprocess"] = None


def open():
    game.run()


app = tkinter.Tk()
app.title("Mon app tkinter")
app.geometry("300x100")

lb = tkinter.Label(app, text="Cliquer sur le bouton...").pack()
bt = tkinter.Button(app, text="Hack tkinter", command=open).pack()

app.mainloop()

The module code:

import pygame


def run():
    pygame.init()

    screen = pygame.display.set_mode([400, 400])

    launched = True
    while launched:
            for event in pygame.event.get():
                   if event.type == pygame.QUIT:
                       launched = False

            screen.fill((12, 25, 38))
            pygame.draw.line(screen, (128, 25, 240), [10, 10], [280, 310], 3)
            pygame.display.flip()

    pygame.quit()

Thank a lot!

bwoodsend

unread,
Mar 18, 2021, 4:04:46 AM3/18/21
to PyInstaller

Found it! It’s the --debug all which breaks it. It can’t be used with --noconsole. This is fixed in pyinstaller 5.0 but we haven’t released it yet. So you can either installer the development version of pyinstaller from github:

pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip

Or get rid of debug mode:

pyinstaller --noconfirm --onedir --windowed "game main.py"

Mélissa C

unread,
Mar 18, 2021, 3:11:42 PM3/18/21
to pyins...@googlegroups.com
Hi bwoodsend,
Finally it work! :)  Thank a lot!    I have pip install the development bundle and it work. I have try whit the code i share whit you, and some other bigger and 4 module i have made and everything run ok.  
At this time the two only thing who they don't work  1) is went i have a library for the voice like pyttsx3, the fist time it said don't find the driver. I made a update, and rebegin the auto-py-to-exe this time it open the .exe file( no error message) but no voice come out when i push the button.  The 2) is when i have a .ico picture in my code, i put the path in auto-py-to-exe for the .ico file, but when i run the .exe file they have a error said they don't find the .ico file. But when i don't put the .ico file in my code the .exe file work perfectly. 

This is the code for a test whit pyttsx3. 
Thank a lot for your time i appreciate very mush.

from tkinter import *
import pyttsx3


root = Tk()
root.title("Voices test for Mélissa A.I. - Other Files")
root.geometry("500x450")


def talk():
engine = pyttsx3.init()
engine.setProperty("rate", 200)
voices = engine.getProperty("voices")
engine.setProperty("voice", voices[2].id)
engine.say(my_entry.get())
engine.runAndWait()
my_entry.delete(0, END)


my_entry = Entry(root, font=("Helvetica", 20))
my_entry.pack(pady=20)

my_button = Button(root, text="Speak", command=talk)
my_button.pack(pady=20)

root.mainloop()

--
You received this message because you are subscribed to a topic in the Google Groups "PyInstaller" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyinstaller/IJXFdvIs--0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/e84cdaba-d5bd-4a9e-95e1-1409418006b3n%40googlegroups.com.

Mélissa C

unread,
Mar 19, 2021, 5:04:20 AM3/19/21
to pyins...@googlegroups.com
Hi again bwoodsend,
I have found how to do with the image and music in auto-py-to-exe, i have to put the path in the additional files, folders,... and it work.
 But for the voice thing i can't find how? i have try some configuration of auto-py-to-exe but the same thig is going on.
thank a lot!

bwoodsend

unread,
Mar 19, 2021, 11:56:40 AM3/19/21
to PyInstaller

The voice thing is just a ModuleNotFoundError which you always fix with a --hiddenimport. In this case use --hiddenimport=pyttsx3.drivers.sapi5 (or put pyttsx3.drivers.sapi5 in the Advanced > —hiddenimport box in autopytoexe).

Mélissa C

unread,
Mar 20, 2021, 6:44:34 AM3/20/21
to pyins...@googlegroups.com
Hi bwoodsend,
Thank a lot, everything work perfectly.  So if i understand well, every time i use a library whit a voice thing/use... pyttsx3 or other, i have to find the xxxx.drivers.sapi5 and put in the hidden import of auto-py-to-exe or in the terminal with the ligne you give to me. 
For my curiosity, my learning and also if you have time. They have a site who i can find all these error message and how to deal whit it? ( i know stack overflow and GitHub, not familiar whit this one for now) And or also explain how to wrote on a terminal with Pyinstaller, i mean what to wrote, for exemple, for a picture, a folder in particular, etc., Because now i using auto-py-to-exe but maybe for some program it will be more accurate to use Pyinstaller instead. 

Thank a lot for your patience, and the time you have put to help me. I appreciate a lot.


Le ven. 19 mars 2021 à 11:56, bwoodsend <bwoo...@gmail.com> a écrit :

The voice thing is just a ModuleNotFoundError which you always fix with a --hiddenimport. In this case use --hiddenimport=pyttsx3.drivers.sapi5 (or put pyttsx3.drivers.sapi5 in the Advanced > —hiddenimport box in autopytoexe).

--
You received this message because you are subscribed to a topic in the Google Groups "PyInstaller" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyinstaller/IJXFdvIs--0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyinstaller...@googlegroups.com.

bwoodsend

unread,
Mar 20, 2021, 4:37:09 PM3/20/21
to PyInstaller

So if i understand well, every time i use a library whit a voice thing/use… pyttsx3 or other, i have to find the xxxx.drivers.sapi5 and put in the hidden import…

No, it’s specific to pyttsx3. Very specifically, this line of code uses importlib instead of just import which breaks PyInstaller and requires special --hiddenimport. And it’s different on Linux of macOS. I’ll write a hook for it. It seems to be quite popular.

They have a site who i can find all these error message and how to deal whit it?

Not really. I’m supposed to be writing it. I haven’t got very far.

Because now i using auto-py-to-exe but maybe for some program it will be more accurate to use Pyinstaller instead.

auto-py-toexe is just PyInstaller with buttons. It shouldn’t matter which you use. I prefer the command line because it’s quicker and I don’t like using the mouse but that’s just me…

Mélissa C

unread,
Mar 21, 2021, 5:17:01 AM3/21/21
to pyins...@googlegroups.com
Hi bwoodsend

Thank for the link's , and the explication that go with my last questions.
Also all yours explications was very clear and easy to fallow, understand.  

Thank a lot for all your time and help. 


--
You received this message because you are subscribed to a topic in the Google Groups "PyInstaller" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyinstaller/IJXFdvIs--0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyinstaller...@googlegroups.com.

bwoodsend

unread,
Mar 21, 2021, 7:30:50 AM3/21/21
to PyInstaller

I’ve just fixed pyttsx3 compatibility in #101. In a couple of weeks you will be able to pip install "pyinstaller-hooks-contrib>=2021.2" but until then you can use the Github version: pip install -U https://github.com/pyinstaller/pyinstaller-hooks-contrib/archive/refs/heads/master.zip. Add the --clean option the first time you run it if you’re not using auto-py-to-exe. It should then work on all platforms without using --hiddenimport.

Mélissa C

unread,
Mar 22, 2021, 3:53:04 AM3/22/21
to pyins...@googlegroups.com
Hi bwoodsend,

Thank you very mush. I have pip install -U the github file you give to me.  i let you the result. But after i'v made a test whit the same code i send to you, and they don't work, so i do it another time whit the hiddenimport and they work. I used auto-py-to-exe, so i think this work if i use the terminal, or i miss something! 
this is the result on the terminal of the pip install:

Microsoft Windows [version 10.0.19042.867]
(c) 2020 Microsoft Corporation. Tous droits réservés.

C:\WINDOWS\system32>pip install -U https://github.com/pyinstaller/pyinstaller-hooks-contrib/archive/refs/heads/master.zip
Collecting https://github.com/pyinstaller/pyinstaller-hooks-contrib/archive/refs/heads/master.zip
  Downloading https://github.com/pyinstaller/pyinstaller-hooks-contrib/archive/refs/heads/master.zip
     \ 214 kB 1.7 MB/s

  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done

C:\WINDOWS\system32>


I will check in a couple week to install the other version when it will be available.

Thank you very much!




Le dim. 21 mars 2021 à 07:30, bwoodsend <bwoo...@gmail.com> a écrit :

I’ve just fixed pyttsx3 compatibility in #101. In a couple of weeks you will be able to pip install "pyinstaller-hooks-contrib>=2021.2" but until then you can use the Github version: pip install -U https://github.com/pyinstaller/pyinstaller-hooks-contrib/archive/refs/heads/master.zip. Add the --clean option the first time you run it if you’re not using auto-py-to-exe. It should then work on all platforms without using --hiddenimport.

--
You received this message because you are subscribed to a topic in the Google Groups "PyInstaller" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyinstaller/IJXFdvIs--0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyinstaller...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages