[BUG]: preparation.lock install fails on macOS

Open Beginner friendly
#357 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@darshith2527-sketch is already working on this.

Since Nov 22, 2026.

  • #368 by @darshith2527-sketch — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python, pytorch

Research direction

Read CONTRIBUTING.md and inspect requirements/preparation.lock, especially the markupsafe hashes and torch==2.14.0+cpu entry. Reproduce the failure with the issue's venv and pip install commands on macOS, then check how platform-specific requirements are represented while keeping Linux installation intact. Done when the documented install succeeds on macOS and Linux, or CONTRIBUTING.md clearly states that macOS is unsupported.

Written by the indexing model from the issue text.

Description

I was setting things up on my Mac (Apple Silicon, Python 3.12.14, pip 26.3) using the steps in CONTRIBUTING.md and the install fails. Looks like two separate problems.

The first is markupsafe. The lock only has hashes for the Linux and Windows wheels (Windows got added in #318), so pip rejects the Mac wheel:

markupsafe==3.0.3 from https://download.pytorch.org/whl/markupsafe-3.0.3-cp312-cp312-macosx_11_0_arm64.whl:
    Expected sha256 26a5784ded40c9e318cfc2bdb30fe164bdb8665ded9cd64d500a34fb42067b1c
         or d6dd0be5b5b189d31db7cda48b91d7e0a9795f31430b7f271219ab30f1d3ac9d
         Got        1872df69a4de6aead3491198eaf13810b565bdbeec3ae2dc8780f14458ec73ce

1872df... matches the hash PyPI lists for that file, so nothing's wrong with the download, it just isn't in the lock. I went through the rest of the packages and they all have their Mac hashes. markupsafe is the only one missing.

The second is torch. I added the markupsafe hash to a local copy of the lock to see how far it gets, and it stops at:

ERROR: Could not find a version that satisfies the requirement torch==2.14.0+cpu (from versions: ... 2.14.0, 2.14.1, 2.15.0)
ERROR: No matching distribution found for torch==2.14.0+cpu

There's no +cpu build of torch for Mac. On Mac the wheel is just 2.14.0.

Steps to reproduce:

uv venv --seed -p 3.12 venv
source venv/bin/activate
python -m pip install --require-hashes -r requirements/preparation.lock

A fix that leaves Linux alone could be a Mac-only torch line (torch==2.14.0 ; sys_platform == "darwin") plus the missing markupsafe hash. I'd rather not regenerate the whole lock, since rebuild_prep.sh depends on it. And if Mac isn't meant to be supported here, it'd help to say so in CONTRIBUTING.

Happy to put up a PR if that approach works for you.

Dominant language
Python
Stars
27
Forks
72
Avg merge
2d 19h
Merged PRs (30d)
45

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/OpenVerifiableLLM

All issues in AOSSIE-Org/OpenVerifiableLLM

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.