Closed TimurNurlygayanov closed 7 years ago
New plugin is not compatible with old version. It use same entry points and module names. Please uninstall old plugin and try again.
sseliverstov, it was a new installation with the latest version of the plugin.
The root of the issue not in different versions of the plugin, but in two different test executions which use the same folder for allure reports.
Have faced with the same problem.
C:\Users\igor.k\AppData\Local\Programs\Python\Python36\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2017.1.2\helpers\pycharm_jb_pytest_runner.py" --path C:/Users/igor.k/.PyCharmCE2017.1/snaapy/snaapy-ui-tests/Tests/Tests_customer_dashboard
Testing started at 1:31 PM ...
Launching py.test with arguments C:/Users/igor.k/.PyCharmCE2017.1/snaapy/snaapy-ui-tests/Tests/Tests_customer_dashboard in C:\Users\igor.k.PyCharmCE2017.1\snaapy\snaapy-ui-tests\Tests\Tests_customer_dashboard
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.1.2\helpers\pycharm_jb_pytest_runner.py", line 27, in
Process finished with exit code 1 Empty test suite.
Please, advice
Can you say plugin version?
It is happens when are both versions of allure plugin installed. Uninstall all allure plugins and allure-python-commons, then install one of your prefer version. Sometimes pip don't deletes files from .../site-packages/. If this issue stay actual, please, delete allure files from .../site-packages/ manually.
How To Reproduce: 1) Run PyTest command with allure report 2) Run the same command one more time (with the same path to allure reports)
Expected Result: Everything works just fine.
Observed Result: PyTest crashed with "Plugin already registered" error:
========================================================= ERRORS ========================================================= _____ ERROR collecting ____ testdev/local/lib/python2.7/site-packages/py/_path/common.py:367: in visit for x in Visitor(fil, rec, ignore, bf, sort).gen(self): testdev/local/lib/python2.7/site-packages/py/_path/common.py:416: in gen for p in self.gen(subdir): testdev/local/lib/python2.7/site-packages/py/_path/common.py:416: in gen for p in self.gen(subdir): testdev/local/lib/python2.7/site-packages/py/_path/common.py:416: in gen for p in self.gen(subdir): testdev/local/lib/python2.7/site-packages/py/_path/common.py:416: in gen for p in self.gen(subdir): testdev/local/lib/python2.7/site-packages/py/_path/common.py:416: in gen for p in self.gen(subdir): testdev/local/lib/python2.7/site-packages/py/_path/common.py:406: in gen if p.check(dir=1) and (rec is None or rec(p))]) testdev/local/lib/python2.7/site-packages/_pytest/main.py:682: in _recurse ihook = self.gethookproxy(path) testdev/local/lib/python2.7/site-packages/_pytest/main.py:587: in gethookproxy my_conftestmodules = pm._getconftestmodules(fspath) testdev/local/lib/python2.7/site-packages/_pytest/config.py:339: in _getconftestmodules mod = self._importconftest(conftestpath) testdev/local/lib/python2.7/site-packages/_pytest/config.py:375: in _importconftest self.consider_conftest(mod) testdev/local/lib/python2.7/site-packages/_pytest/config.py:398: in consider_conftest if self.register(conftestmodule, name=conftestmodule.file): testdev/local/lib/python2.7/site-packages/_pytest/config.py:250: in register ret = super(PytestPluginManager, self).register(plugin, name) testdev/local/lib/python2.7/site-packages/_pytest/vendored_packages/pluggy.py:351: in register (plugin_name, plugin, self._name2plugin)) E ValueError: Plugin already registered: /home/qawizard/automated-tests/testdev/lib/python2.7/site-packages/pandas/conftest.py=<module 'pandas.conftest' from '/home/qawizard/automated-tests/testdev/lib/python2.7/site-packages/pandas/conftest.py'> E {'cacheprovider': <module '_pytest.cacheprovider' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/cacheprovider.pyc'>, 'debugging': <module '_pytest.debugging' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/debugging.pyc'>, 'pytestconfig': <_pytest.config.Config object at 0x7ff5b3a34690>, 'helpconfig': <module '_pytest.helpconfig' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/helpconfig.pyc'>, 'runner': <module '_pytest.runner' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/runner.pyc'>, 'unittest': <module '_pytest.unittest' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/unittest.pyc'>, '140693277582352': <_pytest.config.PytestPluginManager object at 0x7ff5b4d52410>, 'xdist': <module 'xdist.plugin' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/xdist/plugin.py'>, 'pastebin': <module '_pytest.pastebin' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/pastebin.pyc'>, 'skipping': <module '_pytest.skipping' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/skipping.pyc'>, 'session': <Session 'allure_report'>, 'lfplugin': <_pytest.cacheprovider.LFPlugin instance at 0x7ff5b0479488>, 'fixtures': <module '_pytest.fixtures' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/fixtures.pyc'>, 'tmpdir': <module '_pytest.tmpdir' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/tmpdir.pyc'>, 'capture': <module '_pytest.capture' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/capture.pyc'>, 'terminalreporter': <_pytest.terminal.TerminalReporter instance at 0x7ff5b0481320>, '140693201667792': <pytest_ignore_flaky.PluginIgnoreFlaky object at 0x7ff5b04ec6d0>, '/home/qawizard/automated-tests/testdev/lib/python2.7/site-packages/pylint/test/conftest.py': <module 'conftest' from '/home/qawizard/automated-tests/testdev/lib/python2.7/site-packages/pylint/test/conftest.py'>, '140693201667600': <allure.pytest_plugin.AllureAgregatingListener object at 0x7ff5b04ec610>, 'assertion': <module '_pytest.assertion' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/assertion/init__.pyc'>, 'mark': <module '_pytest.mark' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/mark.pyc'>, 'terminal': <module '_pytest.terminal' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/terminal.pyc'>, 'main': <module '_pytest.main' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/main.pyc'>, 'nose': <module '_pytest.nose' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/nose.pyc'>, 'xdist.boxed': <module 'xdist.boxed' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/xdist/boxed.py'>, 'xdist.looponfail': <module 'xdist.looponfail' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/xdist/looponfail.py'>, '/home/qawizard/automated-tests/testdev/lib/python2.7/site-packages/pandas/conftest.py': <module 'pandas.conftest' from '/home/qawizard/automated-tests/testdev/lib/python2.7/site-packages/pandas/conftest.py'>, '140693201667984': <_pytest.junitxml.LogXML object at 0x7ff5b04ec790>, 'python': <module '_pytest.python' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/python.pyc'>, '/home/qawizard/automated-tests/testdev/lib/python2.7/site-packages/wheel/test/conftest.py': <module 'wheel.test.conftest' from '/home/qawizard/automated-tests/testdev/lib/python2.7/site-packages/wheel/test/conftest.py'>, 'pytest_ignore_flaky': <module 'pytest_ignore_flaky' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/pytest_ignore_flaky.py'>, 'pylint': <module 'pytest_pylint' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/pytest_pylint.py'>, 'recwarn': <module '_pytest.recwarn' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/recwarn.pyc'>, 'funcmanage': <_pytest.fixtures.FixtureManager instance at 0x7ff5b04930e0>, '140693201667728': <allure.pytest_plugin.AllureCollectionListener object at 0x7ff5b04ec690>, 'monkeypatch': <module '_pytest.monkeypatch' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/monkeypatch.pyc'>, 'resultlog': <module '_pytest.resultlog' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/resultlog.pyc'>, 'allure_adaptor': <module 'allure.pytest_plugin' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/allure/pytest_plugin.py'>, '140693201667536': <allure.pytest_plugin.AllureTestListener object at 0x7ff5b04ec5d0>, '/home/qawizard/automated-tests/tests/conftest.py': <module 'tests.conftest' from '/home/qawizard/automated-tests/tests/conftest.py'>, 'setuponly': <module '_pytest.setuponly' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/setuponly.pyc'>, 'capturemanager': <_pytest.capture.CaptureManager instance at 0x7ff5b04e5cf8>, 'junitxml': <module '_pytest.junitxml' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/junitxml.pyc'>, 'doctest': <module '_pytest.doctest' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/doctest.pyc'>, 'timeout': <module 'pytest_timeout' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/pytest_timeout.py'>, 'setupplan': <module '_pytest.setupplan' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/setupplan.pyc'>, 'freeze_support': <module '_pytest.freeze_support' from '/home/qawizard/automated-tests/testdev/local/lib/python2.7/site-packages/_pytest/freeze_support.pyc'>} !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!