Skip to content

from pkg_resources import packaging seems not work with setuptools>=70.0.0 #446

Open
rom1504/CLIP
#10
@PawelPeczek-Roboflow

Description

@PawelPeczek-Roboflow

There was a release of setuptools 70.0.0 (https://pypi.org/project/setuptools/#history) which mentions changes in pkg_resources: https://setuptools.pypa.io/en/stable/history.html#v70-0-0, that gets deprecated: https://setuptools.pypa.io/en/stable/pkg_resources.html.

That implies need for change of entries like that in clip.py module

if packaging.version.parse(torch.__version__) < packaging.version.parse("1.7.1"):
    warnings.warn("PyTorch version 1.7.1 or higher is recommended")

into something supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions