I’m trying to pickle a big class and getting
TypeError: can’t pickle module objects
despite looking around the web, I can’t exactly figure out what this means. and I’m not sure which module object is causing the trouble. is there a way to find the culprit? the stack trace doesn’t seem to indicate anything.
I can reproduce the error message this way:
Do you have a class attribute that references a module?