Dear All,

after successfully executed the first exe build I did, I added some new
features to my app, but this time I am not able to run the exe file anymore:

pyinstaller variabilia.py -F --collect-data=photutils
--collect-data=astroquery

638 INFO: PyInstaller: 6.4.0, contrib hooks: 2024.1
638 INFO: Python: 3.11.8
647 INFO: Platform: Windows-10-10.0.19045-SP0
647 INFO: wrote D:\Sviluppo\fotometria\variabilia.spec
1648 INFO: Extending PYTHONPATH with paths
['D:\\Sviluppo\\fotometria']
2233 INFO: Appending 'datas' from .spec
2258 INFO: checking Analysis
2258 INFO: Building Analysis because Analysis-00.toc is non existent
2258 INFO: Initializing module dependency graph...
2261 INFO: Caching module graph hooks...
2289 INFO: Analyzing base_library.zip ...
3305 INFO: Loading module hook 'hook-heapq.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
3384 INFO: Loading module hook 'hook-encodings.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
4903 INFO: Loading module hook 'hook-pickle.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
6281 INFO: Caching module dependency graph...
6398 INFO: Running Analysis Analysis-00.toc
6398 INFO: Looking for Python shared library...
6410 INFO: Using Python shared library: C:\Program
Files\Python311\python311.dll
6410 INFO: Analyzing D:\Sviluppo\fotometria\variabilia.py
6674 INFO: Loading module hook 'hook-pubsub.core.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
7504 INFO: Loading module hook 'hook-charset_normalizer.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
7836 INFO: Loading module hook 'hook-certifi.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
7966 INFO: Loading module hook 'hook-matplotlib.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
8385 INFO: Loading module hook 'hook-numpy.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\numpy\\_pyinstaller'...
9027 INFO: Loading module hook 'hook-difflib.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
9214 INFO: Loading module hook 'hook-multiprocessing.util.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
9328 INFO: Loading module hook 'hook-xml.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
9979 INFO: Loading module hook 'hook-platform.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
10004 INFO: Loading module hook 'hook-sysconfig.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
11495 INFO: Loading module hook 'hook-packaging.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
11568 INFO: Processing pre-safe import module hook gi from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-gi.py'.
11657 INFO: Loading module hook 'hook-PIL.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
11733 INFO: Loading module hook 'hook-PIL.Image.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
12405 INFO: Loading module hook 'hook-PIL.ImageFilter.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
14378 INFO: Processing pre-safe import module hook six.moves from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\
hook-six.moves.py'.
15440 INFO: Loading module hook 'hook-matplotlib.backends.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
15715 INFO: Loading module hook 'hook-astropy.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
2052 WARNING: Failed to collect submodules for 'astropy.tests.figures'
because importing 'astropy.tests.figures' raised: ModuleNotFoundError: No
module named 'pytest'
21772 INFO: Loading module hook 'hook-astropy_iers_data.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\stdhooks'...
22260 INFO: Loading module hook 'hook-scipy.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
22829 INFO: Loading module hook 'hook-scipy.linalg.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
23452 INFO: Loading module hook 'hook-scipy.sparse.csgraph.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
25359 INFO: Loading module hook 'hook-scipy.spatial.transform.rotation.py'
from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
30260 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
30348 INFO: Loading module hook 'hook-xml.dom.domreg.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
33093 INFO: Loading module hook 'hook-keyring.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
33623 INFO: Loading module hook 'hook-importlib_metadata.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
33818 INFO: Processing module hooks...
33897 INFO: Loading module hook 'hook-setuptools.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
35502 INFO: Processing pre-safe import module hook distutils from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks\\pre_safe_import_module\\hook-distutils.py'.
35504 INFO: Processing pre-find module path hook distutils from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-distutils.py'.
35880 INFO: Loading module hook 'hook-distutils.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
35941 INFO: Loading module hook 'hook-distutils.util.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
36178 INFO: Loading module hook 'hook-pkg_resources.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
44624 INFO: Loading module hook 'hook-win32ctypes.core.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
45084 INFO: Loading module hook 'hook-matplotlib.backends.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
45084 INFO: Matplotlib backend selection method: automatic discovery of
used backends
45173 INFO: Discovered Matplotlib backend(s) via `matplotlib.use()` call in
module 'astropy.conftest': ['Agg']
45197 INFO: The following Matplotlib backends were discovered by scanning
for `matplotlib.use()` calls: ['Agg']. If your backend of choice is not in
this list, either add a `matplotlib.use()` call to your code, or configure
the backend collection via hook options (see:
https://pyinstaller.org/en/stable/hooks-config.html#matplotlib-hooks).
45197 INFO: Selected matplotlib backends: ['Agg']
45445 INFO: Loading module hook 'hook-PIL.SpiderImagePlugin.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
45505 INFO: Processing pre-safe import module hook win32com from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\_pyinstaller_hooks_contrib\\hooks\\pre_safe_import_module\\hook-win32com.py'.
46137 INFO: Loading module hook 'hook-scipy.special._ellip_harm_2.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
46139 INFO: Loading module hook 'hook-scipy.special._ufuncs.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
46141 INFO: Loading module hook 'hook-scipy.stats._stats.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
46231 INFO: Loading module hook 'hook-setuptools.msvc.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
46926 INFO: Loading module hook 'hook-setuptools._distutils.command.check.py'
from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
47264 INFO: Performing binary vs. data reclassification (985 entries)
47681 INFO: Looking for ctypes DLLs
47968 INFO: Analyzing run-time hooks ...
47979 INFO: Including run-time hook
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_inspect.py'
47983 INFO: Including run-time hook
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pkgutil.py'
47986 INFO: Processing pre-find module path hook _pyi_rth_utils from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks\\pre_find_module_path\\hook-_pyi_rth_utils.py'.
47992 INFO: Loading module hook 'hook-_pyi_rth_utils.py' from
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks'...
47994 INFO: Including run-time hook
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_multiprocessing.py'
47998 INFO: Including run-time hook
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_pkgres.py'
48004 INFO: Including run-time hook
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_mplconfig.py'
48015 INFO: Including run-time hook
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\PyInstaller\\hooks\\rthooks\\pyi_rth_setuptools.py'
48070 INFO: Looking for dynamic libraries
C:\Users\forte\AppData\Roaming\Python\Python311\site-packages\PyInstaller\building\build_main.py:194:
UserWarning: The numpy.array_api submodule is still experimental. See NEP
47.
  __import__(package)
51436 INFO: Extra DLL search directories (AddDllDirectory):
['C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\numpy.libs',
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\scipy.libs',
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\matplotlib.libs',
'C:\\Users\\forte\\AppData\\Roaming\\Python\\Python311\\site-packages\\matplotlib.libs']
51436 INFO: Extra DLL search directories (PATH): []
54358 INFO: Warnings written to
D:\Sviluppo\fotometria\build\variabilia\warn-variabilia.txt
55040 INFO: Graph cross-reference written to
D:\Sviluppo\fotometria\build\variabilia\xref-variabilia.html
55169 INFO: checking PYZ
55169 INFO: Building PYZ because PYZ-00.toc is non existent
55171 INFO: Building PYZ (ZlibArchive)
D:\Sviluppo\fotometria\build\variabilia\PYZ-00.pyz
58136 INFO: Building PYZ (ZlibArchive)
D:\Sviluppo\fotometria\build\variabilia\PYZ-00.pyz completed successfully.
58230 INFO: checking PKG
58230 INFO: Building PKG because PKG-00.toc is non existent
58232 INFO: Building PKG (CArchive) variabilia.pkg
79034 INFO: Building PKG (CArchive) variabilia.pkg completed successfully.
79058 INFO: Bootloader
C:\Users\forte\AppData\Roaming\Python\Python311\site-packages\PyInstaller\bootloader\Windows-64bit-intel\run.exe
79058 INFO: checking EXE
79062 INFO: Building EXE because EXE-00.toc is non existent
79062 INFO: Building EXE from EXE-00.toc
79065 INFO: Copying bootloader EXE to
D:\Sviluppo\fotometria\dist\variabilia.exe
79070 INFO: Copying icon to EXE
79084 INFO: Copying 0 resources to EXE
79084 INFO: Embedding manifest in EXE
79087 INFO: Appending PKG archive to EXE
79178 INFO: Fixing EXE headers
82238 INFO: Building EXE from EXE-00.toc completed successfully.

When I run the executable I get the following error:
Traceback (most recent call last):
  File "variabilia.py", line 3, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
  File "fotometria5.py", line 24, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
  File "photutils\__init__.py", line 15, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
  File "photutils\aperture\__init__.py", line 7, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
  File "photutils\aperture\circle.py", line 16, in <module>
  File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
  File "photutils\geometry\__init__.py", line 6, in <module>
  File "photutils\\geometry\\circular_overlap.pyx", line 1, in init
photutils.geometry.circular_overlap
ModuleNotFoundError: No module named 'photutils.geometry.core'
[11080] Failed to execute script 'variabilia' due to unhandled exception!

photutils is inserted in the command line as the suggestion from my
previous post --collect-data=photutils
But now I get this error. I didn't changed/updated the module at all, it is
still the same.

Any suggestion on how to solve this is appreciated

Thanks a lot
Nicola

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Privo
di virus.www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/CADMj6LCGddpTdb66%3DhOVKDbs4aq5ez%2BGsmN2UKTH9eLUc%3D_gPQ%40mail.gmail.com.

Reply via email to