Thanks to visit codestin.com
Credit goes to github.com

Skip to content

UserWarning: pkg_resources is deprecated as an API #6

@carlosaya

Description

@carlosaya

Describe the bug
The following warning is received when importing create_vsphere_client:

>>> from vmware.vapi.vsphere.client import create_vsphere_client
/usr/local/lib/python3.13/site-packages/vmware/vapi/l10n/bundle.py:59: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.

To Reproduce
Steps to reproduce the behaviour:

$ docker run -it python:3.13.1-slim-bullseye /bin/bash

# pip install vcf-sdk
# python3
>>> from vmware.vapi.vsphere.client import create_vsphere_client

Expected behaviour
The module is imported without this warning.

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