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
I have a project with a folder named events and after updating the opensearch-py from 2.5 to 2.6, where the service time metrics was added, I'm receiving the error below because python tries to import the Events from my project's home directory and not from the Events lib.
As events is a common name for folders and it might cause some trouble with other people too, do you have any suggestion for fixing this issue without renaming my project's folder to another name?
File "/home/[redacted]/venv/lib/python3.11/site-packages/opensearchpy/metrics/metrics_events.py", line 13, in <module>
from events import Events
ImportError: cannot import name 'Events' from 'events'
How can one reproduce the bug?
Add a folder events to your project and them call from opensearchpy import OpenSearch
What is your host/environment?
python3.11 + ubuntu 20 + opensearch 2.6
The text was updated successfully, but these errors were encountered:
What is the bug?
I have a project with a folder named
events
and after updating the opensearch-py from 2.5 to 2.6, where theservice time metrics
was added, I'm receiving the error below because python tries to import theEvents
from my project's home directory and not from the Events lib.As
events
is a common name for folders and it might cause some trouble with other people too, do you have any suggestion for fixing this issue without renaming my project's folder to another name?How can one reproduce the bug?
Add a folder
events
to your project and them callfrom opensearchpy import OpenSearch
What is your host/environment?
python3.11 + ubuntu 20 + opensearch 2.6
The text was updated successfully, but these errors were encountered: