You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small on here... I think you need to create the io.datasette.llm directory on install (or check before logging).
I've tried installing llm via brew and pip, and both get this error from the sqlite logging after successfully running a command:
$ llm 'hello world'
Hello! How can I assist you today?
Traceback (most recent call last):
File "/Users/mikestenhouse/.asdf/installs/python/3.11.4/bin/llm", line 8, in <module>
sys.exit(cli())
^^^^^
File "/Users/mikestenhouse/.asdf/installs/python/3.11.4/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mikestenhouse/.asdf/installs/python/3.11.4/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/mikestenhouse/.asdf/installs/python/3.11.4/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mikestenhouse/.asdf/installs/python/3.11.4/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mikestenhouse/.asdf/installs/python/3.11.4/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mikestenhouse/.asdf/installs/python/3.11.4/lib/python3.11/site-packages/llm/cli.py", line 266, in prompt
db = sqlite_utils.Database(log_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mikestenhouse/.asdf/installs/python/3.11.4/lib/python3.11/site-packages/sqlite_utils/db.py", line 339, in __init__
self.conn = sqlite3.connect(str(filename_or_conn))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: unable to open database file
I create io.datasette.llm myself manually and everything's fine:
~/Library/Application Support $ mkdir io.datasette.llm
~/Library/Application Support $ llm 'hello world'
Hello! How can I assist you today?
Some versions:
llm 0.8
Python 3.11.4
Homebrew 4.1.6
macOS 13.5.1
👋🏻
The text was updated successfully, but these errors were encountered:
Small on here... I think you need to create the
io.datasette.llm
directory on install (or check before logging).I've tried installing
llm
viabrew
andpip
, and both get this error from thesqlite
logging after successfully running a command:I create
io.datasette.llm
myself manually and everything's fine:Some versions:
llm 0.8
Python 3.11.4
Homebrew 4.1.6
macOS 13.5.1
👋🏻
The text was updated successfully, but these errors were encountered: