Skip to content
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

Deserializiation via msgpack fails #59

Open
pantaray opened this issue Jun 21, 2024 · 0 comments
Open

Deserializiation via msgpack fails #59

pantaray opened this issue Jun 21, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@pantaray
Copy link
Member

pantaray commented Jun 21, 2024

Describe the problem
Running ParallelMap with a function accepting NumPy 2d-arrays as input fails.

Steps To Reproduce

Running

def f(x):
    return x+x

x = np.full([4, 2],1)

n_workers = 3

xinput = [x for _ in range(n_workers) ]

client = acme.esi_cluster_setup(partition="8GBXS", n_workers=n_workers)
with ParallelMap(f, xinput, n_inputs=n_workers) as pmap:
    results = pmap.compute()

reproducibly results in the error

msgpack.exceptions.ExtraData: unpack(b) received extra data.

Turns out this is a bug in msgpack that only affects Python 3.11+

Additional Information
Solution:

conda install -c conda-forge msgpack-python=1.0.5
@pantaray pantaray added the bug Something isn't working label Jun 21, 2024
@pantaray pantaray self-assigned this Jun 21, 2024
pantaray added a commit that referenced this issue Jun 26, 2024
- updated dask and msgpack version requirements (closes #59)
- dropped Python 3.7 support

On branch dev
Changes to be committed:
	modified:   setup.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant