Hi,

After the numpy 2.0.0 release,

Warning

Changed in version 2.0.0: There used to be a f2py.compilefunction, which 
was removed, users may wrap python -m numpy.f2pyvia subprocess.run manually, 
and set environment variables to interact with meson as required.

my pyinstaller-compiled onedir executable (in Mac OSX Sonoma/ M2 Max) is 
throwing the following errors while running it on the terminal

Traceback (most recent call last):
  File "pyprog.py", line 47, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "statsmodels/__init__.py", line 1, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "statsmodels/compat/__init__.py", line 1, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "statsmodels/tools/__init__.py", line 1, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "statsmodels/tools/tools.py", line 6, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "scipy/linalg/__init__.py", line 205, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "scipy/linalg/_basic.py", line 13, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "scipy/linalg/_decomp.py", line 24, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "scipy/_lib/_util.py", line 18, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "scipy/_lib/_array_api.py", line 21, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "scipy/_lib/array_api_compat/numpy/__init__.py", line 1, in <module>
  File "numpy/__init__.py", line 358, in __getattr__
ModuleNotFoundError: No module named 'numpy.f2py'
[4897] Failed to execute script 'pyprog' due to unhandled exception!

Any clue to resolving it?

Regards,
Debabrata






-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/854f0d32-de70-467d-8580-6e82a61f18ddn%40googlegroups.com.

Reply via email to