szhorvat / IGraphM

IGraph/M is the igraph interface for Mathematica
http://szhorvat.net/mathematica/IGraphM
Other
91 stars 17 forks source link

Support for macOS on arm64 #110

Closed tjeremie closed 2 years ago

tjeremie commented 3 years ago

Describe the bug IGraphM doesn't seem compatible with the most recent version of Mathematica, see error below when I try installing it. Maybe it is because I am on the Apple Silicon (M1 chip) version of Mathematica.

Error "The paclet !(\"IGraphM\") was successfully installed, but it will \ not be available in this session because it is not compatible with \ the currently running version of the Wolfram system."

Version information

szhorvat commented 3 years ago

Sorry about the late response. I am aware of this, and an ARM-compatible release is in the works. Currently I have little free time, so the next release is behind schedule. I will close this issue once the new release is out.

szhorvat commented 3 years ago

Until then, please use the Intel version of Mathematica to be able to use IGraph/M. Note that Mathematica itself lacks a few features on ARM.

julioparra commented 2 years ago

Hi @szhorvat, I was wondering if there is an update about this issue. Thanks for this awesome package :)

szhorvat commented 2 years ago

@julioparra Thanks for the reminder. Can you please send me an email? I'll try to create a testing version for you.

rohitn commented 2 years ago

@szhorvat Same issue on "13.0.0 for Mac OS X ARM (64-bit) (December 3, 2021)"

julioparra commented 2 years ago

Hi Szabolcs,

Sure, I’d be happy to test.

I’m using Mathematica 13.0.0.

Best,

Julio

On Dec 15, 2021 at 1:44 PM, <Szabolcs Horvát @.***)> wrote:

@julioparra (https://github.com/julioparra) Thanks for the reminder. Can you please send me an email? I'll try to create a testing version for you.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub (https://github.com/szhorvat/IGraphM/issues/110#issuecomment-995237221), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AAI5FQAWX2OZCKMABKLG2KTURED3HANCNFSM5GWQJZKA). Triage notifications on the go with GitHub Mobile for iOS (https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or Android (https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub).

julioparra commented 2 years ago

Hi @szhorvat, I was wondering if you had the chance to create that testing version. Thanks!

antononcube commented 2 years ago

Is your time on fixing this quantifiable with money? (E.g. dollar amount per hour.)

szhorvat commented 2 years ago

Can you offer a full-time faculty job? Applying for those is taking up most of my time now ...

antononcube commented 2 years ago

:) I see. Well, unfortunately my academia relations are only through conferences or meetup talks...

szhorvat commented 2 years ago

Hello everyone,

I prepared a rough pre-release with Apple Silicon support. You can download it here:

https://cloud.mpi-cbg.de/index.php/s/0vr04MnzdApEoiK

Please test it, and give feedback (works or doesn't work). If you have the time, you can try to run the test suite as well (downloadable from the same link). Feedback is welcome not only from Apple Silicon users, but also Linux and Windows (especially people using older Linux distros).

Keep in mind that this is a pre-release and it might be a bit rough around the edges.

Minimum supported Mathematica version is 11.0.

Raspberry Pi support is not included in this paclet (it will be re-added in the final release).

szhorvat commented 2 years ago

Please do test interruptability, if possible.

For example:

Needs["IGraphM`"]

g = IGErdosRenyiGameGNM[50, 200, DirectedEdges -> True]
IGFeedbackArcSet[g]

This should take a very long time to complete. You can press Command-. or Alt-. to interrupt the calculation. It may take 1-2 seconds until interruption kicks in, but it should not require more than one press of Command-..

julioparra commented 2 years ago

Hi @szhorvat,

Thank you so much for the update! I tried installing it using

Needs["PacletManager`"] PacletInstall["~/Downloads/IGraphM/IGraphM-0.5.90.paclet"]

and it gives the following error:

image

I am using Mathematica 13.0.0

In[1]:= $Version Out[1]= "13.0.0 for Mac OS X ARM (64-bit) (December 3, 2021)"

rohitn commented 2 years ago

Hi @szhorvat,

I see the same error

image

$Version "13.0.1 for Mac OS X ARM (64-bit) (January 28, 2022)"

szhorvat commented 2 years ago

Please re-download and try again.

flaviolpp commented 2 years ago

Hi @szhorvat,

I re-downloaded the package just now, and I am still getting the same error.

szhorvat commented 2 years ago

@flaviolpp Please uninstall the old one first, then re-install again. I did not bump the version number for this change, so a simple PacletInstall (without a prior PacletUninstall) will not reinstall it. Lesson learned, I'll bump the version for each new prerelease as I share them.

flaviolpp commented 2 years ago

I was not able to uninstall it with the PacletUninstall. It says Mathematica cannot find IGraphM. Instead, I deleted the paclet manually from "~/Library/Mathematica/Paclets/Repository/", which I believe achieves the same goal. Am I correct? Not sure Mathematica registers the paclet elsewhere ...

In any case, I did it and it returned the same error after PacletInstall.

szhorvat commented 2 years ago

Sorry about that, there was a typo in the accepted SystemID value. Please try again.

flaviolpp commented 2 years ago

There you go

Screenshot 2022-05-25 at 13 45 03

All worked fine. :) Also, this one

Screenshot 2022-05-25 at 13 46 09

went without problems, the operation was aborted on the first attempt.

rohitn commented 2 years ago

Hi @szhorvat

Thanks for the update.

DeleteDirectory[
 FileNameJoin@{$UserBasePacletsDirectory, "Repository", 
   "IGraphM-0.5.90"}, DeleteContents -> True]

PacletInstall["~/Downloads/IGraphM-0.5.91.paclet"]

All tests pass.

g = IGErdosRenyiGameGNM[50, 200, DirectedEdges -> True]
IGFeedbackArcSet[g]

Abort worked.

Awesome. Thanks a lot!

julioparra commented 2 years ago

Working like a charm!

Screen Shot 2022-05-25 at 09 52 42

Screen Shot 2022-05-25 at 09 54 06

Thanks again!

szhorvat commented 2 years ago

Thanks for all the feedback!

Please just use it as normal, or explore the new features based on the changelog, and if anything seems off, let me know. This'll help us reach to the final release more quickly.

szhorvat commented 2 years ago

A release is out now, closing this.

szhorvat commented 2 years ago

Please do test it and report any issues, no matter how minor. I'll try to fix them for 0.6.1.