uqfoundation/dill

Exception: --- Logging error ---

almostintuitive opened this issue · 3 comments

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!

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?

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).

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.