CI: ImportError: cannot import name 'AsyncGeneratorType
See original GitHub issuesee eg https://travis-ci.org/crossbario/autobahn-python/jobs/646036129
python/.tox/coverage/bin/python
cachedir: .tox/coverage/.pytest_cache
rootdir: /home/travis/build/crossbario/autobahn-python, inifile: setup.cfg
plugins: asyncio-0.10.0, twisted-1.12
collected 172 items / 7 errors / 165 selected
==================================== ERRORS ====================================
_ ERROR collecting .tox/coverage/lib/python3.5/site-packages/autobahn/asyncio/test/test_asyncio_rawsocket.py _
ImportError while importing test module '/home/travis/build/crossbario/autobahn-python/.tox/coverage/lib/python3.5/site-packages/autobahn/asyncio/test/test_asyncio_rawsocket.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.tox/coverage/lib/python3.5/site-packages/autobahn/asyncio/test/test_asyncio_rawsocket.py:6: in <module>
from autobahn.asyncio.rawsocket import PrefixProtocol, RawSocketClientProtocol, RawSocketServerProtocol, \
.tox/coverage/lib/python3.5/site-packages/autobahn/asyncio/__init__.py:32: in <module>
from autobahn.asyncio.websocket import \
.tox/coverage/lib/python3.5/site-packages/autobahn/asyncio/websocket.py:33: in <module>
txaio.use_asyncio()
.tox/coverage/lib/python3.5/site-packages/txaio/__init__.py:124: in use_asyncio
from txaio import aio
.tox/coverage/lib/python3.5/site-packages/txaio/aio.py:30: in <module>
from types import AsyncGeneratorType
E ImportError: cannot import name 'AsyncGeneratorType'
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
ImportError: cannot import name 'AsyncGenerator' · Issue #530
I may be missing something embarrassingly obvious here, but I'm getting a consistent import error for AsyncGenerator using 3.6.0.
Read more >Cannot get Jupyter Notebook To Run - "Cannot Import Name ...
According to a Github issue related to the same error text: ... a workaraound is to set if TYPE_CHECKING: from typing import AsyncGenerator....
Read more >jupyter notebook cannot import name 'soft_unicode ... - You.com
I encounter this error message when i tried to launch jupyter notebook. Any kind soul can advise how rectify this issue? Traceback (most...
Read more >python/typing - Gitter
Gidday! I'm trying to create an abstract async generator. Mypy doesn't like it. @abstractmethod async def _aenter(self) -> AsyncGenerator[AsyncContextManager[ ...
Read more >typing — Faust 1.9.0 documentation
import abc from abc import abstractmethod, abstractproperty import collections ... Args: name: The name, e.g. 'Pattern'. type_var: The type parameter, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
fix is here https://github.com/crossbario/txaio/pull/157
fix via https://github.com/crossbario/txaio/pull/157