Closed tillfalko closed 3 months ago
Thanks for this. One question I have regarding this: Under conda, is python3 always the conda version? If not, this could cause issues in some cases, no?
I cannot find documentation to cite here, but the python
and python3
symlinks are both in Conda's bin
directory, which gets added to your PATH.
They point to the same location
$ which python
/home/f/miniconda3/bin/python
$ file /home/f/miniconda3/bin/python
/home/f/miniconda3/bin/python: symbolic link to python3.11
$
$ which python3
/home/f/miniconda3/bin/python3
$ file /home/f/miniconda3/bin/python3
/home/f/miniconda3/bin/python3: symbolic link to python3.11
$
$ which python3.11
/home/f/miniconda3/bin/python3.11
So if you have Conda installed, python3
should work just like python
. I really don't think there is any benefit to using python
.
Sorry for the delay. I just tested this under conda, and it should indeed not cause any issues. Thank you for this contribution.
The Issue
The Node backend makes system calls to
python
, but this symlink is not available on e.g. a fresh install of Ubuntu/WSL2.On such a system it is still possible to install lmql and run
lmql playground
, but as soon as you hit 'Run', you'll getI suspect the reason this wasn't caught earlier is that installing conda creates a
python
symlink. So very few developers would encounter this issue.The Solution
Simply replace all OS calls to
python
withpython3
.