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

Unable to run ./scie-pants-macos-aarch64 from a clean macOS install on Apple Silicon #20327

Closed
charlietsai opened this issue Dec 22, 2023 · 3 comments
Assignees
Labels

Comments

@charlietsai
Copy link

charlietsai commented Dec 22, 2023

Describe the bug
On a clean install of macOS Ventura 13.6.2, either download ./scie-pants-macos-aarch64 or install via get-pants.sh, then running ./scie-pants-macos-aarch64 or pants, we get:

dyld[69639]: Library not loaded: /opt/homebrew/opt/xz/lib/liblzma.5.dylib
  Referenced from: <2077079D-7541-3421-8EEB-DB3F2CC8F35C> /Users/ctsai/.local/bin/pants
  Reason: tried: '/opt/homebrew/opt/xz/lib/liblzma.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/xz/lib/liblzma.5.dylib' (no such file), '/opt/homebrew/opt/xz/lib/liblzma.5.dylib' (no such file)
[1]    69639 abort      pants

It looks like xz is a required dependency but it's not mentioned.

Installing via brew resolves this:

/opt/homebrew/bin/brew install xz

Given scie-pants is supposed to be standalone, I would have expected to be able to use it directly without having to install something else. brew doesn't seem like a hard requirement? It looks like most people don't encounter this issue because xz is pulled in by other packages often installed via brew.

Pants version
Following the install instructions from v2.18

OS
macOS Ventura 13.6.2,

Additional info
N/A

@charlietsai charlietsai changed the title Unable to run ./scie-pants-macos-aarch64 on a clean Apple Sillicon Unable to run ./scie-pants-macos-aarch64 from a clean macOS install on Apple Sillicon Dec 22, 2023
@charlietsai charlietsai changed the title Unable to run ./scie-pants-macos-aarch64 from a clean macOS install on Apple Sillicon Unable to run ./scie-pants-macos-aarch64 from a clean macOS install on Apple Silicon Dec 22, 2023
@jsirois
Copy link
Contributor

jsirois commented Dec 22, 2023

The issue was in scie-jump: a-scie/jump#172

I fixed and published at https://github.com/a-scie/jump/releases/tag/v0.13.3

A scie-pants maintainer just needs to bump:
https://github.com/pantsbuild/scie-pants/blob/76911604586dab64cc226c5891504be607b506da/package/scie-pants.toml#L14-L15

A then release.

@benjyw benjyw self-assigned this Dec 22, 2023
@benjyw
Copy link
Contributor

benjyw commented Dec 22, 2023

scie-pants release at pantsbuild/scie-pants#339

@jsirois
Copy link
Contributor

jsirois commented Feb 2, 2024

Closed by pantsbuild/scie-pants#339

@jsirois jsirois closed this as completed Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants