Skip to content

isort not compatible with Python 3.14 #2404

@dvarrazzo

Description

@dvarrazzo

In Python 3.14 pkg_resource is not available, resulting in:

ERROR: Unrecoverable exception thrown when parsing ./test-notifies.py! This should NEVER happen.
If encountered, please open an issue: https://github.com/PyCQA/isort/issues/new
Traceback (most recent call last):
  File "/usr/local/bin/isort", line 8, in <module>
    sys.exit(main())
             ~~~~^^
...
  File "/usr/local/lib/python3.14/site-packages/isort/settings.py", line 718, in sorting_function
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

The correct API to find the entry points is described in the python packaging guide as "from importlib.metadata import entry_points".

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