irllabs / ml-lib

A machine learning library for Max and Pure Data
Other
275 stars 40 forks source link

Can't run the library on apple silicon #188

Closed LuigiCosi closed 5 months ago

LuigiCosi commented 6 months ago
Screenshot 2024-05-16 at 23 43 31
NiccoloGranieri commented 6 months ago

Hi Luigi,

thanks for the interest in ml.lib. The documentation is outdated, and I will take the opportunity to update it in the next few days, so thank you for pointing it out.

We have stopped releasing the package on Deken and have opted to use the GitHub releases page instead for Pd. Our latest release addresses specifically macOS ARM compatibility, and can be found here. Download ml.lib-1.1.5-macOS.zip, unzip, move the ml.lib folder in "/Users/yourHomeFolder/Documents/Pd" and set the correct path from the Pd preferences. You can follow this guide if you're unsure.

Note: you might struggle to open the externals the first time due to quarantine reasons. macOS will complain and tell you it is protecting you from malicious software. To overcome this issue, select all the ".pd_darwin" files in the ml-lib folder, right-click and "Open with" any application (TextEdit will do just fine). Once macOS has done verifying the files, it will open a bunch of text files that you can ignore, and close. From that point on, you should be able to use ml.lib in Pd.

I'm sorry if this procedure is quite complex, and please do let me know if you need further clarification.

Niccolò

LuigiCosi commented 5 months ago

Hi @NiccoloGranieri thank you so much for your help. I completely missed your message. I owe you a coffee!

I did follow the steps you provided but I was not able to make it work unfortunately.

Dowloaded and unzip the folder Put the folder into documents/Pd/externals set the path in pd

I'm on M3 macbook Pro, what can I do? any help is greatly appreciated as I'm very sad I can't get to use it as I used to on my intel machine..

Screenshot 2024-06-14 at 17 43 57 Screenshot 2024-06-14 at 17 42 06
NiccoloGranieri commented 5 months ago

Hi @LuigiCosi, did you read the step I left for you in the "Note:" section? This looks exactly like a quarantine issue: Pd can find the files, but macOS doesn't allow the use of them. Please try to follow that step and let me know if it works.

LuigiCosi commented 5 months ago

Hi @NiccoloGranieri , I found why the problem might occur: I run the experimental double-precision version of the Pure Data 0.54-1-Pd64.

When I try to use the lib on NOT the experimental double precision it works.

Should the lib be recompiled to run on the double precision version?

thanks

Luigi

NiccoloGranieri commented 5 months ago

Hi @LuigiCosi, glad you managed to make it work. I don't think it's simply a matter of recompiling, but this issue is outside my area of expertise. I'll close this thread and re-open a new one that focuses on the issue at hand. However, I wouldn't hold my breath as I doubt that we will be addressing this anytime soon, or at least until the double-precision experimental version gets merged into Pd's current release.

LuigiCosi commented 5 months ago

@NiccoloGranieri I totally understand. Thank you for the support.