Skip to content

Newest version install on Windows and Ubuntu fails #474

@am-kaiser

Description

@am-kaiser

Checklist

Description

When running a github action which uses sourcery I get the following error:

error: Distribution `sourcery==1.41.1 @ registry+[https://pypi.org/simple`](https://pypi.org/simple%60) can't be installed because it doesn't have a source distribution or wheel for the current platform

hint: You're on Linux (`manylinux_2_39_x86_64`), but `sourcery` (v1.41.1) only has wheels for the following platform: `macosx_10_9_universal2`; consider adding "sys_platform == 'linux' and platform_machine == 'x86_64'" to `tool.uv.required-environments` to ensure uv resolves to a version with compatible wheels

I got the same error when I tried to install it locally on my Windows machine, i.e.

uv pip install sourcery==1.41.1

 No solution found when resolving dependencies:    
  ╰─▶ Because sourcery==1.41.1 has no wheels with a   
      matching platform tag (e.g., `win_amd64`) and   
      you require sourcery==1.41.1, we can conclude   
      that your requirements are unsatisfiable.       

      hint: Wheels are available for `sourcery`       
      (v1.41.1) on the following platform:
      `macosx_10_9_universal2`

However, I saw that you support both Windows and Ubuntu.

I can install version 1.39.0 without any issues.

Code snippet that reproduces issue

uv pip install sourcery==1.41.1

Debug Information

IDE Version:
Not an IDE but I used powershell and it also occurred for a github action

Sourcery Version:
Trying to install version 1.41.1

Operating system and Version:
Windows 11 and Ubuntu 24.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions