Skip to content

DeprecationWarning: pkg_resources is deprecated as an API #168

Closed
@GergelyKalmar

Description

@GergelyKalmar

I'm getting a DeprecationWarning when importing google_crc32c:

  File ".../secrets.py", line 9, in <module>
    import google_crc32c
  File ".../lib/python3.8/site-packages/google_crc32c/__init__.py", line 25, in <module>
    from google_crc32c import cext as impl
  File ".../lib/python3.8/site-packages/google_crc32c/cext.py", line 19, in <module>
    import google_crc32c.__config__  # type: ignore
  File ".../lib/python3.8/site-packages/google_crc32c/__config__.py", line 18, in <module>
    import pkg_resources
  File ".../lib/python3.8/site-packages/pkg_resources/__init__.py", line 121, in <module>
    warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)

You can reproduce the issue by importing google_crc32c in a script and running it with -Wall.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions