Skip to content

dask_awkward is imported unexpectedly when pickling an awkward array #570

@chuyuanliu

Description

@chuyuanliu

I noticed dask and dask_awkward will be imported when pickling an awkward array even though dask_awkward is only installed but not used in the current environment . e.g.

import pickle
import sys
import awkward as ak

pickle.dumps(ak.Array([1, 2, 3]))
print("dask_awkward" in sys.modules, "dask" in sys.modules)

will give True, True.

This is likely invoked by this awkward pickle plugin. Given the implementation doesn't rely on dask_awkward, will it be better to put this in a separate folder like the dask sizeof plugin?

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