#4557·pygame

UserWarning: pkg_resources is deprecated as an API.

Author: ezorzinCreated Aug 18, 2025Updated Jun 28, 2026
Labelsbug

Environment:

  • Operating system = Windows 11
  • Python version= 3.13.5
  • SDL version 2.28.4
  • PyGame version 2.6.1
  • Relevant hardware PS4 Controller

Current behavior: When running a Python program importing pygame, at the console it says: "C:\Users\\xxxx\Documents\pymarching-venv\Lib\site-packages\pygame\pkgdata.py:25: 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. from pkg_resources import resource_stream, resource_exists pygame 2.6.1 (SDL 2.28.4, Python 3.13.5) Hello from the pygame community. https://www.pygame.org/contribute.html [Gamepad] Initialized: PS4 Controller"

Expected behavior: I expected pygame to work without this warning.

Question: What should I do in order to fix it? Should I wait for a new release of pygame? Meanwhile, am I safe doing nothing?

Best regards,

Erik