Skip to content

1.3.0 cloudpickle.load hits AttributeError: module 'types' has no attribute 'ClassType' #349

@mzhang-code

Description

@mzhang-code

After upgrading to 1.3.0 from 1.2.2, our load() code starts having this issue.

 File "/usr/local/lib/python3.6/site-packages/cloudpickle/cloudpickle.py", line 415, in _builtin_type
     return getattr(types, name)
 AttributeError: module 'types' has no attribute 'ClassType'

Also found this post described the same issue we got. mlflow/mlflow#2429

I suspect it is caused by #337 "Fix a side effect that would redefine types.ClassTypes as type when importing cloudpickle", which removed types.ClassType = type

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions