Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

Add pytest >= 2.9.2 compatibility feature #101

Closed
OlehKuzovkov opened this issue Jun 20, 2016 · 15 comments
Closed

Add pytest >= 2.9.2 compatibility feature #101

OlehKuzovkov opened this issue Jun 20, 2016 · 15 comments

Comments

@OlehKuzovkov
Copy link

So far pytest-allure-adaptor is not working with the latest pytest 2.9.2.

Could you please fix it?

Thank you.

@Yelisey
Copy link

Yelisey commented Aug 4, 2016

Есть решения уже костыльные по этому поводу?

@OlehKuzovkov
Copy link
Author

Неа, использую pytest 2.9.0 :(

@heartwilltell
Copy link

pytest 3.0.3 was released so long ago, but the fix is ​​still not ready yet

@aleksmt
Copy link

aleksmt commented Nov 2, 2016

Which python (2.7, 3.4[5]) you use with the adaptor?

@shat00n
Copy link

shat00n commented Nov 2, 2016

Python 3.5

@heartwilltell
Copy link

3.5

@anton7811
Copy link

The same issue with python 2.7

@fess77
Copy link

fess77 commented Nov 2, 2016

3.5

1 similar comment
@alexandr85
Copy link

3.5

@sridharaiyer
Copy link

Hello experts. I am getting an error when I run -
`pytest --alluredir

Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 510, in load_setuptools_entrypoints
plugin = ep.load()
File "/usr/local/lib/python3.5/site-packages/pkg_resources/init.py", line 2229, in load
self.require(*args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/pkg_resources/init.py", line 2246, in require
items = working_set.resolve(reqs, env, installer)
File "/usr/local/lib/python3.5/site-packages/pkg_resources/init.py", line 834, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (pytest 3.0.5 (/usr/local/lib/python3.5/site-packages), Requirement.parse('pytest<=2.9.0,>=2.7.3'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/pytest", line 11, in
sys.exit(main())
File "/usr/local/lib/python3.5/site-packages/_pytest/config.py", line 47, in main
config = _prepareconfig(args, plugins)
File "/usr/local/lib/python3.5/site-packages/_pytest/config.py", line 156, in _prepareconfig
pluginmanager=pluginmanager, args=args)
File "/usr/local/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 745, in call
return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
File "/usr/local/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 339, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File "/usr/local/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 334, in
_MultiCall(methods, kwargs, hook.spec_opts).execute()
File "/usr/local/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 613, in execute
return _wrapped_call(hook_impl.function(*args), self.execute)
File "/usr/local/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 250, in _wrapped_call
wrap_controller.send(call_outcome)
File "/usr/local/lib/python3.5/site-packages/_pytest/helpconfig.py", line 32, in pytest_cmdline_parse
config = outcome.get_result()
File "/usr/local/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 279, in get_result
raise ex[1].with_traceback(ex[2])
File "/usr/local/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 265, in init
self.result = func()
File "/usr/local/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 614, in execute
res = hook_impl.function(*args)
File "/usr/local/lib/python3.5/site-packages/_pytest/config.py", line 910, in pytest_cmdline_parse
self.parse(args)
File "/usr/local/lib/python3.5/site-packages/_pytest/config.py", line 1067, in parse
self._preparse(args, addopts=addopts)
File "/usr/local/lib/python3.5/site-packages/_pytest/config.py", line 1029, in _preparse
self.pluginmanager.load_setuptools_entrypoints(entrypoint_name)
File "/usr/local/lib/python3.5/site-packages/_pytest/vendored_packages/pluggy.py", line 515, in load_setuptools_entrypoints
"Plugin %r could not be loaded: %s!" % (ep.name, e))
_pytest.vendored_packages.pluggy.PluginValidationError: Plugin 'allure_adaptor' could not be loaded: (pytest 3.0.5 (/usr/local/lib/python3.5/site-packages), Requirement.parse('pytest<=2.9.0,>=2.7.3'))!'

@sridharaiyer
Copy link

Python 3.5
Pytest 3.0.5
pytest-allure-adaptor (1.7.6)
Mac OS

Urgent help is appreciated.

@AlinMihut
Copy link

AlinMihut commented Jan 21, 2017

Hi,

I stumble across the same error as @sridharaiyer. Can you please take care of this issue ?

Regards

@mbhagavathula
Copy link

Same error as @sridharaiyer is observed in my setup. Is there any fix for this issue?

@SergeyPirogov
Copy link

Fixed in #110

@baev
Copy link
Member

baev commented Jun 26, 2017

@baev baev closed this as completed Jun 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests