Skip to content

Raise KeyError: 'PREFIX' when import #102

@RaistlinTAO

Description

@RaistlinTAO

The program just stop with 'raise KeyError(key) from None' error right after 'import graphvite as gv', with no other code.

Environment

Python: 3.8
Conda: Latest
CentOS

Error Message

Traceback (most recent call last):
  File "DGI_matrix.py", line 19, in <module>
    import graphvite as gv
  File "/apphome/algorithm/anaconda3/envs/xnf/lib/python3.8/site-packages/graphvite/__init__.py", line 30, in <module>
    os.path.realpath(os.path.join(os.environ["PREFIX"], "lib")),
  File "/apphome/algorithm/anaconda3/envs/xnf/lib/python3.8/os.py", line 675, in __getitem__
    raise KeyError(key) from None
KeyError: 'PREFIX'

Metadata

Metadata

Assignees

No one assigned

    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