Trying to use elastic search for a project.
from elasticsearch import Elasticsearch
es = Elasticsearch(
"https://example.com",
http_auth=("abc", "bcd"),
)
But getting the error:
ValueError: URL must include a 'scheme', 'host', and 'port' component (ie 'https://localhost:9200')
I am running this on Pycharm CE and have created a Virtual Environment of Python 3.9 .
Should I be using a different version of Python to make this work??
Moreover, I have already tried pip install acryl-datahub[datahub-rest,elasticsearch]==0.8.27.1
but to no avail.