Skip to content
This repository was archived by the owner on Jun 21, 2022. It is now read-only.
This repository was archived by the owner on Jun 21, 2022. It is now read-only.

Installing awkward-numba in usermode breaks awkward #244

Open
@bloer

Description

@bloer

If I have awkward installed in my regular site packages, and then try to install awkard-numba in user mode, I get

In [1]: import awkward
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-77000f7762b3> in <module>()
----> 1 import awkward

~/.local/lib/python3.6/site-packages/awkward/__init__.py in <module>()
      9     raise ImportError("Numpy 1.13.1 or later required")
     10 
---> 11 from awkward.array.base import AwkwardArray
     12 from awkward.array.chunked import ChunkedArray, AppendableArray
     13 from awkward.array.indexed import IndexedArray, SparseArray

ModuleNotFoundError: No module named 'awkward.array'

The awkward directory under system site-packages looks like

$ ls /usr/local/lib/python3.6/site-packages/awkward
array     generate.py  pandas.py   __pycache__  util.py
arrow.py  __init__.py  persist.py  type.py      version.py

while in my user site I have

$ ls $HOME/.local/lib/python3.6/site-packages/awkward/
__init__.py  numba  __pycache__

Pip detects that the dependency on awkward is already satisfied so doesn't install into user site, but then awkward-numba goes and installs a partial and broken version.

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