Skip to content

On an M1 Mac, pip install fails due to a hard dependency on a non-existing pygame version #78

@dcbb

Description

@dcbb

This is based on #77, but it's probably better to have a dedicated issue. This is a summary of the discussion of #77.

It looks like the wheel file which pip install wasabi2d downloads contains requirements which cannot be satisfied, at least not on an M1 (arm) Mac. Specifically, install fails due to the following dependency, which does not exist: pygame==2.0.0.dev10

I was able to install Wasabi2d by doing the following:

  • download the wheel here
  • wheel unpack the file
  • change the in the following lines in info/METADATA (showing my new lines here with less restrictive requirement):
    • Requires-Dist: pygame (>=2.0.0)
    • Requires-Dist: mapbox-earcut (>=0.12.10)
      • This one crashed on install due missing cmake, i.e. it did not find a precompiled version 0.12.10 for my system, presumably because I'm on an M1 Macbook.
  • wheel pack everything back together
  • pip install the repacked wheel

However, with this workaround, I encountered an exception in the add_label(...) function, due to a variable that was a 1-element numpy array rather than a float scalar. Probably this error is caused by loosened package requirements as nobody else seems to have reported it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions