Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

can't create json-decode #51

Open
Sdrammaturgo opened this issue Sep 2, 2018 · 14 comments
Open

can't create json-decode #51

Sdrammaturgo opened this issue Sep 2, 2018 · 14 comments
Labels
Milestone

Comments

@Sdrammaturgo
Copy link

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
Copy link
Owner

residuum commented Sep 3, 2018

Possible duplicate of #49

@Sdrammaturgo
Copy link
Author

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
Copy link
Owner

residuum commented Sep 4, 2018

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

@Sdrammaturgo
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

Should be fixed with 2.0.0

@raphaelleduquesnoy
Copy link

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
Copy link
Owner

residuum commented Dec 11, 2022

Have you tried version 2.0.1, this should include libcurl.4.dylib? See #76

@residuum residuum reopened this Dec 11, 2022
@raphaelleduquesnoy
Copy link

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

@residuum
Copy link
Owner

residuum commented Dec 11, 2022

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
Copy link

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
Copy link
Owner

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
Copy link

Ok thanks anyway !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants