You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/app/logshipper.py", line 14, in <module>
import opensearchpy
File "/app/opensearchpy/__init__.py", line 47, in <module>
from ._async.*** import AsyncOpenSearch
File "/app/opensearchpy/_async/***/__init__.py", line 44, in <module>
from ..transport import AsyncTransport, TransportError
File "/app/opensearchpy/_async/transport.py", line 35, in <module>
from opensearchpy.connection.base import Connection
File "/app/opensearchpy/connection/__init__.py", line 30, in <module>
from .http_async import AsyncHttpConnection
File "/app/opensearchpy/connection/http_async.py", line 19, in <module>
from .._async._extra_imports import aiohttp, aiohttp_exceptions *** type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/opensearchpy/_async/_extra_imports.py", line 43, in <module>
import aiohttp
ModuleNotFoundError: No module named 'aiohttp'
What is the bug?
Looks like originating from this change:
https://github.com/opensearch-project/opensearch-py/pull/563/files#diff-0ce918db323e76243e4d256deb3f7f8f173c3166a1cea914752b1761f1b0442f
How can one reproduce the bug?
Install opensearch-py==2.4.0 w/o aiohttp and attempt to import it
What is the expected behavior?
Importing opensearch w/o aiohttp installed works
What is your host/environment?
Operating system, version.
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered: