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__檔案的問題
相關文章
- python modules and packagesPythonPackage
- Make sure to include VueLoaderPlugin in your webpack configVuePluginWeb
- 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
- 求助 :ubuntu 編譯核心後(make -jn),sudo make modules_install報錯Ubuntu編譯
- Make sure you configure your "user.name" and "user.email" in git.AIGit
- Git push時報錯:fatal: Could not read from remote repository. Please make sure you have the correct access rightsGitREM
- Make sure to include VueLoaderPluginVuePlugin
- 執行git命令時出現Please make sure you have the correct access rights and the repository existsGit
- Makefile常見錯誤解析 - make: *** No rule to make target 'test1.o', needed by 'test2'. Stop
- 使用 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
- AIX安裝ORACLE-CRS報錯 0403-012 A test command parameter is not validAIOracle
- python報錯:TypeError: slice indices must be integers or None or have an __index__ methodPythonErrorNoneIndex
- pytest與unit test區別
- Error: pngquant failed to build, make sure that libpng-dev is installedErrorAIUIdev
- redhat your system appears to have shut down uncleanlyRedhatAPP
- 如何解決"You have an error in your SQL syntax"ErrorSQL
- How to prevent your jar packages from being decompiled?JARPackageCompile
- PHP編譯,執行make報錯PHP編譯
- eslint --fix 報錯 can't not find modulesEsLint
- vmwar出現Could not open...Please make sure that the kernel modul的問題
- 登陸peoplesoft報:Site name is not valid. Check your url syntax and try again.AI
- initialize or clean up your unittest within .net unit test
- 萬能方法解決——You have an error in your SQL syntaxErrorSQL
- godaddy 的 Monitoring performance to make your website fasterGoORMWebAST
- pytest.main () 為什麼會報錯?AI
- pytest 報錯原因是什麼?pytest 通過 pip install 安裝,在 Scripts 資料夾。test_sample 也放在 Scripts 資料夾內
- javascript debut trick, using the throw to make a interrupt(breakpoint) in your programJavaScript
- React報錯之Function components cannot have string refsReactFunction
- opatch報錯:The oraInst.loc file specified is not validAI
- 報錯“Please indicate a valid Swagger or OpenAPI version field”SwaggerAPI
- 小程式報錯 Do not have xxx handler in current page 原因
- 安裝 dingo/api 報錯:Your requirements could not be resolvedGoAPIUIREM
- homestead下安裝laravel報錯:Your requirements could not be...LaravelUIREM
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQLMySqlJDBCExceptionError