residuum / PuRestJson

PuREST JSON is a library for connecting Puredata (Pd) to HTTP services and encoding and decoding JSON data.
ix.residuum.org/pd/purest_json.html
Other
74 stars 9 forks source link

can't create json-decode #51

Open Sdrammaturgo opened 6 years ago

Sdrammaturgo commented 6 years ago

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

residuum commented 6 years ago

Possible duplicate of #49

Sdrammaturgo commented 6 years ago

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

residuum commented 6 years ago

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

Sdrammaturgo commented 6 years ago

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!

residuum commented 6 years ago

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.

Sdrammaturgo commented 6 years ago

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.

residuum commented 1 year ago

Should be fixed with 2.0.0

raphaelleduquesnoy commented 1 year ago

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

residuum commented 1 year ago

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

raphaelleduquesnoy commented 1 year ago

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

residuum commented 1 year ago

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=

raphaelleduquesnoy commented 1 year ago

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 ?

residuum commented 1 year ago

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

raphaelleduquesnoy commented 1 year ago

Ok thanks anyway !