PuRestJson icon indicating copy to clipboard operation
PuRestJson copied to clipboard

can't create json-decode

Open Sdrammaturgo opened this issue 7 years ago • 14 comments

Hi everyone, I'm having this issue:

I built the library as explained in your instructions.

rest object works fine, but PD cannot create json-encode and json-decode objects.

I'm running pd 0.48-1 on macOS 10.13.4

Any hint?

Thank you

Sdrammaturgo avatar Sep 02 '18 16:09 Sdrammaturgo

Possible duplicate of #49

residuum avatar Sep 03 '18 13:09 residuum

Hmmm I don't think so, I read thread #49 but I'm working in a 64 bit environment on a 64bit version of PD

Sdrammaturgo avatar Sep 04 '18 08:09 Sdrammaturgo

Run Pd with -verbose flag at startup, the Pd console will then print out information on the error.

residuum avatar Sep 04 '18 11:09 residuum

Hi, sorry it took so long, this is what it says tried /Users/federicorizzi/Documents/MotuControl_PD/rest.d_fat and failed tried /Users/federicorizzi/Documents/MotuControl_PD/rest.pd_darwin and failed tried /Users/federicorizzi/Documents/MotuControl_PD/rest/rest.d_fat and failed tried /Users/federicorizzi/Documents/MotuControl_PD/rest/rest.pd_darwin and failed tried /Users/federicorizzi/Documents/MotuControl_PD/rest.pd and failed tried /Users/federicorizzi/Documents/MotuControl_PD/rest.pat and failed tried /Users/federicorizzi/Documents/MotuControl_PD/rest/rest.pd and failed tried /Users/federicorizzi/Documents/Pd/externals/rest.d_fat and failed tried /Users/federicorizzi/Documents/Pd/externals/rest.pd_darwin and succeeded [rest] part of PuREST JSON version 1.4.2 For more info see http://ix.residuum.org/pd/purest_json.html tried /Users/federicorizzi/Documents/MotuControl_PD/json-decode.d_fat and failed tried /Users/federicorizzi/Documents/MotuControl_PD/json-decode.pd_darwin and failed tried /Users/federicorizzi/Documents/MotuControl_PD/json-decode/json-decode.d_fat and failed tried /Users/federicorizzi/Documents/MotuControl_PD/json-decode/json-decode.pd_darwin and failed tried /Users/federicorizzi/Documents/MotuControl_PD/json-decode.pd and failed tried /Users/federicorizzi/Documents/MotuControl_PD/json-decode.pat and failed tried /Users/federicorizzi/Documents/MotuControl_PD/json-decode/json-decode.pd and failed tried /Users/federicorizzi/Documents/Pd/externals/json-decode.d_fat and failed tried /Users/federicorizzi/Documents/Pd/externals/json-decode.pd_darwin and succeeded tried /Users/federicorizzi/Documents/Pd/externals/json-decode.pd and failed tried /Users/federicorizzi/Documents/Pd/externals/json-decode.pat and failed tried /Users/federicorizzi/Documents/Pd/externals/json-decode/json-decode.pd and failed tried /Users/federicorizzi/Documents/MotuControl_PD/PuRestJson-master/json-decode.d_fat and failed tried /Users/federicorizzi/Documents/MotuControl_PD/PuRestJson-master/json-decode.pd_darwin and succeeded tried /Users/federicorizzi/Documents/MotuControl_PD/PuRestJson-master/json-decode.pd and failed tried /Users/federicorizzi/Documents/MotuControl_PD/PuRestJson-master/json-decode.pat and failed tried /Users/federicorizzi/Documents/MotuControl_PD/PuRestJson-master/json-decode/json-decode.pd and failed tried /Users/federicorizzi/Library/Pd/json-decode.d_fat and failed tried /Users/federicorizzi/Library/Pd/json-decode.pd_darwin and failed tried /Users/federicorizzi/Library/Pd/json-decode/json-decode.d_fat and failed tried /Users/federicorizzi/Library/Pd/json-decode/json-decode.pd_darwin and failed tried /Users/federicorizzi/Library/Pd/json-decode.pd and failed tried /Users/federicorizzi/Library/Pd/json-decode.pat and failed tried /Users/federicorizzi/Library/Pd/json-decode/json-decode.pd and failed tried /Library/Pd/json-decode.d_fat and failed tried /Library/Pd/json-decode.pd_darwin and failed tried /Library/Pd/json-decode/json-decode.d_fat and failed tried /Library/Pd/json-decode/json-decode.pd_darwin and failed tried /Library/Pd/json-decode.pd and failed tried /Library/Pd/json-decode.pat and failed tried /Library/Pd/json-decode/json-decode.pd and failed tried ../extra/json-decode.d_fat and failed tried ../extra/json-decode.pd_darwin and failed tried ../extra/json-decode/json-decode.d_fat and failed tried ../extra/json-decode/json-decode.pd_darwin and failed tried ../extra/json-decode.pd and failed tried ../extra/json-decode.pat and failed tried ../extra/json-decode/json-decode.pd and failed tried ../doc/5.reference/json-decode.d_fat and failed tried ../doc/5.reference/json-decode.pd_darwin and failed tried ../doc/5.reference/json-decode/json-decode.d_fat and failed tried ../doc/5.reference/json-decode/json-decode.pd_darwin and failed tried ../doc/5.reference/json-decode.pd and failed tried ../doc/5.reference/json-decode.pat and failed tried ../doc/5.reference/json-decode/json-decode.pd and failed json-decode ... couldn't create [rest] part of PuREST JSON version 1.4.2 For more info see http://ix.residuum.org/pd/purest_json.html tried /Users/federicorizzi/Documents/MotuControl_PD/json-decode.d_fat and failed tried /Users/federicorizzi/Documents/MotuControl_PD/json-decode.pd_darwin and failed tried /Users/federicorizzi/Documents/MotuControl_PD/json-decode/json-decode.d_fat and failed tried /Users/federicorizzi/Documents/MotuControl_PD/json-decode/json-decode.pd_darwin and failed tried /Users/federicorizzi/Documents/MotuControl_PD/json-decode.pd and failed tried /Users/federicorizzi/Documents/MotuControl_PD/json-decode.pat and failed tried /Users/federicorizzi/Documents/MotuControl_PD/json-decode/json-decode.pd and failed tried /Users/federicorizzi/Documents/Pd/externals/json-decode.d_fat and failed tried /Users/federicorizzi/Documents/Pd/externals/json-decode.pd_darwin and succeeded tried /Users/federicorizzi/Documents/Pd/externals/json-decode.pd and failed tried /Users/federicorizzi/Documents/Pd/externals/json-decode.pat and failed tried /Users/federicorizzi/Documents/Pd/externals/json-decode/json-decode.pd and failed tried /Users/federicorizzi/Documents/MotuControl_PD/PuRestJson-master/json-decode.d_fat and failed tried /Users/federicorizzi/Documents/MotuControl_PD/PuRestJson-master/json-decode.pd_darwin and succeeded tried /Users/federicorizzi/Documents/MotuControl_PD/PuRestJson-master/json-decode.pd and failed tried /Users/federicorizzi/Documents/MotuControl_PD/PuRestJson-master/json-decode.pat and failed tried /Users/federicorizzi/Documents/MotuControl_PD/PuRestJson-master/json-decode/json-decode.pd and failed tried /Users/federicorizzi/Library/Pd/json-decode.d_fat and failed tried /Users/federicorizzi/Library/Pd/json-decode.pd_darwin and failed tried /Users/federicorizzi/Library/Pd/json-decode/json-decode.d_fat and failed tried /Users/federicorizzi/Library/Pd/json-decode/json-decode.pd_darwin and failed tried /Users/federicorizzi/Library/Pd/json-decode.pd and failed tried /Users/federicorizzi/Library/Pd/json-decode.pat and failed tried /Users/federicorizzi/Library/Pd/json-decode/json-decode.pd and failed tried /Library/Pd/json-decode.d_fat and failed tried /Library/Pd/json-decode.pd_darwin and failed tried /Library/Pd/json-decode/json-decode.d_fat and failed tried /Library/Pd/json-decode/json-decode.pd_darwin and failed tried /Library/Pd/json-decode.pd and failed tried /Library/Pd/json-decode.pat and failed tried /Library/Pd/json-decode/json-decode.pd and failed tried ../extra/json-decode.d_fat and failed tried ../extra/json-decode.pd_darwin and failed tried ../extra/json-decode/json-decode.d_fat and failed tried ../extra/json-decode/json-decode.pd_darwin and failed tried ../extra/json-decode.pd and failed tried ../extra/json-decode.pat and failed tried ../extra/json-decode/json-decode.pd and failed tried ../doc/5.reference/json-decode.d_fat and failed tried ../doc/5.reference/json-decode.pd_darwin and failed tried ../doc/5.reference/json-decode/json-decode.d_fat and failed tried ../doc/5.reference/json-decode/json-decode.pd_darwin and failed tried ../doc/5.reference/json-decode.pd and failed tried ../doc/5.reference/json-decode.pat and failed tried ../doc/5.reference/json-decode/json-decode.pd and failed json-decode ... couldn't create [rest] part of PuREST JSON version 1.4.2

and so on, repeating and repeating the same messages.

Actually, looking at the first lines, I can tell I have all the *.pd_darwin files it says in the right folders, but I don't have any *.d_fat file anywhere.

Maybe I did something wrong in building the library?

Thank you again!

Sdrammaturgo avatar Sep 13 '18 17:09 Sdrammaturgo

This is a bit strange, because it clearly says tried /Users/federicorizzi/Documents/Pd/externals/json-decode.pd_darwin and succeeded and tried /Users/federicorizzi/Documents/MotuControl_PD/PuRestJson-master/json-decode.pd_darwin and succeeded twice.

residuum avatar Sep 14 '18 11:09 residuum

I know but still this is how the objects appear jsondecode

Let me know if there is any further information you would like to know.

Thank you very much.

Sdrammaturgo avatar Sep 19 '18 10:09 Sdrammaturgo

Should be fixed with 2.0.0

residuum avatar Nov 27 '22 21:11 residuum

Hi, I'have just installed last version of purest 2.0 on mac bigsur and pd 0.53.1, and I can't create Json-decode, rest and Json-encode. I have this error : purest_json/libcurl.4.dylib Reason: no suitable image found. Did find: file system relative paths not allowed in hardened programs Can you help me to fix this issue ?

Thanks

raphaelleduquesnoy avatar Dec 10 '22 14:12 raphaelleduquesnoy

