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

AttributeError: module 'cloudpickle.cloudpickle' has no attribute 'dumps' #11

Open
jack-the-hack opened this issue Nov 23, 2020 · 2 comments

Comments

@jack-the-hack
Copy link

how can i fix this

@felix-albrecht
Copy link

felix-albrecht commented Nov 27, 2020

I got the same issue using python 3.8 with anaconda.
It seems the files cloudpickle.py and cloudpickle_fast.py in
~/opt/anaconda3/lib/python3.8/site-packages/cloudpickle/
don't define the method dumps.

I eventually "fixed" it by replacing the files with some other files of that name (different version?) I found somewhere on my machine (I have no idea how anaconda works). Somewhere being:
~/opt/anaconda3/pkgs/joblib-0.16.0-py_0/site-packages/joblib/externals/cloudpickle/

Now, osc.start() can be run, but after displaying an empty graph it gives me following error:

PicklingError: Can't pickle <function simple_random_signal at 0x120d779d0>: it's not the same object as main.simple_random_signal

Could you help us here, @devxpy ?

@jaytho
Copy link

jaytho commented Apr 19, 2021

This is a problem in zproc. The patch here (basically open the serializer.py in zproc, and change 'from cloudpickle import cloudpickle' and change to just 'import cloudpickle' seems to fix this situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants