pytest報錯Hint: make sure your test modules/packages have valid Python names.
___ ERROR collecting tests/transformers/statistics/test_histogram_sklearn.py ___
ImportError while importing test module '/data/home/gitlab_runner/_Go_1xWz/0/bkdata/datamining/datamodelinggroup/aiopsscenes/datamodeling_extra-nova/tests/transformers/statistics/test_histogram_sklearn.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/python3/lib/python3.6/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
E ModuleNotFoundError: No module named 'tests.transformers'
____ ERROR collecting tests/transformers/statistics/test_histogram_spark.py ____
ImportError while importing test module '/data/home/gitlab_runner/_Go_1xWz/0/bkdata/datamining/datamodelinggroup/aiopsscenes/datamodeling_extra-nova/tests/transformers/statistics/test_histogram_spark.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/python3/lib/python3.6/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
E ModuleNotFoundError: No module named 'tests.transformers'
排查發現是一個test檔案沒有放在test資料夾中導致的,不是網上說的__init__檔案的問題
相關文章
- Make sure to include VueLoaderPlugin in your webpack configVuePluginWeb
- python modules and packagesPythonPackage
- Git push時報錯:fatal: Could not read from remote repository. Please make sure you have the correct access rightsGitREM
- ReactNative執行報錯Command `run-android` unrecognized. Make sure that you have run `npm install` and tha...ReactAndroidZedNPM
- Android error “Could not get BatchedBridge, make sure your bundle is packaged properly” on start ofAndroidErrorBATPackage
- Make sure you configure your "user.name" and "user.email" in git.AIGit
- git在pull時報錯You have not concluded your mergeGit
- 求助 :ubuntu 編譯核心後(make -jn),sudo make modules_install報錯Ubuntu編譯
- Make sure to include VueLoaderPluginVuePlugin
- 執行git命令時出現Please make sure you have the correct access rights and the repository existsGit
- 使用 Composer 安裝時與 PHP 版本不匹配(報錯:Your requirem ... packages.)PHPUIREMPackage
- 錯誤內容:You have an error in your SQL syntax; check the manual that corresponds to your MySQL serverErrorMySqlServer
- 如何處理錯誤訊息Please install the gcc make perl packagesGCPackage
- 安裝ROS出現 Unable to Correct Problems ‘You have Held Broken Packages’ 錯誤ROSPackage
- How to prevent your jar packages from being decompiled?JARPackageCompile
- Error: pngquant failed to build, make sure that libpng-dev is installedErrorAIUIdev
- python報錯:TypeError: slice indices must be integers or None or have an __index__ methodPythonErrorNoneIndex
- pytest與unit test區別
- ou have not concluded your merge (MERGE_HEAD exists)
- 如何解決"You have an error in your SQL syntax"ErrorSQL
- godaddy 的 Monitoring performance to make your website fasterGoORMWebAST
- Pytest 引數化報錯
- eslint --fix 報錯 can't not find modulesEsLint
- 使用yum報錯Your license is invalid.
- Property or method “option“ is not defined on the instance but referenced during render. Make sure t
- 報錯“Please indicate a valid Swagger or OpenAPI version field”SwaggerAPI
- 萬能方法解決——You have an error in your SQL syntaxErrorSQL
- Try to run this command from the system terminal. Make sure that you use the correct version of ‘...
- React報錯之Function components cannot have string refsReactFunction
- pytest 報錯原因是什麼?pytest 通過 pip install 安裝,在 Scripts 資料夾。test_sample 也放在 Scripts 資料夾內
- vmwar出現Could not open...Please make sure that the kernel modul的問題
- 安裝 dingo/api 報錯:Your requirements could not be resolvedGoAPIUIREM
- Rocky9安裝python3.6報錯 make: *** [Makefile:1102: install] Error 139PythonError
- 小程式報錯 Do not have xxx handler in current page 原因
- tomcat-啟動報錯Multiple Contexts have a path of "/xxxx"TomcatContext
- pytest.main () 為什麼會報錯?AI
- git-----You have not concluded your merge (MERGE_HEAD exists)解決Git
- homestead下安裝laravel報錯:Your requirements could not be...LaravelUIREM