Closed davetapley closed 2 months ago
That's because test_trame.py
tries to use PyInstaller.utils.hooks.check_requirement
, which was introduced in PyInstaller 6.0.
@rokm yep, that's it!
Could we put required PyInstaller version in e.g. setup.cfg
so pip install -e .
will check (I think)?
Alternatively update I want to help to also include explicit pip install pyinstaller==6
?
We don't really have any reason to keep the tests compatible with old PyInstaller versions.
Actually, I think we should switch that check_requirement
with is_module_satisfies
(which exists in 5.x, while in 6.x is compatibility alias for check_requirement
). If nothing else, for the sake of consistency (we use is_module_satisfies
pretty much everywhere else). But I also occasionally test with 5.x, although typically against a specific test file (that was never test_trame.py
, so this went unnoticed).
Could we put required PyInstaller version in e.g. setup.cfg so pip install -e . will check (I think)?
That would create a circular import which we really want to avoid.
Alternatively update I want to help to also include explicit pip install pyinstaller==6?
Of course that advice will age quickly but I wouldn't mind a generic please use the latest PyInstaller advice.
But I wouldn't mind a generic please use the latest PyInstaller advice, either.
Describe the bug
Getting error follow I want to help guide.
Tried clean
pyenv
, and I've contributed before using same machine / environment.To Reproduce
In terminal:
Error:
Expected behavior
master
always works in clean env.Desktop (please complete the following information):
pyinstaller-hooks-contrib
: 2024.8Additional context
test_trame.py
came in just after my last contribution.