ERROR: Can't pickle <function <lambda>
kitofito opened this issue · comments
Christopher Bravo commented
Christopher Bravo commented
I ran the project in Google Colab, and it worked for me!
mobaidoctor commented
Hi, @kitofito, thank you for reaching out. Which version of Python are you using? The "pickle.PicklingError: Can't pickle " error arises because Python's pickle module cannot serialize lambda functions. Here are some simple steps to resolve the issue:
- Convert lambdas to standard functions.
- Utilize the dill library.
If you continue to experience problems after trying these solutions, please let us know. Thank you.