-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
ERROR tests/test_perception4e.py #1253
Comments
I encountered this issue when running the tests outside of a virtual environment. You probably have newer versions of this libraries already installed, which is what is possibly causing the issue. In case you don't know how to do it, and for future users, here is a modified version of the installation guide with the addition of virtual environments. Installation Guide with VenvTo download the repository:
Create the virtual environment
Activate the virtual environment
Then you need to install the basic dependencies to run the project on your system:
You also need to fetch the datasets from the
Wait for the datasets to download, it may take a while. Once they are downloaded, you need to install
Then to run the tests:
|
I followed the installation guide and after runing py.test I got this error:
`PS C:\Windows\System32\aima-python> py.test
===================== test session starts===================================
platform win32 -- Python 3.9.7, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: C:\Windows\System32\aima-python, configfile: pytest.ini
plugins: anyio-2.2.0, cov-3.0.0
collected 410 items / 1 error / 409 selected
====================== ERRORS ===========================
_______ ERROR collecting tests/test_perception4e.py _____________________
ImportError while importing test module 'C:\Windows\System32\aima-python\tests\test_perception4e.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
C:\ProgramData\Anaconda3\lib\importlib_init_.py:127: in import_module
return _bootstrap.gcd_import(name[level:], package, level)
tests\test_perception4e.py:5: in
from perception4e import *
perception4e.py:3: in
import cv2
C:\ProgramData\Anaconda3\lib\site-packages\cv2_init.py:8: in
from .cv2 import *
E ImportError: DLL load failed while importing cv2: The specified module could not be found.
================ short test summary info ==================================
ERROR tests/test_perception4e.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================= 1 error in 4.82s ===================================
PS C:\Windows\System32\aima-python>`
I tried
pip install keras==2.4.0
pip install --upgrade pip
pip install tensorflow
pip install tf-nightly
please help me fix. thank you
The text was updated successfully, but these errors were encountered: