Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output from failed install #1833

Open
2 tasks done
davidszotten opened this issue Nov 23, 2024 · 1 comment
Open
2 tasks done

output from failed install #1833

davidszotten opened this issue Nov 23, 2024 · 1 comment

Comments

@davidszotten
Copy link

I've searched open issues for similar requests

  • Yes

I've recently downloaded the latest plugin version of mason.nvim

  • Yes

Problem description

fails to install ruff but i think i need more error details

Expected behavior

stdout or stderr from the failed call to python -m venv (or successful installation)

Affected packages

ruff

Mason output

◍ ruff
      ▼ Displaying full log
        Creating virtual environment…
        Error: Command '['/Users/david/.local/share/nvim-lazy/mason/packages/ruff/venv/bin/python3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
        spawn: python3 failed with exit code 1 and signal 0.

Installation log

[INFO  Sat 23 Nov 14:16:50 2024] ...m-lazy/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=ruff) {}
[DEBUG Sat 23 Nov 14:16:50 2024] ...m-lazy/lazy/mason.nvim/lua/mason-core/installer/init.lua:58: Attempting to lock package Package(name=ruff)
[DEBUG Sat 23 Nov 14:16:50 2024] ...m-lazy/lazy/mason.nvim/lua/mason-core/installer/init.lua:70: Wrote lockfile Package(name=ruff)
[DEBUG Sat 23 Nov 14:16:50 2024] ...al/share/nvim-lazy/lazy/mason.nvim/lua/mason-core/fs.lua:71: fs: mkdirp /Users/david/.local/share/nvim-lazy/mason/staging/ruff
[DEBUG Sat 23 Nov 14:16:50 2024] ...zy/mason.nvim/lua/mason-core/installer/registry/init.lua:149: Compiling installer. ruff {}
[DEBUG Sat 23 Nov 14:16:50 2024] ...zy/mason.nvim/lua/mason-core/installer/managers/pypi.lua:181: pypi: init
[DEBUG Sat 23 Nov 14:16:50 2024] ...azy/lazy/mason.nvim/lua/mason-core/installer/context.lua:229: Promoting cwd "/Users/david/.local/share/nvim-lazy/mason/staging/ruff" to "/Users/david/.local/share/nvim-lazy/mason/packages/ruff"
[DEBUG Sat 23 Nov 14:16:50 2024] ...al/share/nvim-lazy/lazy/mason.nvim/lua/mason-core/fs.lua:47: fs: rmrf /Users/david/.local/share/nvim-lazy/mason/packages/ruff
[DEBUG Sat 23 Nov 14:16:50 2024] ...al/share/nvim-lazy/lazy/mason.nvim/lua/mason-core/fs.lua:65: fs: mkdir /Users/david/.local/share/nvim-lazy/mason/packages/ruff
[DEBUG Sat 23 Nov 14:16:50 2024] ...al/share/nvim-lazy/lazy/mason.nvim/lua/mason-core/fs.lua:84: fs: rename /Users/david/.local/share/nvim-lazy/mason/staging/ruff /Users/david/.local/share/nvim-lazy/mason/packages/ruff
[DEBUG Sat 23 Nov 14:16:50 2024] ...share/nvim-lazy/lazy/mason.nvim/lua/mason-core/fetch.lua:37: Fetching URL "https://api.mason-registry.dev/api/pypi/ruff/versions/0.8.0"
[DEBUG Sat 23 Nov 14:16:50 2024] ...are/nvim-lazy/lazy/mason.nvim/lua/mason-core/process.lua:116: Spawning cmd="curl", spawn_opts={
  args = { "-H", "Accept: application/vnd.mason-registry.v1+json; q=1.0, application/json; q=0.8", "-H", "User-Agent: mason.nvim v1.10.0 (+https://github.com/williamboman/mason.nvim)", "-fsSL", "-X", "GET", "--connect-timeout", 30, "https://api.mason-registry.dev/api/pypi/ruff/versions/0.8.0" }
}
[DEBUG Sat 23 Nov 14:16:50 2024] ...are/nvim-lazy/lazy/mason.nvim/lua/mason-core/process.lua:187: Spawned with pid 75621
[DEBUG Sat 23 Nov 14:16:50 2024] ...are/nvim-lazy/lazy/mason.nvim/lua/mason-core/process.lua:148: Job pid=75621 exited with exit_code=0, signal=0
[DEBUG Sat 23 Nov 14:16:50 2024] ...are/nvim-lazy/lazy/mason.nvim/lua/mason-core/process.lua:116: Spawning cmd="python3", spawn_opts={
  args = { "--version" }
}
[DEBUG Sat 23 Nov 14:16:50 2024] ...are/nvim-lazy/lazy/mason.nvim/lua/mason-core/process.lua:187: Spawned with pid 75631
[DEBUG Sat 23 Nov 14:16:50 2024] ...are/nvim-lazy/lazy/mason.nvim/lua/mason-core/process.lua:148: Job pid=75631 exited with exit_code=0, signal=0
[DEBUG Sat 23 Nov 14:16:50 2024] ...zy/mason.nvim/lua/mason-core/installer/managers/pypi.lua:82: Resolved stock python3 installation version 3.13.0
[DEBUG Sat 23 Nov 14:16:50 2024] ...zy/mason.nvim/lua/mason-core/installer/managers/pypi.lua:128: Found python3 installation version=3.13.0, executable="python3"
[DEBUG Sat 23 Nov 14:16:50 2024] ...are/nvim-lazy/lazy/mason.nvim/lua/mason-core/process.lua:116: Spawning cmd="python3", spawn_opts={
  args = { "-m", "venv", "--system-site-packages", "venv" },
  cwd = "/Users/david/.local/share/nvim-lazy/mason/packages/ruff"
}
[DEBUG Sat 23 Nov 14:16:50 2024] ...are/nvim-lazy/lazy/mason.nvim/lua/mason-core/process.lua:187: Spawned with pid 75641
[DEBUG Sat 23 Nov 14:16:50 2024] ...are/nvim-lazy/lazy/mason.nvim/lua/mason-core/process.lua:148: Job pid=75641 exited with exit_code=1, signal=0
[DEBUG Sat 23 Nov 14:16:50 2024] ...al/share/nvim-lazy/lazy/mason.nvim/lua/mason-core/fs.lua:59: fs: unlink /Users/david/.local/share/nvim-lazy/mason/staging/ruff.lock
[DEBUG Sat 23 Nov 14:16:50 2024] ...al/share/nvim-lazy/lazy/mason.nvim/lua/mason-core/fs.lua:47: fs: rmrf /Users/david/.local/share/nvim-lazy/mason/packages/ruff
[DEBUG Sat 23 Nov 14:16:50 2024] ...m-lazy/lazy/mason.nvim/lua/mason-core/installer/init.lua:39: Building receipt for Package(name=ruff)
[ERROR Sat 23 Nov 14:16:50 2024] ...m-lazy/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=ruff) error=spawn: python3 failed with exit code 1 and signal 0.

