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

exception following the README: ModuleNotFoundError: No module named 'pkg_resources' #57

Open
sglebs opened this issue Sep 16, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@sglebs
Copy link

sglebs commented Sep 16, 2024

Describe the bug

Exception when trying to install & use following the README (pip alternative).

Describe your environment

  • MacBook Pro 2023, M3
  • Python 3.12.4

To Reproduce

  1. python3 -m venv ./venv
  2. source ./venv/bin/activate
  3. pip install emerge-viz
  4. emerge -a swift

The console will print a stack trace and the culprit:

ModuleNotFoundError: No module named 'pkg_resources'

Traceback (most recent call last):
  File "..../venv/bin/emerge", line 5, in <module>
    from emerge.main import run
  File "..../venv/lib/python3.12/site-packages/emerge/main.py", line 8, in <module>
    from emerge.appear import Emerge
  File "..../venv/lib/python3.12/site-packages/emerge/appear.py", line 24, in <module>
    from emerge.languages.pyparser import PythonParser
  File "..../venv/lib/python3.12/site-packages/emerge/languages/pyparser.py", line 16, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Expected behavior

No exception.

Screenshots
N/A

Additional context
N/A

@sglebs sglebs added the bug Something isn't working label Sep 16, 2024
@Daendaralus
Copy link

I just encountered this issue as well. I was, however, following the guide to install it from source instead (Windows 11, Python 3.12.0)
Running pip install --upgrade setuptools fixed it for me.

@sglebs
Copy link
Author

sglebs commented Sep 20, 2024

I just encountered this issue as well. I was, however, following the guide to install it from source instead (Windows 11, Python 3.12.0) Running pip install --upgrade setuptools fixed it for me.

I can confirm that this fixes it for me too. Great tip, thanks for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants