Homebrew install error when using 0.12
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 12.5k
- Forks
- 998
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 10
Description
Hi There,
When updating to 0.12 via Homebrew I get a missing library:
llm "hello"
Traceback (most recent call last):
File "/opt/homebrew/bin/llm", line 5, in <module>
from llm.cli import cli
File "/opt/homebrew/Cellar/llm/0.12/libexec/lib/python3.12/site-packages/llm/__init__.py", line 16, in <module>
from .embeddings import Collection
File "/opt/homebrew/Cellar/llm/0.12/libexec/lib/python3.12/site-packages/llm/embeddings.py", line 7, in <module>
from sqlite_utils import Database
File "/opt/homebrew/Cellar/llm/0.12/libexec/lib/python3.12/site-packages/sqlite_utils/__init__.py", line 1, in <module>
from .utils import suggest_column_types
File "/opt/homebrew/Cellar/llm/0.12/libexec/lib/python3.12/site-packages/sqlite_utils/utils.py", line 11, in <module>
from . import recipes
File "/opt/homebrew/Cellar/llm/0.12/libexec/lib/python3.12/site-packages/sqlite_utils/recipes.py", line 1, in <module>
from dateutil import parser
File "/opt/homebrew/Cellar/llm/0.12/libexec/lib/python3.12/site-packages/dateutil/parser/__init__.py", line 2, in <module>
from ._parser import parse, parser, parserinfo, ParserError
File "/opt/homebrew/Cellar/llm/0.12/libexec/lib/python3.12/site-packages/dateutil/parser/_parser.py", line 42, in <module>
import six
ModuleNotFoundError: No module named 'six'
On Mac OS 13.3 M2 Pro
I'm not sure if this is to do with my python install but I've been a happy user on this environment up until now!
All the Best,
Alex
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing llm "hello" with the Homebrew llm 0.12 installation on Python 3.12, then trace the import chain through llm.cli, llm/embeddings.py, sqlite_utils, and dateutil. Done means the command starts without ModuleNotFoundError: No module named 'six'.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, sqlite
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100