aiohttp 2.0 incompatibility
See original GitHub issueLooks like elasticsearch-py-async is incompatible with the 2.0 version of aiohttp. Reason: recently I started getting the following error:-
File ".../lib/python3.5/site-packages/elasticsearch_async/__init__.py", line 1, in <module>
from .transport import AsyncTransport
File ".../lib/python3.5/site-packages/elasticsearch_async/transport.py", line 8, in <module>
from .connection import AIOHttpConnection
File ".../lib/python3.5/site-packages/elasticsearch_async/connection.py", line 4, in <module>
from aiohttp.errors import FingerprintMismatch, ClientError
ImportError: No module named 'aiohttp.errors'
Also on checking the master branch I couldn’t find a module by the name aiohttp.errors
however I found it on the 1.3
branch not to mention that forcing the aiohttp
version down to 1.3 also got rid of the error for me.
So wanted to suggest to fix the aiohttp
version to >1.3,<2.0
till elasticsearch_async is migrated to use aiohttp
2.0
PS: Still in my early stages of python so feel free to correct me at any point
Issue Analytics
- State:
- Created 6 years ago
- Reactions:8
- Comments:8 (3 by maintainers)
Top Results From Across the Web
aiohttp 2.0.0 - PyPI
Web-server has middlewares and pluggable routing. Getting started. Client. To retrieve something from the web: import aiohttp import ...
Read more >Changelog — aiohttp 3.8.3 documentation
Fixed Python 3.11 incompatibilities by using Cython 0.29.25. ... Ensure sending a zero byte file does not throw an exception (round 2) #5380....
Read more >Welcome to AIOHTTP — aiohttp 3.8.3 documentation
Asynchronous HTTP Client/Server for asyncio and Python. ... It's Apache 2 licensed and freely available. ... aiohttp keeps backward compatibility.
Read more >Welcome to AIOHTTP — aiohttp 4.0.0a2.dev0 documentation
Asynchronous HTTP Client/Server for asyncio and Python. ... It's Apache 2 licensed and freely available. ... aiohttp keeps backward compatibility.
Read more >v3.7.2 PDF - aiohttp Documentation
aiohttp Documentation, Release 3.7.2. Asynchronous HTTP Client/Server for asyncio and Python. Current version is 3.7.2. CONTENTS.
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
@bmlis I am waiting for the author of the PR to make suggested changes, if I don’t hear anything I will address those myself next week and do a release. Sorry about the delays!
sorry for possible off-topic, but we have started support our own, very similar driver, with some asyncio\aiohttp additional features.
You are more then welcome to take a look https://github.com/wikibusiness/aioelasticsearch