-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom pickler doesn't work in a conda environment (with Python 3.10, at least) #2738
Comments
I just tried this with new VMs on AWS, which have no history of ever having Python installed (other than system Python). I tried installing
In all cases, This is very consistent, and now on a platform with no history. I have no idea how our CI manages to not have a problem with this. |
The reason our CI doesn't catch it is because dask-awkward doesn't get installed in our CI. |
The issue has been reproduced in CI: https://github.com/scikit-hep/awkward/actions/runs/6411516875/job/17407129086?pr=2739
|
Ah, this is a testing problem rather than a bug per-se. I think what's happening is that dask-awkward registers its own pickler, in addition to the pickler that is registered by the test itself. As such, we find two picklers, and fail. I think the solution should involve hiding the dask-awkward pickler from our test suite, if we can. |
Version of Awkward Array
2.4.4 and HEAD
Description and code to reproduce
I've been tracking down my inability to run
tests/test_2682_custom_pickler.py
locally. It's pretty consistent about working when I don't have dask-awkward installed and not working when I do have dask-awkward installed.Notes
I haven't seen this issue before, but it's the first time I'm running in Python 3.10 environments. I don't know if that's related. (Or maybe I've never tested it before because I didn't have dask-awkward installed between the time when the custom picklers were added and now.)
Also, I can't say why CI isn't seeing this. Perhaps it has something to do with conda.
Also, I verified that I don't have any self-installed libraries outside of the conda environment. In particular,
shows nothing outside of my environment and dask-awkward's contribution within it, if dask-awkward has been installed.
Clean-slate test
I created a new conda environment with these initial packages:
First, I install
awkward
from conda-forge:The tests pass.
Then, I install
dask-awkward
from conda-forge:The tests fail.
Then I remove them both.
Next, I install
awkward
from PyPI:The tests pass.
Then I install
dask-awkward
from PyPI:The tests fail.
Next, I remove them both.
Now I install
awkward
from source (main
), using the nox,awkward-cpp
compilation, install-in-place procedure.The tests pass.
Then I install
dask-awkward
from source (main
).The tests fail.
Error messages
When the tests fail, they fail like this:
I'm going to see if this can be captured in a GitHub Action.
The text was updated successfully, but these errors were encountered: