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

Use stellargraph with tensorflow_macos on Mac M1 #1856

Open
sanyabt opened this issue Jan 30, 2021 · 5 comments · May be fixed by #1860
Open

Use stellargraph with tensorflow_macos on Mac M1 #1856

sanyabt opened this issue Jan 30, 2021 · 5 comments · May be fixed by #1860
Labels
bug Something isn't working sg-library

Comments

@sanyabt
Copy link

sanyabt commented Jan 30, 2021

Describe the bug

Hi, I am trying to install stellargraph using pip on mac M1 with tensorflow release tensorflow_macos (as here). However, stellargraph setup.py does not recognize it as satisfying the tensorflow>=2.1.0 requirement. Is there anything I can change temporarily or fix to be able to use stellargraph with mac M1?

To Reproduce

Steps to reproduce the behavior:

  1. Working with miniforge, installed python==3.8.6 and tensorflow_macos
  2. Clone stellargraph/stellargraph.
  3. cd stellargraph/
  4. pip install .
  5. See error

Observed behavior

ERROR: Could not find a version that satisfies the requirement tensorflow>=2.1.0 (from stellargraph==1.3.0b0) (from versions: none)
ERROR: No matching distribution found for tensorflow>=2.1.0 (from stellargraph==1.3.0b0)

Environment

Operating system: macOS Big Sur (11.1), Chip: Apple M1

Python version: 3.8.6

Package versions: tensorflow_macos

Thanks!

@sanyabt sanyabt added bug Something isn't working sg-library labels Jan 30, 2021
@huonw
Copy link
Member

huonw commented Jan 31, 2021

Thanks for filing an issue. I'm currently also struggling with this, and aren't yet sure the best way to handle it. Potentially detecting when running on M1 and changing or removing the tensorflow dependency, but I haven't got this to work from a (very brief) basic test, yet.

@huonw
Copy link
Member

huonw commented Feb 2, 2021

I've made a start at #1860, but there's still some issues to work through that I haven't been able to do today.

@huonw
Copy link
Member

huonw commented May 16, 2021

@dokato noted in #1920 that the import can crash with "illegal hardware instruction" on M1.

@divyam1408
Copy link

Hi, I am facing the same issue , is there a solution or workaround for it yet?

Thanks

@FatemeMirzaeii
Copy link

any solution for this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sg-library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants