Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'cybox.utils' has no attribute 'set_id_namespace' #6

Open
mmali277 opened this issue Apr 5, 2018 · 3 comments
Labels

Comments

@mmali277
Copy link

mmali277 commented Apr 5, 2018

the following code
cybox.utils.set_id_namespace(NS)
gives this error
AttributeError: module 'cybox.utils' has no attribute 'set_id_namespace'

@gtback
Copy link
Contributor

gtback commented Apr 5, 2018

Hi @mmali277, thanks for creating the issue! As you can probably tell, this script is pretty old and has not been updated in a while. It's likely not compatible with the latest version of python-cybox.

It shouldn't be too much work to update it, but I also wanted to ask if there was a particular reason you are using the older CybOX 2.1 compared to the newer Cyber Observables in STIX 2.1? We don't yet have a email translator that supports STIX 2.1, but would be happy to help you if you have any questions. The code in this repo would be a good starting point, and creating STIX 2.0 JSON is much easier in Python than creating XML.

@mmali277
Copy link
Author

Hi @gtback, thanks for the reply. I just started studying cybox and stix for research purposes of my academic carrier. I am assigned to study cybox first and then to continue to stix, therefore i was using cybox 2.1. I needed a sample to study, therefore i used this, script.

@gtback
Copy link
Contributor

gtback commented Apr 10, 2018

I would start by trying to use an older version of python-cybox. Try pip install cybox==2.1.0.12 and see if the problem is resolved.

@gtback gtback added the bug label Jul 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants