MISP / MISP-maltego

Set of Maltego transforms to inferface with a MISP Threat Sharing instance, and also to explore the whole MITRE ATT&CK dataset.
GNU Affero General Public License v3.0
166 stars 46 forks source link

AttributeError: type object 'meta' has no attribute 'namespace' in safedexml packages #60

Open kluo84 opened 1 year ago

kluo84 commented 1 year ago

I got the error why trying to run canari create-profile MISP_maltego

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/canari/pkgutils/maltego.py", line 537, in __del__
    self.close()
  File "/usr/local/lib/python3.7/site-packages/canari/pkgutils/maltego.py", line 812, in close
    self._write_pending()
  File "/usr/local/lib/python3.7/site-packages/canari/pkgutils/maltego.py", line 722, in _write_pending
    self.write_file(transform_set_def['filename'], transform_set_xml)
  File "/usr/local/lib/python3.7/site-packages/canari/pkgutils/maltego.py", line 705, in write_file
    contents = contents.render(encoding='utf-8', fragment=True, pretty=True)
  File "/usr/local/lib/python3.7/site-packages/safedexml/__init__.py", line 419, in render
    data.extend(self._render(nsmap))
  File "/usr/local/lib/python3.7/site-packages/safedexml/__init__.py", line 461, in _render
    if self.meta.namespace:
AttributeError: type object 'meta' has no attribute 'namespace'

I see there was a Meta class, but I changed Meta to meta, it still didn't work. Have no clue how to fix this. Please advise.

LookingAround456 commented 5 months ago

Did you get it fixed? i am running into the same problem.

cvandeplas commented 5 months ago

Canari is unfortunately not maintained anymore. This can cause issues when trying to install MISP Maltego. the good news is that a new MISP & Maltego integration is coming soon. In the meantime the best might be to either try on an older python version, or use the integration in the transform hub.