-
Notifications
You must be signed in to change notification settings - Fork 88
Closed
Milestone
Description
I am working on Parsing TAXII messages with the STIX Package (I've tried 1.1.1.6 and 1.1.1.7) and I am receiving the following exception:
NotImplementedError: Marking structure type not implemented AISMarkingStructure
I can confirm that the AISMarkingStructure is in the etensions/marking/ais.py file:
$ egrep -r -nw "AIS:AISMarkingStructure" lib/
lib/python2.7/site-packages/stix/test/extensions/marking/ais.py:18: 'xsi:type': 'AIS:AISMarkingStructure'
lib/python2.7/site-packages/stix/test/extensions/marking/ais.py:31: 'xsi:type': 'AIS:AISMarkingStructure'
lib/python2.7/site-packages/stix/extensions/marking/ais.py:304: _XSI_TYPE = "AIS:AISMarkingStructure"
I have cleared the pip cache and recreated my virtualenv thinking it may have been a cacheing error.
Here's the Python Code that's creating the document:
...
from stix.core import STIXPackage
#Using XML dump from test TAXII Message. Below command created the testAIS.taxii file
#print taxii_message.content_blocks[0].content
stix_package = STIXPackage.from_xml('/tmp/testAIS.taxii')
And the exception:
File "local/lib/python2.7/site-packages/stix/bindings/data_marking.py", line 352, in buildChildren
raise NotImplementedError('Marking structure type not implemented ' + typeinfo.typename)
NotImplementedError: Marking structure type not implemented AISMarkingStructure