[GH-ISSUE #162] auto-py-to-exe stuck while one file compiling the project #148

Closed
opened 2026-02-26 12:20:38 +03:00 by kerem · 6 comments
Owner

Originally created by @DavidZalevsky on GitHub (Mar 25, 2021).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/162

I got an issue while using auto-py-to-exe for one .exe packing the project that uses pywin32 library.

While one file compiling program is stuck forever at "INFO: Loading module hook 'hook-gevent.py'"

Full output code:

Running auto-py-to-exe v2.8.0
Building directory: C:\Users\Dawid\AppData\Local\Temp\tmpwf85y5_8
Provided command: pyinstaller --noconfirm --onedir --console  "C:/Users/Dawid/PycharmProjects/Aurora/prototype.py"
Recursion Limit is set to 5000
Executing: pyinstaller --noconfirm --onedir --console C:/Users/Dawid/PycharmProjects/Aurora/prototype.py --distpath C:\Users\Dawid\AppData\Local\Temp\tmpwf85y5_8\application --workpath C:\Users\Dawid\AppData\Local\Temp\tmpwf85y5_8\build --specpath C:\Users\Dawid\AppData\Local\Temp\tmpwf85y5_8

6153 INFO: PyInstaller: 4.2
6167 INFO: Python: 3.9.0
6169 INFO: Platform: Windows-10-10.0.19041-SP0
6182 INFO: wrote C:\Users\Dawid\AppData\Local\Temp\tmpwf85y5_8\prototype.spec
6191 INFO: UPX is not available.
6199 INFO: Extending PYTHONPATH with paths
['C:\\Users\\Dawid\\PycharmProjects\\Aurora',
 'C:\\Users\\Dawid\\AppData\\Local\\Temp\\tmpwf85y5_8']
6211 INFO: checking Analysis
6229 INFO: Building Analysis because Analysis-00.toc is non existent
6245 INFO: Initializing module dependency graph...
6264 INFO: Caching module graph hooks...
6275 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
6280 INFO: Analyzing base_library.zip ...
8796 INFO: Processing pre-find module path hook distutils from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'.
8811 INFO: distutils: retargeting to non-venv dir 'C:\\Users\\Dawid\\AppData\\Local\\Programs\\Python\\Python39\\lib'
10870 INFO: Caching module dependency graph...
10969 INFO: running Analysis Analysis-00.toc
10985 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by c:\users\dawid\pycharmprojects\aurora_3\scripts\python.exe
11006 INFO: Analyzing C:\Users\Dawid\PycharmProjects\Aurora\prototype.py
13061 INFO: Processing pre-find module path hook site from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-site.py'.
13074 INFO: site: retargeting to fake-dir 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\PyInstaller\\fake-modules'
16525 INFO: Processing module hooks...
16528 INFO: Loading module hook 'hook-eel.py' from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
16612 INFO: Loading module hook 'hook-pycparser.py' from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
16623 INFO: Loading module hook 'hook-win32ctypes.core.py' from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
16814 INFO: Loading module hook 'hook-difflib.py' from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\PyInstaller\\hooks'...
16819 INFO: Excluding import of doctest from module difflib
16822 INFO: Loading module hook 'hook-distutils.py' from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\PyInstaller\\hooks'...
16826 INFO: Loading module hook 'hook-distutils.util.py' from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\PyInstaller\\hooks'...
16842 INFO: Excluding import of lib2to3.refactor from module distutils.util
16844 INFO: Loading module hook 'hook-encodings.py' from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\PyInstaller\\hooks'...
16930 INFO: Loading module hook 'hook-gevent.py' from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\PyInstaller\\hooks'...

Library used:
-auto-py-win-exe 2.8.0
-pyinstaller 4.2
-pywin32 300

Compiler:
Python 3.9

I found that the last working pywin32 library version is 226. It's definitely a problem with auto-py-to-exe because I tried to one file compile only with pyinstaller 4.2 and there wasn't any problem.

Originally created by @DavidZalevsky on GitHub (Mar 25, 2021). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/162 I got an issue while using auto-py-to-exe for one .exe packing the project that uses pywin32 library. While one file compiling program is stuck forever at "INFO: Loading module hook 'hook-gevent.py'" Full output code: ``` Running auto-py-to-exe v2.8.0 Building directory: C:\Users\Dawid\AppData\Local\Temp\tmpwf85y5_8 Provided command: pyinstaller --noconfirm --onedir --console "C:/Users/Dawid/PycharmProjects/Aurora/prototype.py" Recursion Limit is set to 5000 Executing: pyinstaller --noconfirm --onedir --console C:/Users/Dawid/PycharmProjects/Aurora/prototype.py --distpath C:\Users\Dawid\AppData\Local\Temp\tmpwf85y5_8\application --workpath C:\Users\Dawid\AppData\Local\Temp\tmpwf85y5_8\build --specpath C:\Users\Dawid\AppData\Local\Temp\tmpwf85y5_8 6153 INFO: PyInstaller: 4.2 6167 INFO: Python: 3.9.0 6169 INFO: Platform: Windows-10-10.0.19041-SP0 6182 INFO: wrote C:\Users\Dawid\AppData\Local\Temp\tmpwf85y5_8\prototype.spec 6191 INFO: UPX is not available. 6199 INFO: Extending PYTHONPATH with paths ['C:\\Users\\Dawid\\PycharmProjects\\Aurora', 'C:\\Users\\Dawid\\AppData\\Local\\Temp\\tmpwf85y5_8'] 6211 INFO: checking Analysis 6229 INFO: Building Analysis because Analysis-00.toc is non existent 6245 INFO: Initializing module dependency graph... 6264 INFO: Caching module graph hooks... 6275 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict. 6280 INFO: Analyzing base_library.zip ... 8796 INFO: Processing pre-find module path hook distutils from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'. 8811 INFO: distutils: retargeting to non-venv dir 'C:\\Users\\Dawid\\AppData\\Local\\Programs\\Python\\Python39\\lib' 10870 INFO: Caching module dependency graph... 10969 INFO: running Analysis Analysis-00.toc 10985 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable required by c:\users\dawid\pycharmprojects\aurora_3\scripts\python.exe 11006 INFO: Analyzing C:\Users\Dawid\PycharmProjects\Aurora\prototype.py 13061 INFO: Processing pre-find module path hook site from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-site.py'. 13074 INFO: site: retargeting to fake-dir 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\PyInstaller\\fake-modules' 16525 INFO: Processing module hooks... 16528 INFO: Loading module hook 'hook-eel.py' from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 16612 INFO: Loading module hook 'hook-pycparser.py' from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 16623 INFO: Loading module hook 'hook-win32ctypes.core.py' from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 16814 INFO: Loading module hook 'hook-difflib.py' from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\PyInstaller\\hooks'... 16819 INFO: Excluding import of doctest from module difflib 16822 INFO: Loading module hook 'hook-distutils.py' from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\PyInstaller\\hooks'... 16826 INFO: Loading module hook 'hook-distutils.util.py' from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\PyInstaller\\hooks'... 16842 INFO: Excluding import of lib2to3.refactor from module distutils.util 16844 INFO: Loading module hook 'hook-encodings.py' from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\PyInstaller\\hooks'... 16930 INFO: Loading module hook 'hook-gevent.py' from 'c:\\users\\dawid\\pycharmprojects\\aurora_3\\lib\\site-packages\\PyInstaller\\hooks'... ``` Library used: -auto-py-win-exe 2.8.0 -pyinstaller 4.2 -pywin32 300 Compiler: Python 3.9 I found that the last working pywin32 library version is 226. It's definitely a problem with auto-py-to-exe because I tried to one file compile only with pyinstaller 4.2 and there wasn't any problem.
kerem 2026-02-26 12:20:38 +03:00
  • closed this issue
  • added the
    Stale
    label
Author
Owner

@brentvollebregt commented on GitHub (Mar 29, 2021):

I know gevent is a dependency of eel which is what auto-py-to-exe's UI uses - potentially this is causing conflict? If that is true, there may not be much that I can do.

I'll see if I get the same results

<!-- gh-comment-id:809086620 --> @brentvollebregt commented on GitHub (Mar 29, 2021): I know gevent is a dependency of eel which is what auto-py-to-exe's UI uses - potentially this is causing conflict? If that is true, there may not be much that I can do. I'll see if I get the same results
Author
Owner

@brentvollebregt commented on GitHub (Mar 29, 2021):

Using auto-py-to-exe: 2.8.0 and the script,

import win32api

monitors = win32api.EnumDisplayMonitors()

for monitor in monitors:
    print(monitor[2])

I was able to use both pywin32 228 and 300 and run the output executable on my machine.

@DavidZalevsky could you provide some more info on a reproducible scenario?

<!-- gh-comment-id:809102041 --> @brentvollebregt commented on GitHub (Mar 29, 2021): Using auto-py-to-exe: 2.8.0 and the script, ```python import win32api monitors = win32api.EnumDisplayMonitors() for monitor in monitors: print(monitor[2]) ``` I was able to use both pywin32 228 and 300 and run the output executable on my machine. @DavidZalevsky could you provide some more info on a reproducible scenario?
Author
Owner

@sdas1983 commented on GitHub (Apr 1, 2021):

Hi,

I am facing the similar issue.
pandas version : 1.2.3

Here is a small reproducible example:

import pandas as pd
from time import sleep
loading = 'LOADING...'
for i in range(10):
    print(loading[i], sep=' ', end=' ', flush=True); sleep(0.5)

input("\nHit ENTER to Continue")

Here I have imported pandas just to reproduce the error, as my main code is very long and pandas is mainly used in my main code. Except pandas auto-py-to-exe can build the exe easily for this small code.

Here is the log of auto-py-to-exe:

Running auto-py-to-exe v2.8.0
Building directory: C:\Users\e92066\AppData\Local\Temp\tmpb589umbs
Provided command: pyinstaller --noconfirm --onefile --console  "E:/Softwares/Python Web Scrapping/test2.py"
Recursion Limit is set to 5000
Executing: pyinstaller --noconfirm --onefile --console E:/Softwares/Python Web Scrapping/test2.py --distpath C:\Users\e92066\AppData\Local\Temp\tmpb589umbs\application --workpath C:\Users\e92066\AppData\Local\Temp\tmpb589umbs\build --specpath C:\Users\e92066\AppData\Local\Temp\tmpb589umbs

17658 INFO: PyInstaller: 4.2
17662 INFO: Python: 3.7.6
17666 INFO: Platform: Windows-10-10.0.18362-SP0
17670 INFO: wrote C:\Users\e92066\AppData\Local\Temp\tmpb589umbs\test2.spec
17705 INFO: UPX is not available.
17708 INFO: Extending PYTHONPATH with paths
['E:\\Softwares\\Python Web Scrapping',
 'C:\\Users\\e92066\\AppData\\Local\\Temp\\tmpb589umbs']
17986 INFO: checking Analysis
17989 INFO: Building Analysis because Analysis-00.toc is non existent
17991 INFO: Initializing module dependency graph...
17998 INFO: Caching module graph hooks...
18102 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
18129 INFO: Analyzing base_library.zip ...
23457 INFO: Caching module dependency graph...
23545 INFO: running Analysis Analysis-00.toc
23576 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
  required by c:\program files\python37\python.exe
24216 INFO: Analyzing E:\Softwares\Python Web Scrapping\test2.py
27271 INFO: Processing pre-find module path hook distutils from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'.
27295 INFO: distutils: retargeting to non-venv dir 'c:\\program files\\python37\\lib'
33463 INFO: Processing pre-find module path hook site from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-site.py'.
33480 INFO: site: retargeting to fake-dir 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\fake-modules'
35521 INFO: Processing pre-safe import module hook setuptools.extern.six.moves from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-setuptools.extern.six.moves.py'.
50999 INFO: Processing pre-safe import module hook six.moves from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-six.moves.py'.
58093 INFO: Processing pre-safe import module hook urllib3.packages.six.moves from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-urllib3.packages.six.moves.py'.
75583 INFO: Processing pre-safe import module hook win32com from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\pre_safe_import_module\\hook-win32com.py'.
95005 INFO: Processing module hooks...
95014 INFO: Loading module hook 'hook-appdirs.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
95024 INFO: Excluding import of win32com.shell.shell from module appdirs
95028 INFO: Excluding import of win32com.shell.shellcon from module appdirs
95031 INFO: Excluding import of win32com.shell from module appdirs
95036 INFO: Loading module hook 'hook-bcrypt.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
95039 INFO: Loading module hook 'hook-certifi.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
95057 INFO: Loading module hook 'hook-cryptography.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
95789 INFO: Loading module hook 'hook-docutils.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
98408 INFO: Loading module hook 'hook-eel.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
98742 INFO: Loading module hook 'hook-IPython.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
99198 INFO: Excluding import of PySide from module IPython.external.qt_loaders
99210 INFO: Excluding import of PyQt4 from module IPython.external.qt_loaders
99219 INFO: Excluding import of matplotlib.backend_bases from module IPython.core.pylabtools
99223 INFO: Excluding import of matplotlib.pyplot from module IPython.core.pylabtools
99228 INFO: Excluding import of matplotlib from module IPython.core.pylabtools
99232 INFO: Excluding import of matplotlib.figure from module IPython.core.pylabtools
99236 INFO: Excluding import of matplotlib._pylab_helpers from module IPython.core.pylabtools
99244 INFO: Excluding import of tkinter from module IPython.lib.clipboard
99255 INFO: Excluding import of PyQt5.QtCore from module IPython.external.qt_loaders
99257 INFO: Excluding import of PyQt5.sip from module IPython.external.qt_loaders
99261 INFO: Excluding import of PyQt5.QtSvg from module IPython.external.qt_loaders
99267 INFO: Excluding import of PyQt5.QtGui from module IPython.external.qt_loaders
99269 INFO: Excluding import of PyQt5.QtWidgets from module IPython.external.qt_loaders
99273 INFO: Excluding import of PyQt5 from module IPython.external.qt_loaders
99278 INFO: Loading module hook 'hook-jedi.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
100396 INFO: Loading module hook 'hook-jinja2.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
100433 INFO: Loading module hook 'hook-jsonschema.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
100486 INFO: Loading module hook 'hook-lxml.etree.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
100491 INFO: Loading module hook 'hook-lxml.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
101144 INFO: Loading module hook 'hook-nacl.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
101167 INFO: Loading module hook 'hook-nbconvert.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
101327 INFO: Loading module hook 'hook-nbformat.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
101401 INFO: Loading module hook 'hook-notebook.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
105578 INFO: Loading module hook 'hook-openpyxl.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
105759 INFO: Loading module hook 'hook-pycparser.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
105763 INFO: Loading module hook 'hook-pytest.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
107137 INFO: Loading module hook 'hook-pythoncom.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
107594 INFO: Loading module hook 'hook-pywintypes.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
108088 INFO: Loading module hook 'hook-regex.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
108092 INFO: Loading module hook 'hook-win32com.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
108794 INFO: Loading module hook 'hook-win32ctypes.core.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
109038 INFO: Loading module hook 'hook-zmq.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
109313 INFO: Loading module hook 'hook-babel.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks'...
109519 INFO: Loading module hook 'hook-difflib.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks'...
109540 INFO: Excluding import of doctest from module difflib
109545 INFO: Loading module hook 'hook-distutils.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks'...
109556 INFO: Loading module hook 'hook-distutils.util.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks'...
109569 INFO: Excluding import of lib2to3.refactor from module distutils.util
109575 INFO: Loading module hook 'hook-encodings.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks'...
109646 INFO: Loading module hook 'hook-gevent.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks'...

After this auto-py-to-exe get stuck here.
Please help.

<!-- gh-comment-id:811819488 --> @sdas1983 commented on GitHub (Apr 1, 2021): Hi, I am facing the similar issue. pandas version : 1.2.3 Here is a small reproducible example: ``` import pandas as pd from time import sleep loading = 'LOADING...' for i in range(10): print(loading[i], sep=' ', end=' ', flush=True); sleep(0.5) input("\nHit ENTER to Continue") ``` Here I have imported pandas just to reproduce the error, as my main code is very long and pandas is mainly used in my main code. Except pandas auto-py-to-exe can build the exe easily for this small code. Here is the log of auto-py-to-exe: ``` Running auto-py-to-exe v2.8.0 Building directory: C:\Users\e92066\AppData\Local\Temp\tmpb589umbs Provided command: pyinstaller --noconfirm --onefile --console "E:/Softwares/Python Web Scrapping/test2.py" Recursion Limit is set to 5000 Executing: pyinstaller --noconfirm --onefile --console E:/Softwares/Python Web Scrapping/test2.py --distpath C:\Users\e92066\AppData\Local\Temp\tmpb589umbs\application --workpath C:\Users\e92066\AppData\Local\Temp\tmpb589umbs\build --specpath C:\Users\e92066\AppData\Local\Temp\tmpb589umbs 17658 INFO: PyInstaller: 4.2 17662 INFO: Python: 3.7.6 17666 INFO: Platform: Windows-10-10.0.18362-SP0 17670 INFO: wrote C:\Users\e92066\AppData\Local\Temp\tmpb589umbs\test2.spec 17705 INFO: UPX is not available. 17708 INFO: Extending PYTHONPATH with paths ['E:\\Softwares\\Python Web Scrapping', 'C:\\Users\\e92066\\AppData\\Local\\Temp\\tmpb589umbs'] 17986 INFO: checking Analysis 17989 INFO: Building Analysis because Analysis-00.toc is non existent 17991 INFO: Initializing module dependency graph... 17998 INFO: Caching module graph hooks... 18102 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict. 18129 INFO: Analyzing base_library.zip ... 23457 INFO: Caching module dependency graph... 23545 INFO: running Analysis Analysis-00.toc 23576 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable required by c:\program files\python37\python.exe 24216 INFO: Analyzing E:\Softwares\Python Web Scrapping\test2.py 27271 INFO: Processing pre-find module path hook distutils from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'. 27295 INFO: distutils: retargeting to non-venv dir 'c:\\program files\\python37\\lib' 33463 INFO: Processing pre-find module path hook site from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-site.py'. 33480 INFO: site: retargeting to fake-dir 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\fake-modules' 35521 INFO: Processing pre-safe import module hook setuptools.extern.six.moves from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-setuptools.extern.six.moves.py'. 50999 INFO: Processing pre-safe import module hook six.moves from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-six.moves.py'. 58093 INFO: Processing pre-safe import module hook urllib3.packages.six.moves from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-urllib3.packages.six.moves.py'. 75583 INFO: Processing pre-safe import module hook win32com from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\pre_safe_import_module\\hook-win32com.py'. 95005 INFO: Processing module hooks... 95014 INFO: Loading module hook 'hook-appdirs.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 95024 INFO: Excluding import of win32com.shell.shell from module appdirs 95028 INFO: Excluding import of win32com.shell.shellcon from module appdirs 95031 INFO: Excluding import of win32com.shell from module appdirs 95036 INFO: Loading module hook 'hook-bcrypt.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 95039 INFO: Loading module hook 'hook-certifi.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 95057 INFO: Loading module hook 'hook-cryptography.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 95789 INFO: Loading module hook 'hook-docutils.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 98408 INFO: Loading module hook 'hook-eel.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 98742 INFO: Loading module hook 'hook-IPython.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 99198 INFO: Excluding import of PySide from module IPython.external.qt_loaders 99210 INFO: Excluding import of PyQt4 from module IPython.external.qt_loaders 99219 INFO: Excluding import of matplotlib.backend_bases from module IPython.core.pylabtools 99223 INFO: Excluding import of matplotlib.pyplot from module IPython.core.pylabtools 99228 INFO: Excluding import of matplotlib from module IPython.core.pylabtools 99232 INFO: Excluding import of matplotlib.figure from module IPython.core.pylabtools 99236 INFO: Excluding import of matplotlib._pylab_helpers from module IPython.core.pylabtools 99244 INFO: Excluding import of tkinter from module IPython.lib.clipboard 99255 INFO: Excluding import of PyQt5.QtCore from module IPython.external.qt_loaders 99257 INFO: Excluding import of PyQt5.sip from module IPython.external.qt_loaders 99261 INFO: Excluding import of PyQt5.QtSvg from module IPython.external.qt_loaders 99267 INFO: Excluding import of PyQt5.QtGui from module IPython.external.qt_loaders 99269 INFO: Excluding import of PyQt5.QtWidgets from module IPython.external.qt_loaders 99273 INFO: Excluding import of PyQt5 from module IPython.external.qt_loaders 99278 INFO: Loading module hook 'hook-jedi.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 100396 INFO: Loading module hook 'hook-jinja2.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 100433 INFO: Loading module hook 'hook-jsonschema.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 100486 INFO: Loading module hook 'hook-lxml.etree.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 100491 INFO: Loading module hook 'hook-lxml.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 101144 INFO: Loading module hook 'hook-nacl.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 101167 INFO: Loading module hook 'hook-nbconvert.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 101327 INFO: Loading module hook 'hook-nbformat.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 101401 INFO: Loading module hook 'hook-notebook.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 105578 INFO: Loading module hook 'hook-openpyxl.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 105759 INFO: Loading module hook 'hook-pycparser.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 105763 INFO: Loading module hook 'hook-pytest.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 107137 INFO: Loading module hook 'hook-pythoncom.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 107594 INFO: Loading module hook 'hook-pywintypes.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 108088 INFO: Loading module hook 'hook-regex.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 108092 INFO: Loading module hook 'hook-win32com.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 108794 INFO: Loading module hook 'hook-win32ctypes.core.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 109038 INFO: Loading module hook 'hook-zmq.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'... 109313 INFO: Loading module hook 'hook-babel.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks'... 109519 INFO: Loading module hook 'hook-difflib.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks'... 109540 INFO: Excluding import of doctest from module difflib 109545 INFO: Loading module hook 'hook-distutils.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks'... 109556 INFO: Loading module hook 'hook-distutils.util.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks'... 109569 INFO: Excluding import of lib2to3.refactor from module distutils.util 109575 INFO: Loading module hook 'hook-encodings.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks'... 109646 INFO: Loading module hook 'hook-gevent.py' from 'C:\\Users\\e92066\\AppData\\Roaming\\Python\\Python37\\site-packages\\PyInstaller\\hooks'... ``` After this auto-py-to-exe get stuck here. Please help.
Author
Owner

@brentvollebregt commented on GitHub (Apr 3, 2021):

@sdas1983 I just installed pandas 1.2.3 on Python 3.7.5 and packaged it with auto-py-to-exe 2.8.0.

It packaged fine but I did get an error ImportError: The 'appdirs' package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution. when running it - I didn't search much further than this.

<!-- gh-comment-id:812810099 --> @brentvollebregt commented on GitHub (Apr 3, 2021): @sdas1983 I just installed pandas 1.2.3 on Python 3.7.5 and packaged it with auto-py-to-exe 2.8.0. It packaged fine but I did get an error `ImportError: The 'appdirs' package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution.` when running it - I didn't search much further than this.
Author
Owner

@github-actions[bot] commented on GitHub (Jun 3, 2021):

This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.

<!-- gh-comment-id:853500729 --> @github-actions[bot] commented on GitHub (Jun 3, 2021): This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.
Author
Owner

@github-actions[bot] commented on GitHub (Jun 9, 2021):

Closing issue due to no activity in more than 60 days.

<!-- gh-comment-id:857288217 --> @github-actions[bot] commented on GitHub (Jun 9, 2021): Closing issue due to no activity in more than 60 days.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#148
No description provided.