gcrahay / otx_misp

Imports Alienvault OTX pulses to a MISP instance
Other
52 stars 42 forks source link

global name 'jsonschema' is not defined #6

Closed abaykal closed 7 years ago

abaykal commented 7 years ago

otx-misp -o xxxxxx -m xxxxxxx -s https://xxxxxxx/ --timestamp 2016-05-17T07:07:35 -w -vvv

When running the above command, it works with -d option and displays the content

however, when I remove -d, it give me the following error: global name 'jsonschema' is not defined

gcrahay commented 7 years ago

Seems to be a PyMISP related error. I'll investigate...

abaykal commented 7 years ago

if it helps, I am using debian wheezy

gcrahay commented 7 years ago

There were some issues with the current PyMISP versions. I upgraded the otx-misp package to 1.1 and tested it on Wheezy, it should work now.

Steps on a fresh Wheezy install:

root@wheezy:~# apt-get install python-pip
root@wheezy:~# pip install virtualenv

debian@wheezy:~$ virtualenv env-wheezy
debian@wheezy:~$ . env-wheezy/bin/activate
(env-wheezy) debian@wheezy:~$ pip install otx-misp
(env-wheezy) debian@wheezy:~$ otx-misp -c otx.ini -vvv
gcrahay commented 7 years ago

Should be resolved, now.