-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File not running #438
Comments
I ran into a similar problem when I created an executable from my Python project. I will try to give some details:
I could run my main.py script without trouble inside VS Code (using Python 3.12.3), but not as an executable. I created the executable by first installing "Pyinstaller" (with pip install pyinstaller) and then I ran the command below (in Powershell on Windows 11): Then I googled and found this stackoverflow thread: https://stackoverflow.com/questions/78234168/modulenotfounderror-no-module-named-scipy-linalg-basic Then I got a new error, still a ModuleNotFoundError but this time for the module "scipy.special._special_ufuncs". I added this module name to the hidden imports too, and then the resulting executable could run without problem. In the end I switched to running the command
|
I'm running into the same issue. It only occurs when I try to import circle_fit library, otherwise this error doesn't occur for me. I can run my python scripts fine, but I get this error when trying to build an executable via pyinstaller |
you can try using the hidden imports like python -m PyInstaller --onedir --hidden-import scipy._lib.array_api_compat.numpy.fft main.py but replace main.py and scipy._lib.array_api_compat.numpy.fft with yout own imports |
A mix of hidden imports and submodules seemed to work for me. Thanks for the advice! |
it cut off so heres the full error ModuleNotFoundError: No module named 'scipy._lib.array_api_compat.numpy.fft'
The text was updated successfully, but these errors were encountered: