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

Unable to run in Mac M1 #123

Closed
biraj094 opened this issue Dec 22, 2022 · 4 comments
Closed

Unable to run in Mac M1 #123

biraj094 opened this issue Dec 22, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@biraj094
Copy link
Contributor

So, I am having an issue running the project on M1 Mac.

The error is as follows:

      #warning "Using deprecated NumPy API, disable it with " \
       ^
      src/fractalshades/mpmath_utils/FP_loop.c:790:10: fatal error: 'gmp.h' file not found
      #include "gmp.h"
               ^~~~~~~
      1 warning and 1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for fractalshades
Failed to build fractalshades
ERROR: Could not build wheels for fractalshades, which is required to install pyproject.toml-based projects

I tried to look into the issue and found a similar solution for missing gmp.h here at OpenZeppelin/nile#22

However, the error still persists. I tried all the solutions mentioned, but am having issues running them.

@GBillotey
Copy link
Owner

Hi Biraj,

Unfortunately, currently only Linux & Mac OS are supported (mainly because, I only have access to those systems...)

To install on MAC you will need to install from source as I do not ship pre-built binaries, and a pre-requisite is to have recent versions of GMP, MPFR and MPC multi-precision arithmetic libraries installed on your system. I do not use Mac so I cannot help much more, if you manage to install I can only update the installation instruction I guess.
This SO question might help:
https://stackoverflow.com/questions/35360885/installing-finding-gmp-under-osx

I will keep this issue open for a while in case someone else can support.

@GBillotey GBillotey added the enhancement New feature or request label Dec 22, 2022
@biraj094
Copy link
Contributor Author

Thank you! Will try a few things.

@biraj094
Copy link
Contributor Author

Hey @GBillotey. The issue is fixed. Thankyou for pointing me in the right direction. Have sent a PR. Please review! #124

@GBillotey
Copy link
Owner

@biraj094 Thanks a lot for your feedback, I have merged #124 and will rebuild the doc soon.
You are the first 'external' contributor to this package !

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

No branches or pull requests

2 participants