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

Import error from vstruct.primitives #1

Closed
nrvana opened this issue Aug 12, 2015 · 3 comments
Closed

Import error from vstruct.primitives #1

nrvana opened this issue Aug 12, 2015 · 3 comments

Comments

@nrvana
Copy link

nrvana commented Aug 12, 2015

When I try to pip3 install I am getting the following error:

Downloading/unpacking python-pyqt5-vstructui (from -r requirements.txt (line 6))
  Downloading python-pyqt5-vstructui-0.3.0.tar.gz
  Running setup.py (path:/tmp/pip_build_root/python-pyqt5-vstructui/setup.py) egg_info for package python-pyqt5-vstructui
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build_root/python-pyqt5-vstructui/setup.py", line 3, in <module>
        from vstructui import __version__
      File "/tmp/pip_build_root/python-pyqt5-vstructui/vstructui/__init__.py", line 5, in <module>
        from .vstructui import get_parsers
      File "/tmp/pip_build_root/python-pyqt5-vstructui/vstructui/vstructui.py", line 32, in <module>
        from vstruct.primitives import enum_mixin
    ImportError: cannot import name 'enum_mixin'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_root/python-pyqt5-vstructui/setup.py", line 3, in <module>

    from vstructui import __version__

  File "/tmp/pip_build_root/python-pyqt5-vstructui/vstructui/__init__.py", line 5, in <module>

    from .vstructui import get_parsers

  File "/tmp/pip_build_root/python-pyqt5-vstructui/vstructui/vstructui.py", line 32, in <module>

    from vstruct.primitives import enum_mixin

ImportError: cannot import name 'enum_mixin'

I installed vstruct-2.0.1 via pip3 and I only have the following primitives:

>>> dir(vstruct.primitives)
['GUID', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'b2a_hex', 'float_fmts', 'long', 'num_fmts', 'pointersize', 'struct', 'sys', 'v_base', 'v_bitmask', 'v_bytes', 'v_double', 'v_enum', 'v_float', 'v_int16', 'v_int24', 'v_int32', 'v_int64', 'v_int8', 'v_number', 'v_prim', 'v_ptr', 'v_ptr32', 'v_ptr64', 'v_size_t', 'v_snumber', 'v_str', 'v_uint16', 'v_uint24', 'v_uint32', 'v_uint64', 'v_uint8', 'v_wstr', 'v_zstr', 'v_zstr_utf8', 'v_zwstr']

What version of vstruct should I be using that has the enum_mixin primitive?

@nrvana
Copy link
Author

nrvana commented Aug 12, 2015

I uninstalled and reinstalled vivisect_vstruct_wb then python-pyqt5-vstructui installed successfully.

This issue can be closed.

@nrvana nrvana closed this as completed Aug 12, 2015
@williballenthin
Copy link
Owner

I had just pushed an updated version of python-pyqt5-vstructui, so I think you may have benefited from that :-)

Closed in 001568b

@nrvana
Copy link
Author

nrvana commented Aug 12, 2015

Yea, I think so too. Thanks for the update.

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

2 participants