[root@-centos www]# eland_import_hub_model
Traceback (most recent call last):
File "/usr/local/bin/eland_import_hub_model", line 34, in <module>
from elastic_transport.client_utils import DEFAULT
File "/usr/local/lib/python3.10/site-packages/elastic_transport/__init__.py", line 22, in <module>
from ._async_transport import AsyncTransport as AsyncTransport
File "/usr/local/lib/python3.10/site-packages/elastic_transport/_async_transport.py", line 34, in <module>
from ._exceptions import (
File "/usr/local/lib/python3.10/site-packages/elastic_transport/_exceptions.py", line 20, in <module>
from ._models import ApiResponseMeta
File "/usr/local/lib/python3.10/site-packages/elastic_transport/_models.py", line 21, in <module>
import ssl
File "/usr/local/lib/python3.10/ssl.py", line 99, in <module>
import _ssl # if we can't import it, let the error propagate
ModuleNotFoundError: No module named '_ssl'
Hello @laoyang360,
Apparently, the _ssl module is missing in your Python environment.
Are you connecting to a self-managed cluster?
I would check if the OpenSSL library is installed and then I would try to import the model again.
Thanks for your reply! But when I reinstall python 10.3.6 using “./configure --with-openssl=/www/openssl-1.1.1l“, The above error is still exist! I want to know if there has another way for import a self model ??
Thanks for the additional context.
I have some questions,
Which model are you trying to import?
Which Elastic version are you using?
Can you show me how you're trying to import the model?
Another way, you mean, using Eland without installing it? You can build the Docker container to run the available scripts:
docker build -t elastic/eland
You can read more about it here.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.