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

Support on M2 MacOS? #38

Closed
ngthanhtin opened this issue Dec 28, 2024 · 9 comments
Closed

Support on M2 MacOS? #38

ngthanhtin opened this issue Dec 28, 2024 · 9 comments

Comments

@ngthanhtin
Copy link

Hi,
Thank you for providing such a great framework for neurosymbolic.
As of now, I can not install scallop on MacOS M2, could you support a version on that machine?

Thank you so much,
Best
Tin

@Liby99
Copy link
Contributor

Liby99 commented Dec 28, 2024

MacOS is supported. Did you try to build from source? If so, is there a specific error message that you can share?

@RAbraham
Copy link

Hi Tin, I'm on Mac M2 and I'm able to run both the binary and the python library.

@ngthanhtin
Copy link
Author

Hi @Liby99 and @RAbraham , I was building this using make install-scli and run into this problem
Screenshot 2024-12-29 at 10 03 01 AM

@Liby99
Copy link
Contributor

Liby99 commented Dec 29, 2024

Thanks for the screenshot. This is indeed a backward compatibility issue that I recently fixed in a private version. Let me push the changes really soon.

@Liby99
Copy link
Contributor

Liby99 commented Dec 30, 2024

It should be updated by now

@ngthanhtin
Copy link
Author

Hi @Liby99 , thank you for your support, I succeeded in installing the binary version and can run some examples.
But I cannot install the python lib of scallopy, specifically:

  1. I install maturin
  2. make install-scallopy
    And I encounter this error:
    Screenshot 2024-12-30 at 11 16 25 AM

@RAbraham
Copy link

RAbraham commented Jan 1, 2025

fyi, I haven't tried to build from scratch but these are my notes for using the pre built python library

Option 1 (which I follow):

Scallop has wheels for a particular version(see releases https://github.com/scallop-lang/scallop/releases). e.g. 3.10

so you have to create a venv for that python version and download the arm64 wheel for that version.
e.g. pip install ~/Documents/software/scallop/scallopy-0.2.4-cp310-cp310-macosx_11_0_arm64.whl

Option 2(Not tested yet by me)

@ngthanhtin
Copy link
Author

Thank @RAbraham , I succeeded in installing it.

@RAbraham
Copy link

RAbraham commented Jan 1, 2025

That's great. if you installed it via some other way than mentioned above, please let us know how you did it, so we can record it for future.

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

3 participants