-
|
We have python code that lookup at runtime for a libusb backend (library) file and uses it. The code works with plain python but not with pyinstaller. The code uses a Any idea how to fix it? (We prefer to be consistent and use the The app code: The .spec file The pyinstaller workflow: The pyinstaller workflow log: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The problem is in the usb runtime hook, it simplify ignores the find_library argument. EDIT: Created this issue: pyinstaller/pyinstaller-hooks-contrib#912 EDIT: One workaround is deleting the 'usb' line from |
Beta Was this translation helpful? Give feedback.
The problem is in the usb runtime hook, it simplify ignores the find_library argument.
https://github.com/pyinstaller/pyinstaller-hooks-contrib/blob/3cc7a3a3df4a7b404ecf3fedfbcbe48980bd61f8/_pyinstaller_hooks_contrib/rthooks/pyi_rth_usb.py#L30
EDIT: Created this issue: pyinstaller/pyinstaller-hooks-contrib#912
EDIT: One workaround is deleting the 'usb' line from
rthooks.datbefore running pyinstaller