Neovim version (>= 0.7)

NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1731601260

Operating system/version

Darwin david-Mac15,3 23.6.0 Darwin Kernel Version 23.6.0: Thu Sep 12 23:36:06 PDT 2024; root:xnu-10063.141.1.701.1~1/RELEASE_ARM64_T8122 arm64

Healthcheck

mason: require("mason.health").check()

mason.nvim ~
- OK mason.nvim version v1.10.0
- OK PATH: prepend
- OK Providers: 
    mason.providers.registry-api
    mason.providers.client
- OK neovim version >= 0.7.0

mason.nvim [Registries] ~
- OK Registry `github.com/mason-org/mason-registry version: 2024-11-23-random-bench` is installed.

mason.nvim [Core utils] ~
- OK unzip: `UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send`
- OK wget: `GNU Wget 1.25.0 built on darwin23.6.0.`
- OK curl: `curl 8.7.1 (x86_64-apple-darwin23.0) libcurl/8.7.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.61.0`
- OK gzip: `Apple gzip 430.140.2`
- OK tar: `bsdtar 3.5.3 - libarchive 3.5.3 zlib/1.2.12 liblzma/5.4.3 bz2lib/1.0.8 `
- OK bash: `GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)`
- OK sh: `Ok`

mason.nvim [Languages] ~
- WARNING Go: not available
  - ADVICE:
    - spawn: go failed with exit code - and signal -. go is not executable
- WARNING Composer: not available
  - ADVICE:
    - spawn: composer failed with exit code - and signal -. composer is not executable
- WARNING PHP: not available
  - ADVICE:
    - spawn: php failed with exit code - and signal -. php is not executable
- WARNING luarocks: not available
  - ADVICE:
    - spawn: luarocks failed with exit code - and signal -. luarocks is not executable
- OK Ruby: `ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]`
- OK node: `v18.12.0`
- OK cargo: `cargo 1.82.0 (8f40fc59f 2024-08-21)`
- WARNING julia: not available
  - ADVICE:
    - spawn: julia failed with exit code - and signal -. julia is not executable
- OK python: `Python 3.13.0`
- OK java: `openjdk version "17" 2021-09-14`
- OK RubyGem: `3.0.3.1`
- OK javac: `javac 17`
- OK pip: `pip 24.1.2 from /Users/david/Library/Application Support/uv/python/cpython-3.13.0-macos-aarch64-none/lib/python3.13/site-packages/pip (python 3.13)`
- OK python venv: `Ok`
- OK npm: `9.6.5`

mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 0. Remaining: 5000. Limit: 5000. Reset: Sat 23 Nov 16:00:11 2024.

Screenshots

No response

@davidszotten
Copy link
Author

actually re-reading this reminded me of an issue i've seen elsewhere and helped me find a workaround. i'm not sure which part of the stack has the bug but i think i know how to trigger / work around it:

the issue is the space in the path to the python binary (in /Application Support/)

is it possible some quoting is missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant