Skip to content

pkg_resources error #3

@justindlc

Description

@justindlc

This looks really cool, but after I installed midigen and ran your sample command:

midigen --key G --chords ii V I vi --loop 4 --play

it did not play anything, and instead I received the following error:

/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/midigen/instruments.py:1: 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

I tried looking up this error and troubleshooting it, but I believe the recommendation is for the library to be updated from using the pkg_resources from setuptools to importlib.resources. Are you able to help with that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions