-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Can't pickle cyfunction Socket.set: it's not found as zmq.backend.cython.socket.set #208
Comments
Post it then. Code always helps. |
Looking for the time, I'm working at the moment on a deadline. Tonight or tomorrow |
Oh, well don't worry then. I thought you already had the code. |
@Joshuaalbert: Also post the traceback you are seeing... and if you can, also post the version information of any packages you are using in your code. Please try to provide a minimal code that reproduces the error. |
The phrasing of the error (see the title) suggests this is a duplicate of #56 (or related). If it's not a duplicate, I'm pretty sure that the 3rd party object you are after is not something that |
Here you go, I reduced code down to the key part causing the error. It's to do with builtins. The stacktrace should be easily reproduced by running this. https://gist.github.com/Joshuaalbert/af44cb3628719d4790f775b7a33bb377 The stacktrace is long but easily reproduced by running that script. Note the error comes when I try to store the RadioArray object which contains a Logger object. The issue is with the Logger object, I think because it stores a builtin method? |
Which version of python are you using? Works fine for me with both 3.6 and 2.7. |
python 2.7.12, dill 0.2.5 |
OK, could you try the git version of dill, and see if it fixes this. Also, which OS are you using? |
I'm using Anaconda 3.0 to manage my environment on a windows 10 OS. I'll check a newer dill |
In the meantime here is the stacktrace:
|
Is this every going to be fixed? |
Upon further inspection, I believe the issue is at root the same as #56. I'm closing it as duplicate. |
Hi again,
It seems I cannot pickle astropy objects. I can post a code that reproduces.
Josh
The text was updated successfully, but these errors were encountered: