Using poetry on Cubbli Linux VM throws "[Errno 2] No such file or directory: 'python'" when used
The CS dpt course "Ohjelmistotekniikka" (=Software engineering) requires testing the course project on Cubbli remote desktop, and as part of that, installing Poetry
on the machine.
Following the steps provided in the course material
$ curl -sSL https://install.python-poetry.org | POETRY_HOME=$HOME/.local python3 -
$ echo "export PATH=\"\$HOME/.local/bin:\$PATH\"" >> $HOME/.bashrc
$ bash
$ mkdir test
$ cd test/
$ poetry init --python "^3.8" # Initialize the project without using the interactive dependency manager
$ poetry install
Throws error
[Errno 2] No such file or directory: 'python'
This is due to the latest Cubbli version not having the old Python2.7
installed.
One solution in Poetry's GitHub ticket on the issue that has received six 'thumbs up' recommends installing the python-is-python3
package, which according to Launchpad.net is a convenience packet that automates creation of symlink between /usr/bin/python
and python3
.
So I'm asking to install the packet, to see if it helps fixing the issue. I'm happy to help with testing.
The instructor of the course Matti Luukkainen has been notified about the issue.