Skip to content

Maximum recursion depth exceeded while pickling an object #821

@tjlaboss

Description

@tjlaboss

Bug Description

Pickling an MCNP_Problem results in a RecursionError.

To Reproduce

>>> deck = montepy.read_input("my_input.imcnp")
>>> with open('deck_112.pkl', 'wb') as f:
>>>     pickle.dump(deck, f)

Error Message

Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
RecursionError: maximum recursion depth exceeded while pickling an object

MCNP input file snippet

I will work on producing a Minimal Reproducible Example. In the meanwhile, I can share the model that caused this internally.

Version

  • Version 1.1.2. Rolling back to 1.1.1 solved the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsA deviation from expected behavior that does not reach the level of being reportable as an "Error".

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions