elgiano / nn.ar

nn_tilde adaptation for SuperCollider
GNU General Public License v3.0
30 stars 4 forks source link

yaml file #8

Open diegochavez-io opened 8 months ago

diegochavez-io commented 8 months ago

I'm getting this error in Supercollider on Apple silicon, M2.

FAILURE IN SERVER /cmd failed ERROR: NNModelInfo: can't load info file '/Library/Application Support/SuperCollider/tmp/nn-sc-1009.yaml'

elgiano commented 6 months ago

Hi @diegochavez-io could you send more info about how did you get into this error? What code did you execute?

YeEunNamKoong commented 3 months ago

Somehow I do have same problem.... I'm using Apple silicon, M1 though.

FAILURE IN SERVER /cmd failed ERROR: NNModelInfo: can't load info file '/Users/username/Library/Application Support/SuperCollider/tmp/nn-sc-1008.yaml'

PROTECTED CALL STACK: a FunctionDef 0x7f9f8830cf80 sourceCode = "" Meta_NNModelInfo:fromFile 0x7f9f8830cbc0 arg this = NNModelInfo arg infoFile = /Users/sofolofo/Library/Application Support/SuperCollider/tmp/nn-sc-1008.yaml NNModel:initFromFile 0x7f9f88519e40 arg this = NNModel(nil, nil) arg infoFile = /Users/sofolofo/Library/Application Support/SuperCollider/tmp/nn-sc-1008.yaml var info = nil a FunctionDef 0x7f9f88518cc0 sourceCode = "" Function:prTry 0x7f9f88771a40 arg this = a Function var result = nil var thread = a Routine var next = nil var wasInProtectedFunc = false

CALL STACK: Exception:reportError arg this = Nil:handleError arg this = nil arg error = Thread:handleError arg this = arg error = Thread:handleError arg this = arg error = Object:throw arg this = Function:protect arg this = arg handler = var result = Routine:prStart arg this = arg inval = 149.808184958 ^^ The preceding error dump is for ERROR: NNModelInfo: can't load info file '/Users/username/Library/Application Support/SuperCollider/tmp/nn-sc-1008.yaml'

elgiano commented 2 months ago

Hey @YeEunNamKoong, thanks for the info! It looks like your server doesn't know our /nn_load command, which is the one that generates the yaml file. This can be due perhaps to an incomplete installation of this plugin... but obviously you have the files in the right place, otherwise you wouldn't even have NNModelInfo and the other classes.

My guess is that you need to de-quarantine all the scx files coming with this plugin. Could you send me the output of s.boot?

You could also try to run the code at https://github.com/elgiano/nn.ar/issues/10, then reboot your server, and see if that fixes it.