Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Python 3.12 compat: pkg_resources -> importlib #57

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tonyseek
Copy link

Traceback (most recent call last):
  File ".../bin/lice", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File ".../lib/python3.12/site-packages/lice/__init__.py", line 5, in main
    from lice.core import main
  File ".../lib/python3.12/site-packages/lice/core.py", line 1, in <module>
    from pkg_resources import (resource_stream, resource_listdir)
ModuleNotFoundError: No module named 'pkg_resources'

@tonyseek
Copy link
Author

Hi @jcarbaugh,

It seems the lice is broken on Python 3.12 because of incompatible changes. Could you review this patch which may fix it?

--
Jiangge Zhang

@seapagan
Copy link

@tonyseek as it seems this project is not getting updated, I have forked and released lice2. It fixes this issue and a couple others while adding new features like a configuration file and a lot of internal updates. I plan to keep maintaining it for the forseeable future and have a few ideas for new features.

Check it out on https://seapagan.github.io/lice2/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants