mise icon indicating copy to clipboard operation
mise copied to clipboard

Can't switch to python-build nor install python

Open jordan-bravo opened this issue 7 months ago • 0 comments

Describe the bug The command mise install [email protected] shows an error message with a hint: if you are experiencing issues with this python, switch to python-build by running: mise settings set python_compile 0.

However, following the instructions leads to an error: Unknown setting: python_compile.

I tried manually creating the file ~/.config/mise/settings.toml with python_compile = false, and I also tried it with python_compile = true.

I also tried MISE_PYTHON_COMPILE=1 mise install [email protected] and MISE_PYTHON_COMPILE=0 mise install [email protected]

To Reproduce

  • Install mise with nix home-manager.
  • Activate with eval "$(~/.nix-profile/bin/mise activate zsh)".
  • Run the command mise install [email protected].
  • Run the command mise settings set python_compile 0.

Expected behavior Python should install. If not, then mise settings set python_compile 0 should not give an error.

mise doctor output

mise version:
  2024.1.11 linux-x64 (2024-01-15)

build:
  Target: x86_64-unknown-linux-gnu
  Features: DEFAULT, NATIVE_TLS
  Built: Mon, 15 Jan 2024 14:19:45 +0000
  Rust Version: rustc 1.75.0 (82e1608df 2023-12-21) (built from a source tarball)
  Profile: release

shell:
  /run/current-system/sw/bin/zsh
  zsh 5.9 (x86_64-pc-linux-gnu)

mise data directory:
  /home/jordan/.local/share/mise

mise environment variables:
  MISE_SHELL=zsh

mise settings file:
  ~/.config/mise/settings.toml

settings:
  {
    "all_compile": true,
    "always_keep_download": false,
    "always_keep_install": false,
    "asdf_compat": false,
    "color": true,
    "disable_default_shorthands": false,
    "disable_tools": [],
    "experimental": true,
    "jobs": 4,
    "legacy_version_file": true,
    "legacy_version_file_disable_tools": [],
    "node_compile": true,
    "not_found_auto_install": true,
    "paranoid": false,
    "plugin_autoupdate_last_check_duration": "7d",
    "python_compile": false,
    "python_venv_auto_create": false,
    "raw": false,
    "shorthands_file": null,
    "task_output": null,
    "trusted_config_paths": [],
    "quiet": false,
    "verbose": false,
    "yes": false,
    "ci": false,
    "cd": null,
    "debug": false,
    "env_file": null,
    "trace": false,
    "log_level": "info"
  }

config files:
  /home/jordan/.python-version

plugins:
  bun      (core)
  deno     (core)
  erlang   (core)
  go       (core)
  java     (core)
  node     (core)
  python   (core)
  ruby     (core)
  stylua   https://github.com/jc00ke/asdf-stylua.git#d8c9762

toolset:
  [email protected]

1 problem found:
new mise version 2024.1.23 available, currently on 2024.1.11

Additional context Add any other context about the problem here.

Screenshot from 2024-01-18 14-19-23

jordan-bravo avatar Jan 18 '24 23:01 jordan-bravo