Hello,
I am happy to announce the release of PuREST JSON 2.0.0, code name: Medea.
This release fixes several bugs, and contains breaking changes to the outlet order in several objects.
PuREST JSON is a library for working with RESTful HTTP webservices, and JSON data.
Authentication and authorization for webservices are available with basic HTTP auth, cookie authentication, and OAuth. As an example for OAuth authenticated webservices, a Twitter client is included.
This release is available from deken for Windows 32 and 64 bit, Linux i386, x86_64, armv7 and arm64, as well as OS X with the name "purest_json".
Packages on deken are for single-precision float Pd and without multi-instance support. Building for double-precision float Pd and multi-instance support is possible from the source.
See the full changelog at https://github.com/residuum/PuRestJson/blob/2.0.0/Changelog.txt
Github repository: https://github.com/residuum/PuRestJson
Source code packages: https://github.com/residuum/PuRestJson/releases
Full documentation: https://github.com/residuum/PuRestJson/wiki
Build instructions for all platforms: https://github.com/residuum/PuRestJson/wiki/Compilation
Have fun, Thomas
Hi Thomas and list,
when using the external, [rest], [oauth] and [urlparams] are not working. Error shows:
Library not loaded: '/opt/homebrew/opt/json-c/lib/libjson-c.5.dylib' Referenced from: '/Users/XXXXXXX/Documents/Pd/externals/purest_json/rest.pd_darwin' Reason: tried: '/opt/homebrew/opt/json-c/lib/libjson-c.5.dylib' (no such file), '/usr/lib/libjson-c.5.dylib' (no such file)
happy for hints, about how to fix that.
Working on MacOS 12.5.1, M1 chip.
Thanks, Tobias
Am 27.11.2022 um 22:02 schrieb Thomas Mayer thomas@residuum.org:
Hello,
I am happy to announce the release of PuREST JSON 2.0.0, code name: Medea.
This release fixes several bugs, and contains breaking changes to the outlet order in several objects.
PuREST JSON is a library for working with RESTful HTTP webservices, and JSON data.
Authentication and authorization for webservices are available with basic HTTP auth, cookie authentication, and OAuth. As an example for OAuth authenticated webservices, a Twitter client is included.
This release is available from deken for Windows 32 and 64 bit, Linux i386, x86_64, armv7 and arm64, as well as OS X with the name "purest_json".
Packages on deken are for single-precision float Pd and without multi-instance support. Building for double-precision float Pd and multi-instance support is possible from the source.
See the full changelog at https://github.com/residuum/PuRestJson/blob/2.0.0/Changelog.txt
Github repository: https://github.com/residuum/PuRestJson
Source code packages: https://github.com/residuum/PuRestJson/releases
Full documentation: https://github.com/residuum/PuRestJson/wiki
Build instructions for all platforms: https://github.com/residuum/PuRestJson/wiki/Compilation
Have fun, Thomas -- "Ich komme aus dem Staunen nicht heraus." "Dann bleib halt drin, du Seppel" (Dietmar Dath - Die Abschaffung der Arten) http://www.residuum.org/
Pd-announce mailing list Pd-announce@lists.iem.at https://lists.puredata.info/listinfo/pd-announce
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
On Tue, 2023-01-31 at 08:47 +0100, KHM Mail wrote:
Hi Thomas and list,
when using the external, [rest], [oauth] and [urlparams] are not working. Error shows:
Library not loaded: '/opt/homebrew/opt/json-c/lib/libjson-c.5.dylib' Referenced from: '/Users/XXXXXXX/Documents/Pd/externals/purest_json/rest.pd_darwin' Reason: tried: '/opt/homebrew/opt/json-c/lib/libjson-c.5.dylib' (no such file), '/usr/lib/libjson-c.5.dylib' (no such file)
I see there is a version 2.0.1 available only for macOS (x86_64 and arm64). Without having looked at your problem in detail, you tried that version? This looks like something has been fixed specifically for macOS.
https://deken.puredata.info/library/purest_json
Roman
Hi Tobias,
On 31.01.23 08:47, KHM Mail wrote:
when using the external, [rest], [oauth] and [urlparams] are not working. Error shows:
Library not loaded: '/opt/homebrew/opt/json-c/lib/libjson-c.5.dylib' Referenced from: '/Users/XXXXXXX/Documents/Pd/externals/purest_json/rest.pd_darwin' Reason: tried: '/opt/homebrew/opt/json-c/lib/libjson-c.5.dylib' (no such file), '/usr/lib/libjson-c.5.dylib' (no such file)
As Roman has mentioned, there is version 2.0.1 only for Mac OS, because 2.0.0 did not include libcurl in the package (https://github.com/residuum/PuRestJson/issues/76), but that is not the case here.
It looks like the libraries are not linked correctly, because it should search for the dylib file first in the same folder, but that is not the case here.
As I do not own or have access to a Mac, maybe this has something to do with security hardening in current Mac OS X versions, try run Pd with the -verbose flag, and look for output on the Pd console.
Are there lines containing the following: "file system relative paths not allowed in hardened programs".
See also the conversation about this bug report: https://github.com/residuum/PuRestJson/issues/51
Hth, Thomas
On Tue, 2023-01-31 at 12:31 +0100, Thomas Mayer wrote:
Hi Tobias,
On 31.01.23 08:47, KHM Mail wrote:
when using the external, [rest], [oauth] and [urlparams] are not working. Error shows:
Library not loaded: '/opt/homebrew/opt/json-c/lib/libjson- c.5.dylib' Referenced from: '/Users/XXXXXXX/Documents/Pd/externals/purest_json/rest.pd_darwin' Reason: tried: '/opt/homebrew/opt/json-c/lib/libjson-c.5.dylib' (no such file), '/usr/lib/libjson-c.5.dylib' (no such file)
As Roman has mentioned, there is version 2.0.1 only for Mac OS, because 2.0.0 did not include libcurl in the package (https://github.com/residuum/PuRestJson/issues/76), but that is not the case here.
It looks like the libraries are not linked correctly, because it should search for the dylib file first in the same folder, but that is not the case here.
As I do not own or have access to a Mac, maybe this has something to do with security hardening in current Mac OS X versions, try run Pd with the -verbose flag, and look for output on the Pd console.
Are there lines containing the following: "file system relative paths not allowed in hardened programs".
See also the conversation about this bug report: https://github.com/residuum/PuRestJson/issues/51
The included libraries are x86_64 only. Even if the the externals are multiarch, they won't work on arm64.
Roman
On 1/31/23 13:16, Roman Haefeli wrote:
The included libraries are x86_64 only. Even if the the externals are multiarch, they won't work on arm64.
are they installed with 'brew' (on the build-machine)?
brew will only install single-arch binaries (and only for the currently selected architecture).
gfmdasr IOhannes