Starting with a blank debian:trixie container and the .mise.toml file
[tools]
poetry = {version='2.2.1', pyproject='pyproject.toml'}
python = '3.12.9'
I also tried it without pyproject being defined and it didn't seem to help.
Run something like this to get mise installed:
apt-get update &&\
apt-get install -y \
curl \
git \
gnupg2 &&\
apt-get clean &&\
curl -Lo - https://mise.jdx.dev/gpg-key.pub | gpg --dearmor | tee /usr/share/keyrings/mise-archive-keyring.gpg 1> /dev/null &&\
echo "deb [signed-by=/usr/share/keyrings/mise-archive-keyring.gpg arch=amd64] https://mise.jdx.dev/deb stable main" | tee /etc/apt/sources.list.d/mise.list &&\
apt-get update &&\
apt-get install mise
Or whatever approach get's you mise that you like.
Then run the following (I've always had trouble getting python and poetry to install in the same command).
mise trust -y
mise install python
mise install poetry
Python installs ok.
Poetry does not.
mise poetry@2.2.1 install ⠁ 0s/root/.local/share/mise/installs/poetry/2.2.1/install_poetry.sh: line 5: python3: command not found
curl: (23) Failure writing output to destination, passed 5921 returned 710
mise ERROR Failed to install vfox:mise-plugins/vfox-poetry@2.2.1: runtime error: crates/vfox/src/lua_mod/hooks.rs:53:42: Poetry installation failed
stack traceback:
[C]: in function 'error'
crates/vfox/src/lua_mod/hooks.rs:53:42: in function 'PLUGIN.PostInstall'
/project/crates/vfox/src/plugin.rs:139:2: in main chunk
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
If you try and fix the PATH manually it does help but I can't fathom what this error actually is.
PATH=$PATH:/root/.local/share/mise/installs/python/3.12.9/bin/ mise install poetry
mise poetry@2.2.1 install ⠁ 0sRetrieving Poetry metadata
# Welcome to Poetry!
This will download and install the latest version of Poetry,
a dependency and package manager for Python.
It will add the `poetry` command to Poetry's bin directory, located at:
/root/.local/share/mise/installs/poetry/2.2.1/bin
You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.
Installing Poetry (2.2.1): An error occurred. Removing partial environment.
Poetry installation failed.
See /poetry-installer-error-pkqu0e9w.log for error logs.
mise ERROR Failed to install vfox:mise-plugins/vfox-poetry@2.2.1: runtime error: crates/vfox/src/lua_mod/hooks.rs:53:42: Poetry installation failed
stack traceback:
[C]: in function 'error'
crates/vfox/src/lua_mod/hooks.rs:53:42: in function 'PLUGIN.PostInstall'
/project/crates/vfox/src/plugin.rs:139:2: in main chunk
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
Not sure if this is two bugs or both are the same bug or that I'm missing something key. Now, to be fair mise isn't activated, but that shouldn't matter to mise internally should it?
Starting with a blank debian:trixie container and the .mise.toml file
I also tried it without pyproject being defined and it didn't seem to help.
Run something like this to get mise installed:
Or whatever approach get's you mise that you like.
Then run the following (I've always had trouble getting python and poetry to install in the same command).
Python installs ok.
Poetry does not.
If you try and fix the PATH manually it does help but I can't fathom what this error actually is.
Not sure if this is two bugs or both are the same bug or that I'm missing something key. Now, to be fair mise isn't activated, but that shouldn't matter to mise internally should it?