mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-26 04:05:49 +03:00
[GH-ISSUE #235] subprocess.TimeoutExpired #212
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @USPRPC on GitHub (Jan 23, 2022).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/235
Command '('c:\users\myuser\appdata\local\programs\python\python39\python.exe', '-c', '\nimport sys\nimport pkgutil\nimport traceback\n\n#
pkgutil.walk_packagesdoes not walk subpackages of zipped files per https://bugs.python.org/issue14209.\n# This is a workaround.\ndef walk_packages(path=None, prefix='', onerror=None):\n def seen(p, m={}):\n if p in m:\n return True\n m[p] = True\n\n for importer, name, ispkg in pkgutil.iter_modules(path, prefix):\n if not name.startswith(prefix):\n name = prefix + name\n yield importer, name, ispkg\n\n if ispkg:\n try:\n import(name)\n except ImportError:\n if onerror is not None:\n onerror(name)\n except Exception:\n if onerror is not None:\n onerror(name)\n else:\n traceback.print_exc(file=sys.stderr)\n print("collect_submodules: failed to import %r!" % name, file=sys.stderr)\n else:\n path = getattr(sys.modules[name], 'path', None) or []\n\n # don't traverse path items we've seen before\n path = [p for p in path if not seen(p)]\n\n # Use Py2 code here. It still works in Py3.\n for item in walk_packages(path, name+'.', onerror):\n yield item\n # This is the original Py3 code.\n #yield from walk_packages(path, name+'.', onerror)\n\nfor module_loader, name, ispkg in walk_packages(['c:\\users\\myuser\\appdata\\local\\programs\\python\\python39\\lib\\site-packages\\gevent'], 'gevent.'):\n print('\n$_pyi:' + name + '*')\n')' timed out after 60 secondsmy imports:
@USPRPC commented on GitHub (Jan 23, 2022):
pls help
@brentvollebregt commented on GitHub (Jan 24, 2022):
Please add some context to this - there is no detail about what you have done, where you saw this or what this dump at the top is.
@github-actions[bot] commented on GitHub (Mar 26, 2022):
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.
@github-actions[bot] commented on GitHub (Mar 31, 2022):
Closing issue due to no activity in more than 60 days.