PyInstaller/frozen builds are currently broken due to "autobahn" requirement declaration #3229

Closed
opened 2019-07-16 17:23:07 +00:00 by crwood · 3 comments

Commit 0cb1ba8634e463f3f1e4d111aac69bbee9004f67 added "autobahn" to allmydata._auto_deps.install_requires but did not include it in allmydata._auto_deps.package_imports. This omission causes PyInstaller-generated "frozen" binaries of Tahoe-LAFS to fail with the following error:

Traceback (most recent call last):
  File "tahoe.py", line 4, in <module>
  File "/tmp/pip-install-sDdIlW/pyinstaller/PyInstaller/loader/pyimod03_importers.py", line 395, in load_module
  File "site-packages/allmydata/__init__.py", line 483, in <module>
  File "site-packages/allmydata/__init__.py", line 481, in check_all_requirements
allmydata.PackagingError: 
PackagingError: no version info for autobahn

For debugging purposes, the PYTHONPATH was
  None
install_requires was
  ['setuptools >= 28.8.0', 'zfec >= 1.1.0', 'zope.interface >= 3.6.0, != 3.6.3, != 3.6.4', 'foolscap >= 0.12.6', 'cryptography >= 2.3', 'service-identity', 'characteristic >= 14.0.0', 'pyasn1 >= 0.1.8', 'pyasn1-modules >= 0.0.5', 'Twisted[tls,conch] >= 16.6.0', 'Nevow >= 0.11.1', 'pyOpenSSL >= 0.14', 'PyYAML >= 3.11', 'six >= 1.10.0', 'magic-wormhole >= 0.10.2', 'eliot >= 1.7.0, <= 1.7.100', 'attrs >= 18.2.0', 'autobahn >= 19.5.2']
Commit 0cb1ba8634e463f3f1e4d111aac69bbee9004f67 added "autobahn" to `allmydata._auto_deps.install_requires` but did not include it in `allmydata._auto_deps.package_imports`. This omission causes [PyInstaller](wiki/PyInstaller)-generated "frozen" binaries of Tahoe-LAFS to fail with the following error: ``` Traceback (most recent call last): File "tahoe.py", line 4, in <module> File "/tmp/pip-install-sDdIlW/pyinstaller/PyInstaller/loader/pyimod03_importers.py", line 395, in load_module File "site-packages/allmydata/__init__.py", line 483, in <module> File "site-packages/allmydata/__init__.py", line 481, in check_all_requirements allmydata.PackagingError: PackagingError: no version info for autobahn For debugging purposes, the PYTHONPATH was None install_requires was ['setuptools >= 28.8.0', 'zfec >= 1.1.0', 'zope.interface >= 3.6.0, != 3.6.3, != 3.6.4', 'foolscap >= 0.12.6', 'cryptography >= 2.3', 'service-identity', 'characteristic >= 14.0.0', 'pyasn1 >= 0.1.8', 'pyasn1-modules >= 0.0.5', 'Twisted[tls,conch] >= 16.6.0', 'Nevow >= 0.11.1', 'pyOpenSSL >= 0.14', 'PyYAML >= 3.11', 'six >= 1.10.0', 'magic-wormhole >= 0.10.2', 'eliot >= 1.7.0, <= 1.7.100', 'attrs >= 18.2.0', 'autobahn >= 19.5.2'] ```
crwood added the
unknown
normal
defect
unknown
labels 2019-07-16 17:23:07 +00:00
crwood added this to the 1.14.0 milestone 2019-07-16 17:23:07 +00:00
Author
PR: <https://github.com/tahoe-lafs/tahoe-lafs/pull/634>
Chris Wood <chris@leastauthority.com> commented 2019-07-17 16:55:07 +00:00
Owner

In b185ee5/trunk:

Add "autobahn" to "package_imports"

This fixes PyInstaller-generated "frozen" binaries which, without
this, fail to run with "allmydata.PackagingError: no version info
for autobahn"

fixes:ticket:3229
In [b185ee5/trunk](/tahoe-lafs/trac-2024-07-25/commit/b185ee507951a7f984bbac253a7bb9d3f7a146a6): ``` Add "autobahn" to "package_imports" This fixes PyInstaller-generated "frozen" binaries which, without this, fail to run with "allmydata.PackagingError: no version info for autobahn" fixes:ticket:3229 ```
tahoe-lafs added the
fixed
label 2019-07-17 16:55:07 +00:00

was this a duplicate of /tahoe-lafs/trac-2024-07-25/issues/7864?

was this a duplicate of [/tahoe-lafs/trac-2024-07-25/issues/7864](/tahoe-lafs/trac-2024-07-25/issues/7864)?
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#3229
No description provided.