babelfish icon indicating copy to clipboard operation
babelfish copied to clipboard

pkg_resources is deprecated

Open plotski opened this issue 1 year ago • 3 comments

Friendly reminder that pkg_resources is deprecated in favor of importlib.resources.

https://setuptools.pypa.io/en/latest/pkg_resources.html https://docs.python.org/3/library/importlib.resources.html

plotski avatar May 25 '23 14:05 plotski

babelfish is now broken with Python's new 3.12 release:

    # Copyright (c) 2013 the BabelFish authors. All rights reserved.
    # Use of this source code is governed by the 3-clause BSD license
    # that can be found in the LICENSE file.
    #
>   from pkg_resources import iter_entry_points, EntryPoint
E   ModuleNotFoundError: No module named 'pkg_resources'

.tox/py312/lib/python3.12/site-packages/babelfish/converters/__init__.py:5: ModuleNotFoundError

plotski avatar Oct 05 '23 09:10 plotski

I had to install setuptools>=66.1 to get it to work. Would be great if it gets fixed here itself.

iamkroot avatar Oct 08 '23 21:10 iamkroot

Happy to have a PR fixing this. I can manage a new release but I don't think I'll have the time to fix it shortly 😞

Diaoul avatar Oct 09 '23 14:10 Diaoul