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

Cannot install python-stix without python-cybox being installed #24

Closed
gtback opened this issue Jun 27, 2013 · 3 comments
Closed

Cannot install python-stix without python-cybox being installed #24

gtback opened this issue Jun 27, 2013 · 3 comments
Assignees

Comments

@gtback
Copy link
Contributor

gtback commented Jun 27, 2013

This is minor, but should probably get fixed...

If you try to install python-stix into a clean virtualenv (or onto a clean system) using pip install stix, it fails because the cybox bindings are not already installed. Even though "cybox" is listed as a prerequisite in setup.py, due to the chain of imports shown below, setup.py cannot even be imported successfully.

  File "/home/gback/.environments/stix2/build/stix/setup.py", line 5, in <module>
    import stix
  File "stix/__init__.py", line 9, in <module>
    import stix.bindings.stix_core as core_binding
  File "stix/bindings/stix_core.py", line 15, in <module>
    import stix.bindings.stix_common as stix_common_binding
  File "stix/bindings/stix_common.py", line 15, in <module>
    import cybox.bindings.cybox_common as cybox_common_binding
ImportError: No module named cybox.bindings.cybox_common

Doing pip install cybox followed by pip install stix is successful, as a workaround until we fix this.

@ghost ghost assigned gtback Jun 27, 2013
@ikiril01
Copy link
Contributor

I've added a blurb about this to the README so that users are aware.

@bworrell
Copy link
Contributor

I fixed this in my local copy last night but haven't pushed yet.

@gtback
Copy link
Contributor Author

gtback commented Jun 27, 2013

Awesome! Once we tag a new version and release on PyPI, we should be sure to take the note back out of the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants