-
Notifications
You must be signed in to change notification settings - Fork 39
Installing awkward-numba in usermode breaks awkward #244
Comments
Uninstall awkward-numba using pip's "remove" command. You might need to do it several times if there are several versions installed. There needs to be some warning here. This project was never completed, and the difficulties it revealed led to a redesign. In scikit-hep/awkward-1.0, Numba support is fully integrated and complete. There's a "from_awkward0" function for converting from old-style to new-style arrays. If you're interested in using Numba with Awkward Array, I highly recommend that. The reference documentation is complete, but the tutorials aren't yet (that's the only part of the new library that isn't done: the tutorials). To get started, look in the docs-demo-notebooks for a demo with tomorrow's date. If you're interested in attending, I can get you connection information (Coffea Developer's meeting). |
Can awkward and awkward1 coexist? We're using a few packages that have awkward as dependencies |
Yes, they can coexist. There's a transition plan. For the next few months (time period to be determined),
so as far as both PyPI and Python are concerned, they are two independent libraries. After the switch,
so at that time, a backward incompatibility will be introduced, but there's a user action that can revert to the old library if needed ( The same thing is going to happen to Uproot as it transitions from the current Uproot version 3 (which uses Awkward 0) and the future Uproot version 4 (which will use Awkward 1). The transition for both Awkward and Uproot will happen at the same time, and the Uproot you're using already has an explicit pip requirement that its Awkward must be < version 1.0. (I put that in early last year, knowing that this would be coming up.) Arrays can be converted between Awkward 0 and Awkward 1 using Awkward 1's |
If I have awkward installed in my regular site packages, and then try to install awkard-numba in user mode, I get
The awkward directory under system site-packages looks like
while in my user site I have
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.
The text was updated successfully, but these errors were encountered: