Skip to content

Cannot Import HAPI2 in Virtual Environment #11

@DiegoOlaya

Description

@DiegoOlaya

Attempting to import HAPI2 in a virtual environment results in a numpy error.

Error message:
AttributeError: module 'numpy' has no attribute 'complex'.
np.complex was a deprecated alias for the builtin complex. To avoid this error in existing code, use complex by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.complex128 here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

Steps to produce error:

  1. Install hapi2 according to ReadMe inside the virtual environment.
  2. In ipython, type from hapi2 import *

Full Traceback:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions