Error while running your code
Opened this issue · 0 comments
When I test your code, I got this as an error.
============================================================= test session starts ==============================================================
platform win32 -- Python 3.10.11, pytest-7.4.0, pluggy-1.2.0
rootdir: ...\Downloads\testing-ML-models-with-pytest-master\testing-ML-models-with-pytest-master
plugins: allure-pytest-2.13.2, anyio-3.6.2, dash-2.11.1, xdist-3.3.1
collected 0 items / 1 error
==================================================================== ERRORS ====================================================================
__________________________________________________ ERROR collecting tests/test_dummy_model.py __________________________________________________
ImportError while importing test module ...\Downloads\testing-ML-models-with-pytest-master\testing-ML-models-with-pytest-master\tests\test_dummy_model.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
......\AppData\Local\Programs\Python\Python310\lib\importlib_init_.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests\test_dummy_model.py:1: in
from sklearn.externals import joblib
E ImportError: cannot import name 'joblib' from 'sklearn.externals'
=========================================================== short test summary info ============================================================
ERROR tests/test_dummy_model.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================================================== 1 error in 1.22s ===============================================================
Solve this error