I am building an executable for my astronomy application. When I run pyinstaller with the following parameters:
The executable file is created, but it doesn't work.
When I run the application, I get the following error:
Traceback (most recent call last):
File "variabilia.py", line 3, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "fotometria5.py", line 1, in <module>
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "photutils\__init__.py", line 98, in <module>
File "photutils\__init__.py", line 90, in _get_bibtex
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\Sviluppo\\fotometria\\dist\\variabilia\\_internal\\photutils\\CITATION.rst'
Apparently it looks like there is an error in importing the module photutils (???) Is that correct in your opinion?
Do you know how I could fix this?
Thanks a lot for your help :-)
Nicola