Can run ./run.sh without errors after installing
After installing the app via
curl https://raw.githubusercontent.com/transformerlab/transformerlab-api/main/install.sh | bash
(why does linux need curl when wget is already installed by default)
Installing conda (not stated as a requirement anywhere apart from the run.sh scripts errors)
I finally get the below error, I'm not a Python dev so don't know where to start to debug that, some help is needed
$ ./run.sh
✅ Conda is installed.
👏 Enabling conda in shell
👏 Activating transformerlab conda environment
✅ NVIDIA GPU detected, adding CUDA libraries to path
▶️ Starting the API server:
DEBUG uv 0.6.6
DEBUG No project found; searching for Python interpreter
DEBUG Reading Python requests from version file at `/home/ivan/.transformerlab/src/.python-version`
DEBUG Searching for Python 3.11 in virtual environments, managed installations, or search path
DEBUG Found `cpython-3.11.8-linux-x86_64-gnu` at `/home/ivan/.transformerlab/envs/transformerlab/bin/python3` (conda prefix)
DEBUG Using Python 3.11.8 interpreter at: /home/ivan/.transformerlab/envs/transformerlab/bin/python3
DEBUG Running `uvicorn api:app --port 8338 --host 0.0.0.0 --no-access-log`
DEBUG Spawned child 99311 in process group 98566
Traceback (most recent call last):
File "/home/ivan/.transformerlab/envs/transformerlab/bin/uvicorn", line 10, in <module>
sys.exit(main())
^^^^^^
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/click/core.py", line 1161, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/uvicorn/main.py", line 412, in main
run(
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/uvicorn/main.py", line 579, in run
server.run()
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/uvicorn/server.py", line 66, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/uvicorn/server.py", line 70, in serve
await self._serve(sockets)
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/uvicorn/server.py", line 77, in _serve
config.load()
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/uvicorn/config.py", line 435, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/uvicorn/importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/ivan/.transformerlab/src/api.py", line 33, in <module>
from transformerlab.db.jobs import job_create, job_get_error_msg, job_update_status
File "/home/ivan/.transformerlab/src/transformerlab/db/jobs.py", line 6, in <module>
from transformerlab.db.session import async_session
File "/home/ivan/.transformerlab/src/transformerlab/db/session.py", line 2, in <module>
import aiosqlite
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/aiosqlite/__init__.py", line 6, in <module>
from sqlite3 import ( # pylint: disable=redefined-builtin
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/sqlite3/__init__.py", line 57, in <module>
from sqlite3.dbapi2 import *
File "/home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/sqlite3/dbapi2.py", line 27, in <module>
from _sqlite3 import *
ImportError: /home/ivan/.transformerlab/envs/transformerlab/lib/python3.11/lib-dynload/_sqlite3.cpython-311-x86_64-linux-gnu.so: undefined symbol: sqlite3_deserialize
DEBUG Command exited with code: 1
Hi, Sorry we missed this issue earlier! Is at all possible to somehow get the logs of the install part as well? Maybe that might be the key to where things went wrong?
Sure but I'm not sure which logs you mean (I have rebooted so I may need to re-run the command you mean to get the logs)
Yes sorry I just meant deleting everything in ~/.transformerlab and re-running ./install.sh
Hi, Just following up to see if you were able to run things?