PVPokeLossBot
PVPokeLossBot copied to clipboard
Received "ImportError: numpy.core.multiarray failed to import" when running main.py
Installed the requirements and this issue is still present. Would this be an issue with my computer or this script? Any clarification is appreciated.
I could reproduce it and it was an issue with the pinned versions in requirements.txt.
I updated requirements.txt to remove the specific version pins.
Can you try to install them again?
When trying to install the requirements again I get a few messages stating "Requirement already satisfied." The message "WARNING: Ignoring invalid distribution -ip" followed by the file path the python\python310\lib\site-packages folder also appears three times.
My requirements.txt has no more version numbers:
attrs
opencv-python
pytest
Then run this to upgrade all packages from requirements.txt.
pip install -U -r requirements.txt
"WARNING: Ignoring invalid distribution -ip" followed by the file path the python\python310\lib\site-packages folder also appears three times.
I don't get these messages.
Btw my python version is 3.13.1.
Strange. My python version is 3.13
I updated python to 3.13.1, ran "pip install -r" followed by the file path to a copy of requirements.txt without the version numbers, then ran "pip install -U -r" followed by that same file path. I'm not getting the "Ignoring invalid distribution" message anymore. Still getting the ImportError when running "python" followed by the file path to main.py.
One thing I did not notice until now is that when running main.py, there is also a message at the top saying "A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.0 as it may crash." I looked online for a way to downgrade NumPy but wasn't able to find a way to do so.