Have you tried version 2.0.1, this should include libcurl.4.dylib? See https://github.com/residuum/PuRestJson/issues/76

residuum avatar Dec 11 '22 17:12 residuum

Could you give me an active link ? Thanks a lot in advance.

raphaelleduquesnoy avatar Dec 11 '22 19:12 raphaelleduquesnoy

It is available from deken, either from Pd itself (Help > Find externals, then search for "purest_json"), or via https://deken.puredata.info/search?libraries=purest_json&objects=&descriptions=

residuum avatar Dec 11 '22 21:12 residuum

I still have the problem : n: no suitable image found. Did find: file system relative paths not allowed in hardened programs json-decode ... couldn't create /Users/duquesnoyraphaelle/Documents/Pd/externals/purest_json/rest.pd_darwin: dlopen(/Users/duquesnoyraphaelle/Documents/Pd/externals/purest_json/rest.pd_darwin, 10): Library not loaded: @loader_path/libbrotlicommon.1.dylib Referenced from: /Users/duquesnoyraphaelle/Documents/Pd/externals/purest_json/libbrotlidec.1.dylib Reason: no suitable image found. Did find: file system relative paths not allowed in hardened programs rest ... couldn't create /Users/duquesnoyraphaelle/Documents/Pd/externals/purest_json/rest.pd_darwin: dlopen(/Users/duquesnoyraphaelle/Documents/Pd/externals/purest_json/rest.pd_darwin, 10): Library not loaded: @loader_path/libbrotlicommon.1.dylib Referenced from: /Users/duquesnoyraphaelle/Documents/Pd/externals/purest_json/libbrotlidec.1.dylib Reason: no suitable image found. Did find: file system relative paths not allowed in hardened programs rest ... couldn't create /Users/duquesnoyraphaelle/Documents/Pd/externals/purest_json/json-decode.pd_darwin: dlopen(/Users/duquesnoyraphaelle/Documents/Pd/externals/purest_json/json-decode.pd_darwin, 10): Library not loaded: @loader_path/libbrotlicommon.1.dylib Referenced from: /Users/duquesnoyraphaelle/Documents/Pd/externals/purest_json/libbrotlidec.1.dylib Reason: no suitable image found. Did find: file system relative paths not allowed in hardened programs json-decode ... couldn't create

Do I have made something bad ?

raphaelleduquesnoy avatar Dec 11 '22 21:12 raphaelleduquesnoy

This is a security feature on Mac OS X, and there is some discussion on Pd mailing lists on how to work around this feature for packaged libraries, but for now you will have to do it yourself. I am unsure on how to do that: https://lists.puredata.info/pipermail/pd-dev/2022-05/023077.html https://lists.puredata.info/pipermail/pd-dev/2022-05/023073.html

residuum avatar Dec 11 '22 21:12 residuum

Ok thanks anyway !

raphaelleduquesnoy avatar Dec 11 '22 21:12 raphaelleduquesnoy