Open julianogv opened 4 months ago
Should it be importing from the lib? Is this something we can/need to change in the library? If you know how, please PR?
Yep, we are hitting this issue too. We have an events folder and get the same error when we try to update to 2.6
@fnitsche, @julianogv, would you be interested in contributing a fix for this issue? Thanks!
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. Asevents
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