Repository: pytest-dev/pytest-asyncio

Issue #104: Can't import transfer_markers in pytest 4.1.0
Created: 2019-01-06T16:58:30Z
from _pytest.python import transfer_markers

Env
pytest==4.1.0
pytest-asyncio==0.9.0
Output
Traceback (most recent call last):
  File "/home/kradem/.virtualenvs/project/bin/pytest", line 11, in <module>
    sys.exit(main())
  File "/home/kradem/.virtualenvs/project/lib/python3.6/site-packages/_pytest/config/__init__.py", line 61, in main
    config = _prepareconfig(args, plugins)
  File "/home/kradem/.virtualenvs/project/lib/python3.6/site-packages/_pytest/config/__init__.py", line 196, in _prepareconfig
    pluginmanager=pluginmanager, args=args
  File "/home/kradem/.virtualenvs/project/lib/python3.6/site-packages/pluggy/hooks.py", line 284, in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
  File "/home/kradem/.virtualenvs/project/lib/python3.6/site-packages/pluggy/manager.py", line 67, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/home/kradem/.virtualenvs/project/lib/python3.6/site-packages/pluggy/manager.py", line 61, in <lambda>
    firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
  File "/home/kradem/.virtualenvs/project/lib/python3.6/site-packages/pluggy/callers.py", line 203, in _multicall
    gen.send(outcome)
  File "/home/kradem/.virtualenvs/project/lib/python3.6/site-packages/_pytest/helpconfig.py", line 93, in pytest_cmdline_parse
    config = outcome.get_result()
  File "/home/kradem/.virtualenvs/project/lib/python3.6/site-packages/pluggy/callers.py", line 80, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/home/kradem/.virtualenvs/project/lib/python3.6/site-packages/pluggy/callers.py", line 187, in _multicall
    res = hook_impl.function(*args)
  File "/home/kradem/.virtualenvs/project/lib/python3.6/site-packages/_pytest/config/__init__.py", line 652, in pytest_cmdline_parse
    self.parse(args)
  File "/home/kradem/.virtualenvs/project/lib/python3.6/site-packages/_pytest/config/__init__.py", line 838, in parse
    self._preparse(args, addopts=addopts)
  File "/home/kradem/.virtualenvs/project/lib/python3.6/site-packages/_pytest/config/__init__.py", line 784, in _preparse
    self.pluginmanager.load_setuptools_entrypoints("pytest11")
  File "/home/kradem/.virtualenvs/project/lib/python3.6/site-packages/pluggy/manager.py", line 267, in load_setuptools_entrypoints
    plugin = ep.load()
  File "/home/kradem/.virtualenvs/project/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2346, in load
    return self.resolve()
  File "/home/kradem/.virtualenvs/project/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2352, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/home/kradem/.virtualenvs/project/lib/python3.6/site-packages/_pytest/assertion/rewrite.py", line 308, in load_module
    six.exec_(co, mod.__dict__)
  File "/home/kradem/.virtualenvs/project/lib/python3.6/site-packages/pytest_asyncio/plugin.py", line 8, in <module>
    from _pytest.python import transfer_markers
ImportError: cannot import name 'transfer_markers'

Duplicate issue #106: Can't import _pytest.python.transfer_markers
Created: 2019-01-06T17:18:30Z
Hello,
I have pytest 4.1.0 installed, and after installing pytest-asyncio i got this error trying to run pytest
  File "/usr/local/lib/python3.5/dist-packages/pytest_asyncio/plugin.py", line 8, in <module>
    from pytest.python import transfer_markers
ImportError: cannot import name 'transfer_markers'

I bypassed this problem installing pytest 4.0.2
pip install pytest==4.0.2

But i think it still a bug for the 4.1.0 version
Best regards

Closing comment (2019-01-06T21:57:10Z): Duplicate of #104