Skip to content

Calling deprecated pkg_resources #1047

@yzcj105

Description

@yzcj105

Describe the bug

bloqade analog is calling deprecated function pkg_resources

in

__import__("pkg_resources").declare_namespace(__name__)

src/bloqade/analog/__init__.py
2:    __import__("pkg_resources").declare_namespace(__name__)

The function will be removed 2025-11-30.

Minimal broken example

import bloqade.analog as ba

Expected behavior

Screenshots

import bloqade.analog as ba1
XXXXXXX/.venv/lib/python3.12/site-packages/bloqade/analog/__init__.py:2: 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.
  __import__("pkg_resources").declare_namespace(__name__)

Desktop (please complete the following information):

  • OS: macOS
  • Bloqade Version: 0.26.2
  • Python Version:3.12.9

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions