-
Notifications
You must be signed in to change notification settings - Fork 20
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
Missing maec.utils.idgen module #74
Comments
Thanks for the fast reply. I found the module in mixbox, but of course it is a bit difficult to follow the manual this way. I got the example working like this (have to improve on my Python skills and how to write the import statements properly...)
|
Glad you got it working! We'll have to update the documentation to take into account the mixbox-related changes :) |
Posting a comment here because it's super related to an issue I posted in python-stix yesterday: STIXProject/python-stix#280 :D I agree with everything @ikiril01 said and generally speaking, sticking to the official releases on PyPI is a safer bet than writing code against the latest commit on Thanks for posting the issue and glad to see you got things working! We're cranking away at all this stuff so it should hopefully stabilize a lot more in the near future! |
Hi guys,
With this, my converter finds all imports, but I wonder why pip doesn't automatically give me the latest official release? |
Hi @abulhol, thanks for reporting this. I thought that the 'dev' releases were hidden so they shouldn't be installed with |
PyPI is messed up a bit at the moment anyway, if you look for maec or cybox using the "search" box, it won't find them. This has something to do with the indexing and has been reported by many users in their issue tracker. |
@abulhol: What version of pip? I seem to remember that some versions of pip installed "pre-release" versions (like 2.1.0.13.dev2) of packages by default, but that's no longer the case. @ikiril01: I'm not sure if "hiding" a package on PyPI actually keeps pip from downloading them. I know you can explicitly request an old version (like maec=4.1.0.0), and I'm pretty sure "hiding" only affects the web interface. Try |
@gtback: On Ubuntu, I use python-pip 1.0-1build1 (with Python 2.7) I have not changed any settings for pip, so it seems to be the default behavior. |
That version of pip is pretty old (the latest is 7.1.2, but Ubuntu typically lags behind that quite a bit). That explains why While the mixbox refactor is ongoing, you'll need to explicitly install the specific versions of cybox (4.1.0.12) and maec (2.1.0.12) like you did above, or upgrade to a newer version of pip. |
Thanks for looking into this! |
I have just started working python-maec, installed the required dependencies and tried out the examples, but some classes and methods are missing.
In particular, the idgen module is missing (see http://maec.readthedocs.org/en/stable/api/utils/idgen.html), and I cannot find the functions set_id_namespace and set_id_method
(see example from manual here: http://maec.readthedocs.org/en/stable/examples.html)
Where have they gone?
The text was updated successfully, but these errors were encountered: