Test runs from cmd but fails/error in pycharm pytest run

C:\Users\ABHISHEK\AppData\Local\Programs\Python\Python310\python.exe "C:/Program Files/JetBrains/PyCharm Community Edition 2022.3/plugins/python-ce/helpers/pycharm/_jb_pytest_runner.py" --path C:\Users\ABHISHEK\PycharmProjects\pythonProject1\pytest2\test_ninth_demo1.py Testing started at 04:49 ... Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2022.3\plugins\python-ce\helpers\pycharm\_jb_pytest_runner.py", line 26, in if not get_plugin_manager().hasplugin("pytest-teamcity"): File "C:\Users\ABHISHEK\AppData\Local\Programs\Python\Python310\lib\site-packages\_pytest\config\__init__.py", line 303, in get_plugin_manager return get_config().pluginmanager File "C:\Users\ABHISHEK\AppData\Local\Programs\Python\Python310\lib\site-packages\_pytest\config\__init__.py", line 290, in get_config pluginmanager.import_plugin(spec) File "C:\Users\ABHISHEK\AppData\Local\Programs\Python\Python310\lib\site-packages\_pytest\config\__init__.py", line 774, in import_plugin __import__(importspec) File "C:\Users\ABHISHEK\AppData\Local\Programs\Python\Python310\lib\site-packages\_pytest\helpconfig.py", line 100, in @pytest.hookimpl(hookwrapper=True) AttributeError: module 'pytest' has no attribute 'hookimpl' Process finished with exit code 1 Empty suite Empty suite
0
1 comment

Hi, some additional data is needed to identify the issue:

- Is the issue reproduced with any test or a specific test?

- Is it possible to provide a code sample to reproduce the issue?

- Could you please provide a screenshot of your test run/debug configuration, and the line you use to start the test from the terminal?

0

Please sign in to leave a comment.