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

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

Open
dcbb opened this issue Mar 10, 2023 · 1 comment

Comments

@dcbb
Copy link

dcbb commented Mar 10, 2023

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.

@Alan3344
Copy link

Alan3344 commented Sep 3, 2023

+1 Win11 Python3.11.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants