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

pkg_resources missing on fresh install #74

Open
MarcinKonowalczyk opened this issue Nov 5, 2023 · 7 comments · May be fixed by #75
Open

pkg_resources missing on fresh install #74

MarcinKonowalczyk opened this issue Nov 5, 2023 · 7 comments · May be fixed by #75

Comments

@MarcinKonowalczyk
Copy link

MarcinKonowalczyk commented Nov 5, 2023

Environment

  • PIP Chill version: 1.0.3
  • Python version: 3.12.0
  • Operating System: macos

Description

Installing pip-chill in a fresh venv companies about the lack of pkg_resources. Works after pip install setuptools. I believe that its because setuptools is no longer added to a virtual environment by default...?

Traceback (most recent call last):
  File "~/.pyenv/versions/my-venv/bin/pip-chill", line 5, in <module>
    from pip_chill.cli import main
  File "~/.pyenv/versions/3.12.0/envs/my-venv/lib/python3.12/site-packages/pip_chill/__init__.py", line 3, in <module>
    from .pip_chill import chill
  File "~/.pyenv/versions/3.12.0/envs/my-venv/lib/python3.12/site-packages/pip_chill/pip_chill.py", line 4, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Short-term solution would be to add setuptools as a dependency(?), but longer-term maybe worth switching to importllib.resources (and importlib_resources backport) just like setuptools reccomends?

Copy link

github-actions bot commented Jan 5, 2024

Stale issue message

@MarcinKonowalczyk
Copy link
Author

bump

@Drblessing
Copy link

bump

@bcrotty
Copy link

bcrotty commented Feb 15, 2024

Same issue here except with a fresh system install of 3.12.2. As mentioned by OP, installing setuptools fixes this.

Copy link

Stale issue message

@MarcinKonowalczyk
Copy link
Author

bump

@MarcinKonowalczyk MarcinKonowalczyk linked a pull request Apr 28, 2024 that will close this issue
@MarcinKonowalczyk
Copy link
Author

ok, fine. as opposed to just bump'ing, see PR #75

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 a pull request may close this issue.

3 participants