Skip to content

[ENG-3970] When normal pickle fails, try dill - #4239

Merged
masenf merged 4 commits into
mainfrom
masenf/dill-fallback
Oct 24, 2024
Merged

masenf merged 4 commits into
mainfrom
masenf/dill-fallback

Conversation

@masenf

@masenf masenf commented Oct 24, 2024

Copy link
Copy Markdown
Collaborator

If dill is not installed, suggest that the user pip install it.

Fix #4147

If dill is not installed, suggest that the user `pip install` it.

Fix #4147
When the pickling throws a warning and dill is not installed, include the
original pickle error.

Add a test case for an object that even dill cannot pickle to ensure error path
is hit as expected.
@linear

linear Bot commented Oct 24, 2024

Copy link
Copy Markdown

@adhami3310

Copy link
Copy Markdown
Member

Since we are adding dill to pyproject, is there any way that dill wouldn't be installed?

@masenf

masenf commented Oct 24, 2024

Copy link
Copy Markdown
Collaborator Author

Since we are adding dill to pyproject, is there any way that dill wouldn't be installed?

it's a dev dependency, so it only gets installed when you do poetry install. if you just pip install reflex, then it won't be included

@masenf
masenf merged commit d85236b into main Oct 24, 2024
@masenf
masenf deleted the masenf/dill-fallback branch December 12, 2024 07:16
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

Successfully merging this pull request may close these issues.

SQLAlchemy AssociationProxy creator lambda vs pickle

2 participants