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

Exception: --- Logging error --- #635

Closed
almostintuitive opened this issue Dec 20, 2023 · 3 comments · Fixed by #637
Closed

Exception: --- Logging error --- #635

almostintuitive opened this issue Dec 20, 2023 · 3 comments · Fixed by #637
Labels
Milestone

Comments

@almostintuitive
Copy link

image

Hi! We're using dill actively, it's of course extremely useful for us as well.
We're getting this exception just by adding a single class into the pickeld object. Did anyone bump into similar error messages? What could be the root cause?

Thank you!

@mmckerns
Copy link
Member

mmckerns commented Dec 22, 2023

Could you please provide a minimal self-contained bit of code that reproduces the error message you are seeing? That would help us identify and diagnose what you are experiencing. Also, is it producing a ValueError (e.g. log(0,2)) or a TypeError (e.g. log(None, 2)) or something else?

@mmckerns
Copy link
Member

I added a guard for the size calculation... but please reopen if this doesn't fix your issue (and please post minimal example code with the full traceback next time).

@mmckerns mmckerns added this to the dill-0.3.8 milestone Dec 22, 2023
@almostintuitive
Copy link
Author

Thanks! Unfortunately it was really hard to reproduce outside of our codebase. In the end what helped is to move an enum declaration to a standalone file. I can not explain why, but since then, we don't have this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants