Skip to content

Can't run on Mac - error: Distribution tree-sitter-language-pack==1.6.3 #66

@JavascriptMick

Description

@JavascriptMick

Trying to run on Mac...

% uv init --python 3.12
Initialized project `semble-mac`
% uv run python --version
Using CPython 3.12.11
Creating virtual environment at: .venv
Python 3.12.11
% uv add semble
Resolved 46 packages in 239ms
error: Distribution `tree-sitter-language-pack==1.6.3 @ registry+https://pypi.org/simple` can't be installed because it doesn't have a source distribution or wheel for the current platform

hint: You're on macOS (`macosx_14_0_x86_64`), but `tree-sitter-language-pack` (v1.6.3) only has wheels for the following platforms: `manylinux_2_34_aarch64`, `manylinux_2_34_x86_64`, `win_amd64`; consider adding your platform to `tool.uv.required-environments` to ensure uv resolves to a version with compatible wheels

Workaround

adding this to my pyroject.toml seems to make it work (I'm the third combo) ... is this an ok approach?

[tool.uv]
required-environments = [
    "sys_platform == 'linux' and platform_machine == 'x86_64'",
    "sys_platform == 'darwin' and platform_machine == 'arm64'",
    "sys_platform == 'darwin' and platform_machine == 'x86_64'"
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions