-
Notifications
You must be signed in to change notification settings - Fork 200
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
RecursionError when pickle dump/loading dxf file #1231
Comments
Pickle protocol is not supported! |
ezdxf.document.Drawing is an in-memory representation of a DXF file, so dxf seems like it would be an appropriate storage format rather than a pickled ezdxf object. If pickle as a format is a hard requirement you can pickle a string containing the contents of a DXF file? |
pickle is not a hard requirement but i need to read alot of dxf files in a short amount of time and reading&parsing a dxf file takes significantly longer than using pickle(the same dxf file will be read multiple times), thus the whole idea of using pickle came to be. |
fair enough. I opened a PR that hopefully works for you #1232 |
Describe the bug
when running pickle load/dump on a dxf object (ezdxf.document.Drawing) an RecursionError: maximum recursion depth exceeded is recived.
To Reproduce
Information and data needed to reproduce the error:
read a dxf file and try to dump it into a file using pickle, i saved the file and read it as gzip.
when trying to load the saved file a RecursionError occures.
Expected behavior
the dxf object should be loaded correctly.
Screenshots
inorder to replecate the problem i have created a small notebook for it with a random dxf i found online.
EzdxfRecursionErrorNotebook.zip
The text was updated successfully, but these errors were encountered: