Skip to content

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

Description

@gtback

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions