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

copy.deepcopy fails on imported STEP file #802

Open
omdathetkan opened this issue Nov 27, 2024 · 0 comments
Open

copy.deepcopy fails on imported STEP file #802

omdathetkan opened this issue Nov 27, 2024 · 0 comments

Comments

@omdathetkan
Copy link

When I import a STEP file and try to deepcopy it I get the following error:

Sample file is attached.

filename = "sample.step"
step = import_step_mod(filename)
copy.deepcopy(step) # -> TypeError: cannot pickle 'OCP.TDF.TDF_Label' object

print(step.children[0]) # -> 'Compound at 0x20c41d8b550, label(Board (266)), #children(1)'
copy.deepcopy(step.children[0]) -> TypeError: cannot pickle 'OCP.TDF.TDF_Label' object

sample.zip

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

1 participant