Skip to content

Migrate away from pkg_resources #789

@Pandapip1

Description

@Pandapip1

Describe the bug

Brainflow uses pkg_resources, a deprecated API.

To Reproduce

>>> import brainflow
/nix/store/i079mpji8v9k1sv2j5cgx1gg9f26vxzr-python3.13-brainflow-5.19.0/lib/python3.13/site-packages/brainflow/board_shim.py:10: 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

Info (please complete the following information):

  • Board Id: N/A
  • OS running on your PC: NixOwOS 25.11 (Xantusia) x86_64
  • Programming Language and its version: python
  • Architecture(x86, x64, ARM, etc): x86_64
  • In case of Python full output of pip list command, for other languages please provide BrainFlow version used: Nix is used, pip is not installed. Version used is 5.19.0.

Expected behavior

pkg_resources is migrated away from and replaced with importlib.

Screenshots

N.A.

Additional context

N.A.

Metadata

Metadata

Assignees

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