Hi,
I've been struggling to figure this for a couple of weeks. The only indication of anyone else running into this issue was posted here a couple of years ago, with no solution being posted. I've got my fingers crossed that someone has found a solution since then.
When I try to run the .exe created by PyInstaller I an error during the import phase. (the line of code and error are below.) But if I run rez-env followed by "python app.py" It works. I'm hoping someone can give me suggestions or point me at some documentation that can help out.
Thank you for any help you can give.
rez api version 2.106.0 and
PyInstaller 5.10.1 (windows python 3.7)
The error is generated on this line of code:
import rezplugins.package_repository
Traceback (most recent call last):
File "al_gui\app.py", line 20, in <module>
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "rezplugins\package_repository\__init__.py", line 6, in <module>
File "rez\plugin_managers.py", line 75, in extend_path
File "rez\utils\data_utils.py", line 249, in __get__
File "rez\plugin_managers.py", line 320, in rezplugins_module_paths
AttributeError: 'FrozenImporter' object has no attribute 'path'
[1184] Failed to execute script 'app' due to unhandled exception!