question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

aiohttp 2.0 incompatibility

See original GitHub issue

Looks 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:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
honzakralcommented, Jul 25, 2017

@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!

1reaction
hellysmilecommented, Jul 25, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found