FS#67379 - pyinstaller with click leads to error ModuleNotFoundError

Attached to Project: Arch Linux
Opened by Alexander (Alexander3XL) - Friday, 24 July 2020, 11:08 GMT
Last edited by freswa (frederik) - Friday, 24 July 2020, 11:19 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hello! I have a bug.
ModuleNotFoundError: No module named 'packaging.version'
The bug looks like a regression:
https://github.com/pyinstaller/pyinstaller/issues/3584

Additional info:
* Linux 5.7.10-arch1-1
* Python 3.8.3 (default, May 17 2020, 18:15:42) [GCC 10.1.0] on linux
* python-packaging 20.4-1

Steps to reproduce:
$ echo -e 'import click\nprint("Test")'>f.py
$ pyinstaller f.py
$ ./dist/f/f
Traceback (most recent call last):
File "site-packages/PyInstaller/loader/rthooks/pyi_rth_pkgres.py", line 13, in <module>
File "/usr/lib/python3.8/site-packages/PyInstaller/loader/pyimod03_importers.py", line 623, in exec_module
exec(bytecode, module.__dict__)
File "site-packages/pkg_resources/__init__.py", line 81, in <module>
ModuleNotFoundError: No module named 'packaging.version'
[54156] Failed to execute script pyi_rth_pkgres
This task depends upon

Closed by  freswa (frederik)
Friday, 24 July 2020, 11:19 GMT
Reason for closing:  Not a bug
Additional comments about closing:  AUR packages are not officially supported. Please use the AUR to report and discuss bugs. Thank you.
Comment by Alexander (Alexander3XL) - Friday, 24 July 2020, 11:13 GMT
I use for workaround the problem:
pyinstaller --hidden-import 'packaging.version' --hidden-import 'packaging.specifiers' --hidden-import 'packaging.requirements' --hidden-import 'pkg_resources.markers' f.py
but I don't think, that this is a good solution

Loading...