Skip to content

Permission denied to .cache_status.yaml #21

@mac133k

Description

@mac133k

I installed PyReason with pip on my system as root and when I try to import the module I am getting the following error:

PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.10/site-packages/pyreason/.cache_status.yaml'

I believe this is due to Numba cache path being set to the path based on the package path in:

os.environ['NUMBA_CACHE_DIR'] = cache_path

I think that users should be allowed to override NUMBA_CACHE_DIR, so perhaps in __init__.py the environment var could be set to the package path only if not set already.

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