Skip to content
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

Is there a step for having numpy in windows? #96

Open
canavci312 opened this issue Jun 10, 2024 · 2 comments
Open

Is there a step for having numpy in windows? #96

canavci312 opened this issue Jun 10, 2024 · 2 comments

Comments

@canavci312
Copy link

canavci312 commented Jun 10, 2024

I'm trying to build on windows with python 3.11 and windows 11 but getting the following error after running script from the app. Is there an extra step to make it work that I'm missing? I couldnt find it in the documents

my requirements.txt

opencv-python==4.10.0.82
numpy==1.24.3
Install it via command:
    pip install numpy
Running Python program synchronously...Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\Temp\serious_python_tempdc757e66\__pypackages__\numpy\core\__init__.py", line 23, in <module>
  File "C:\Users\user\AppData\Local\Temp\serious_python_tempdc757e66\__pypackages__\numpy\core\multiarray.py", line 10, in <module>
  File "C:\Users\user\AppData\Local\Temp\serious_python_tempdc757e66\__pypackages__\numpy\core\overrides.py", line 6, in <module>
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'

many reasons, often due to issues with your setup or how NumPy was
installed.
Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\Temp\serious_python_tempdc757e66\main.py", line 2, in <module>
  File "C:\Users\user\AppData\Local\Temp\serious_python_tempdc757e66\bot.py", line 1, in <module>
  File "C:\Users\user\AppData\Local\Temp\serious_python_tempdc757e66\__pypackages__\cv2\__init__.py", line 11, in <module>
  File "C:\Users\user\AppData\Local\Temp\serious_python_tempdc757e66\__pypackages__\numpy\__init__.py", line 141, in <module>
  File "C:\Users\user\AppData\Local\Temp\serious_python_tempdc757e66\__pypackages__\numpy\core\__init__.py", line 49, in <module>
ImportError: 

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.11 from "C:\Users\user\Documents\-\ui\-\build\windows\x64\runner\Debug\feribot.exe"
  * The NumPy version is: "1.24.3"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: No module named 'numpy.core._multiarray_umath'
@FeodorFitsner
Copy link
Contributor

Can you check if you have .pyd files inside __pypackages__ of packaged app?

@canavci312
Copy link
Author

Can you check if you have .pyd files inside __pypackages__ of packaged app?

I see a pyd file in cv2 folder. I dont see any in numpy folder or general pypackages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants