Hi Sebastian/Bernhard,
I am unsure why es bot fails with error below, I have installed pip3 install elasticsearch==7.12 I have checked every single dependency error then too why does it fail.
Bot initialization failed. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/intelmq/lib/bot.py", line 164, in __init__ self.init() File "/usr/lib/python3/dist-packages/intelmq/bots/outputs/elasticsearch/output.py", line 58, in init raise MissingDependencyError('elasticsearch', version='>=5.0.0,<6.0.0') intelmq.lib.exceptions.MissingDependencyError: Could not load dependency 'elasticsearch', please install it with apt/yum/dnf/zypper (possibly named python3-elasticsearch) or pip3. Please note that this bot requires elasticsearch version >=5.0.0,<6.0.0!
Requesting to guide me on this.
Regards, Drupad Soni. Security Researcher. +918140283894. drupad8140@gmail.com Twitter: @drupad8140
Hi Drupad,
Am Donnerstag, 15. April 2021, 08:44:39 CEST schrieb Drupad Soni:
I have installed pip3 install elasticsearch==7.12
raise MissingDependencyError('elasticsearch', version='>=5.0.0,<6.0.0')
There have been improvements in this code for the next version, but the real reason for an import problem maybe hidden.
The general approach I think an administrator/devs would do is * check the python import lines in question. You can use this in python3 command line as brief test.
from elasticsearch import Elasticsearch
is the line from https://github.com/certtools/intelmq/blob/develop/intelmq/bots/outputs/ elasticsearch/output.py#L17
If you enter it in a python3 prompt, you'll see what the problem with the import really is.
Example: python3 [..]
from elasticsearch import Elasticsearch
[..] ModuleNotFoundError: No module named 'elasticsearch'
Your reason probably is different.
Regards, Bernhard
HI Bernhard,
I executed a few commands
pip3 install elasticsearch pip install elasticsearch
later I executed elasticmapper file
Now ES bot is working and I am to see feeds in ES host.
Thanks! Regards, Drupad Soni. Security Researcher. +918140283894. drupad8140@gmail.com Twitter: @drupad8140
On Thu, Apr 15, 2021 at 2:50 PM Bernhard Reiter bernhard@intevation.de wrote:
Hi Drupad,
Am Donnerstag, 15. April 2021, 08:44:39 CEST schrieb Drupad Soni:
I have installed pip3 install elasticsearch==7.12
raise MissingDependencyError('elasticsearch',
version='>=5.0.0,<6.0.0')
There have been improvements in this code for the next version, but the real reason for an import problem maybe hidden.
The general approach I think an administrator/devs would do is
- check the python import lines in question. You can use this in python3 command line as brief test.
from elasticsearch import Elasticsearch
is the line from https://github.com/certtools/intelmq/blob/develop/intelmq/bots/outputs/ elasticsearch/output.py#L17 https://github.com/certtools/intelmq/blob/develop/intelmq/bots/outputs/elasticsearch/output.py#L17
If you enter it in a python3 prompt, you'll see what the problem with the import really is.
Example: python3 [..]
from elasticsearch import Elasticsearch
[..] ModuleNotFoundError: No module named 'elasticsearch'
Your reason probably is different.
Regards, Bernhard -- www.intevation.de/~bernhard +49 541 33 508 3-3 Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998 Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner-- List settings: https://lists.cert.at/cgi-bin/mailman/listinfo/intelmq-users IntelMQ Documentation: https://intelmq.readthedocs.io/
Hi Drupad,
Am Donnerstag, 15. April 2021, 13:57:57 CEST schrieb Drupad Soni:
I executed a few commands pip3 install elasticsearch pip install elasticsearch later I executed elasticmapper file
Now ES bot is working and I am to see feeds in ES host.
cool! (Any idea what was the problem or what solved it in partivular?)
Regards, Bernhard