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

Pre-commit hook fails at vale on Apple Silicon #4944

Open
d3jawu opened this issue Sep 17, 2024 · 1 comment
Open

Pre-commit hook fails at vale on Apple Silicon #4944

d3jawu opened this issue Sep 17, 2024 · 1 comment
Labels
🤖 aspect: dx Concerns developers' experience with the codebase 🛠 goal: fix Bug fix 🟨 priority: medium Not blocking but should be addressed soon 🧱 stack: mgmt Related to repo management and automations

Comments

@d3jawu
Copy link
Contributor

d3jawu commented Sep 17, 2024

Description

The pre-commit hook (ov j lint) fails on Apple Silicon with the error:

vale.....................................................................Failed
- hook id: vale
- exit code: 255

WARNING: Project requires a python version of ==3.12.*, The virtualenv is being 
created for you as it cannot be matched to the right version.
INFO: python.use_venv is on, creating a virtualenv for this project...
Virtualenv is created successfully at /opt/pdm/venvs/.vale-mwrrb3Cm-3.12
Synchronizing working set with resolved packages: 1 to add, 0 to update, 0 to 
remove

  ✔ Install vale 3.7.1.0 successful

  0:00:03 🎉 All complete! 1/1
* vale not found. Downloading it...
* https://github.com/errata-ai/vale/releases/download/v3.7.1/vale_3.7.1_Linux_64-bit.tar.gz downloaded to /tmp/tmp37db7isa/vale.zip
* Copying /tmp/tmp37db7isa/vale_unzipped/vale to /opt/pdm/venvs/.vale-mwrrb3Cm-3.12/lib/python3.12/site-packages/vale/vale_bin
* vale extracted and copied to module path.
[qemu]: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
error: Recipe `run` failed on line 40 with exit code 255

Reproduction

Run ./ov j lint on Apple Silicon.

Screenshots

image

Environment

  • Device: 15in M2 Macbook Air
  • OS: MacOS Sonoma 14.6.1
  • Other info: I'm using Orbstack for Docker.
@d3jawu d3jawu added 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work 🛠 goal: fix Bug fix labels Sep 17, 2024
@obulat
Copy link
Contributor

obulat commented Sep 18, 2024

Thank you for reporting, @d3jawu !
I'm also getting an error with Vale with the same environment, but the error message is different:

vale.....................................................................Failed
- hook id: vale
- exit code: 255

All packages are synced to date, nothing to do.

  0:00:00 🎉 All complete! 0/0
INFO: PDM 2.18.1 is installed, while 2.18.2 is available.
Please run `pipx upgrade pdm` to upgrade.
Run `pdm config check_update false` to disable the check.
OrbStack ERROR: Dynamic loader not found: /lib64/ld-linux-x86-64.so.2

This usually means that you're running an x86 program on an arm64 OS without multi-arch libraries.
To fix this, you can:
  1. Use an Intel (amd64) container to run this program; or
  2. Install multi-arch libraries in this container.

This can also be caused by running a glibc executable in a musl distro (e.g. Alpine), or vice versa.

For more details and instructions, see https://go.orbstack.dev/multiarch
error: Recipe `run` failed on line 40 with exit code 255

renovate-config-validator................................................Passed

@dhruvkb , I think you've touched the ov setup for mac recently. Do you know what could be the problem here?

@obulat obulat added 🟨 priority: medium Not blocking but should be addressed soon 🤖 aspect: dx Concerns developers' experience with the codebase 🧱 stack: mgmt Related to repo management and automations labels Sep 18, 2024
@krysal krysal removed the 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 aspect: dx Concerns developers' experience with the codebase 🛠 goal: fix Bug fix 🟨 priority: medium Not blocking but should be addressed soon 🧱 stack: mgmt Related to repo management and automations
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants