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

Closed
opened 2019-07-16 17:23:07 +00:00 by cypher · 3 comments
cypher commented 2019-07-16 17:23:07 +00:00
Owner

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'] ```
tahoe-lafs added the
unknown
normal
defect
unknown
labels 2019-07-16 17:23:07 +00:00
tahoe-lafs added this to the 1.14.0 milestone 2019-07-16 17:23:07 +00:00
cypher commented 2019-07-16 18:23:01 +00:00
Author
Owner
PR: <https://github.com/tahoe-lafs/tahoe-lafs/pull/634>
Chris Wood <chris@leastauthority.com> commented 2019-07-17 16:55:07 +00:00
Author
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
Chris Wood <chris@leastauthority.com> closed this issue 2019-07-17 16:55:07 +00:00
exarkun commented 2019-07-25 12:42:56 +00:00
Author
Owner

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

was this a duplicate of [/tahoe-lafs/trac-2024-07-25/issues/10307](/tahoe-lafs/trac-2024-07-25/issues/10307)?
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: tahoe-lafs/trac-2024-07-25#3229
No description provided.