AbanteAI / rawdog

Generate and auto-execute Python scripts in the cli
Apache License 2.0
1.79k stars 140 forks source link

ModuleNotFoundError: No module named 'pkg_resources' #52

Closed ProximaCA closed 9 months ago

ProximaCA commented 9 months ago

randomrandomovic@MacBook-Pro-Random rawdog-main % rawdog Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/bin/rawdog", line 5, in from rawdog.main import main File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/rawdog/main.py", line 9, in from rawdog.llm_client import LLMClient File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/rawdog/llm_client.py", line 9, in from litellm import completion, completion_cost File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/litellm/init.py", line 520, in from .utils import ( File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/litellm/utils.py", line 32, in import pkg_resources ModuleNotFoundError: No module named 'pkg_resources' randomrandomovic@MacBook-Pro-Random rawdog-main %

Python 3.12.1

ProximaCA commented 9 months ago

SOLUTION pip install setuptools (possibly with sudo).