cudeso / misp2sentinel

MISP to Sentinel integration
MIT License
52 stars 17 forks source link

ModuleNotFoundError #91

Closed aliman53 closed 2 months ago

aliman53 commented 2 months ago

Hi @cudeso,

Receiving this error when running the script, have the latest version.

we will officially deprecate python versions below 3.10 on January 1st 2024. Please update your codebase. from pymisp import * Traceback (most recent call last): File "script.py", line 2, in import config ModuleNotFoundError: No module named 'config'

image

cudeso commented 2 months ago

This means the config.py , the main configuration file, is not present in the directory where you execute the script. Maybe it's not readable by the user you use to execute the sync, or it has been removed?

aliman53 commented 2 months ago

Hi I can see the config.py file in the directory, i have not changed any permissions and im executing the script as root user.

cudeso commented 2 months ago

Hello. Are you running the script from the directory where the config.py file is stored?

aliman53 commented 2 months ago

Yes

Below is the contents of the directory i'm running out of: image

cudeso commented 2 months ago

In the screenshot there is no config.py. The config.py.default is the default file from the repository. You need to copy it to config.py and then add your configuration settings.

aliman53 commented 2 months ago

Thank you, works now :)