Project

General

Profile

Prelude-correlator load failure

Added by Pierre R about 2 years ago

[FR]

Bonjour,

Je suis sous CentOS 7 et j'essaie d'installer Prelude.
En suivant la documentation tout semble fonctionner, prelude-manager est opérationnel ainsi que prelude-lml, mais lorsque je start prelude-correlator, celui-ci plante et m'affiche ceci comme erreur:

● prelude-correlator.service - Correlator of events received by Prelude
   Loaded: loaded (/usr/lib/systemd/system/prelude-correlator.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since sam. 2020-03-28 17:16:25 CET; 4 days ago
  Process: 30510 ExecStart=/usr/sbin/prelude-correlator (code=exited, status=1/FAILURE)
 Main PID: 30510 (code=exited, status=1/FAILURE)

mars 28 17:16:25 localhost.localdomain prelude-correlator[30510]: File "/usr/lib/python3.6/site-packages/preludecorrelator/main.py", line 274, in runCorrelator
mars 28 17:16:25 localhost.localdomain prelude-correlator[30510]: env.load_plugins()
mars 28 17:16:25 localhost.localdomain prelude-correlator[30510]: File "/usr/lib/python3.6/site-packages/preludecorrelator/main.py", line 76, in load_plugins
mars 28 17:16:25 localhost.localdomain prelude-correlator[30510]: self.pluginmanager.check_dependencies()
mars 28 17:16:25 localhost.localdomain prelude-correlator[30510]: File "/usr/lib/python3.6/site-packages/preludecorrelator/pluginmanager.py", line 216, in check_dependencies
mars 28 17:16:25 localhost.localdomain prelude-correlator[30510]: all_plugins.remove(plugin)
mars 28 17:16:25 localhost.localdomain prelude-correlator[30510]: AttributeError: 'dict_keys' object has no attribute 'remove'
mars 28 17:16:25 localhost.localdomain systemd[1]: prelude-correlator.service: main process exited, code=exited, status=1/FAILURE
mars 28 17:16:25 localhost.localdomain systemd[1]: Unit prelude-correlator.service entered failed state.
mars 28 17:16:25 localhost.localdomain systemd[1]: prelude-correlator.service failed.

En cherchant un peu, l'attribut qui semble problématique, "dict_keys", peut être dû à Python3.6, d'après ce que j'ai compris il n'y aurait pas de souci avec Python2.7, mais je ne suis pas sur de cela.

Quelqu'un aurait une idée ? Merci d'avance.

Pierre31

[EN]

Hello,

I'm on CentOS 7 and I'm trying to install Prelude.
Following the documentation everything seems to work, prelude-manager is operational as well like prelude-lml, but when I start prelude-correlator, it crashes and shows me this as an error:

● prelude-correlator.service - Correlator of events received by Prelude
   Loaded: loaded (/usr/lib/systemd/system/prelude-correlator.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since sam. 2020-03-28 17:16:25 CET; 4 days ago
  Process: 30510 ExecStart=/usr/sbin/prelude-correlator (code=exited, status=1/FAILURE)
 Main PID: 30510 (code=exited, status=1/FAILURE)

mars 28 17:16:25 localhost.localdomain prelude-correlator[30510]: File "/usr/lib/python3.6/site-packages/preludecorrelator/main.py", line 274, in runCorrelator
mars 28 17:16:25 localhost.localdomain prelude-correlator[30510]: env.load_plugins()
mars 28 17:16:25 localhost.localdomain prelude-correlator[30510]: File "/usr/lib/python3.6/site-packages/preludecorrelator/main.py", line 76, in load_plugins
mars 28 17:16:25 localhost.localdomain prelude-correlator[30510]: self.pluginmanager.check_dependencies()
mars 28 17:16:25 localhost.localdomain prelude-correlator[30510]: File "/usr/lib/python3.6/site-packages/preludecorrelator/pluginmanager.py", line 216, in check_dependencies
mars 28 17:16:25 localhost.localdomain prelude-correlator[30510]: all_plugins.remove(plugin)
mars 28 17:16:25 localhost.localdomain prelude-correlator[30510]: AttributeError: 'dict_keys' object has no attribute 'remove'
mars 28 17:16:25 localhost.localdomain systemd[1]: prelude-correlator.service: main process exited, code=exited, status=1/FAILURE
mars 28 17:16:25 localhost.localdomain systemd[1]: Unit prelude-correlator.service entered failed state.
mars 28 17:16:25 localhost.localdomain systemd[1]: prelude-correlator.service failed.

Looking a little, the seems problematic attribute, "dict_keys", may be due to Python3.6, from what I understand there would be no problem with Python2.7, but I don't am not sure about that.

Someone would have any idea ? Thank you.

Pierre31


Replies (2)

RE: Prelude-correlator load failure - Added by Antoine LUONG about 2 years ago

Hello,

There is indeed an issue with the CentOS 7 packaging, where Python 2.7 should be used for prelude-correlator 5.0.

The latest version of the correlator (5.1) fixes this compatibility issue with Python 3.

Regards

RE: Prelude-correlator load failure - Added by Pierre R about 2 years ago

Sorry for my late answer.

My problem is resolved, thank you so much :) !

Regards,
Pierre31

    (1-2/2)