When loading python pickle
AttributeError: Can't get attribute 'name of the class' on <module '__main__' (built-in)>
If you see, in the file that describes this load target class
if __name__ == "__main__":
hogehoge
It may work if you delete the part described as, write the pickle again, and read it.
If you just delete the above part, it probably won't work.
Recommended Posts