MISP / misp-cloud

misp-cloud - Cloud-ready images of MISP
72 stars 16 forks source link

STIX exports do not work #2

Closed RichieB2B closed 6 years ago

RichieB2B commented 6 years ago

STIX exports are not working using MISP-1530551484 - ami-0117e2d0cce81850d on eu-west-1. app/tmp/logs/exec-errors.log says:

Traceback (most recent call last):
  File "/var/www/MISP/app/files/scripts/misp2stix_framing.py", line 3, in <module>
    from stix.indicator import Indicator
ImportError: No module named 'stix'

Most likely this is because the libraries are installed for python2 instead of python3:

root@ip-x-y:/var/www/MISP# python3 app/files/scripts/stixtest.py 
{"pymisp": "2.4.93", "success": 0, "stix": 0, "cybox": 0, "mixbox": 0, "maec": 0}
root@ip-x-y:/var/www/MISP# python2 app/files/scripts/stixtest.py 
WARNING [abstract.py:19 - <module>() ] You're using python 2, it is strongly recommended to use python >=3.5
WARNING [mispevent.py:26 - <module>() ] You're using python 2, it is strongly recommended to use python >=3.5
WARNING [api.py:31 - <module>() ] You're using python 2, it is strongly recommended to use python >=3.5
{"pymisp": "2.4.93", "maec": 0, "stix": "1.1.1.4", "success": 0, "mixbox": "1.0.2", "cybox": "2.1.0.12"}