Hello,
I am happy to announce the release of PuREST JSON 1.4.2, code name: Argo in shipyard.
This release is a minor update and contains changes to the build scripts and documentation. This version also has a Mac OS X release available via deken.
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, Linux i386, and Linux x86_64 with the name "purest_json"
Changes since 1.4.1:
See the full changelog at https://github.com/residuum/PuRestJson/blob/master/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
OMG...Cool, webservices!!! Thanks! José
El 3 ene. 2017 10:15 AM, "Thomas Mayer" thomas@residuum.org escribió:
Hello,
I am happy to announce the release of PuREST JSON 1.4.2, code name: Argo in shipyard.
This release is a minor update and contains changes to the build scripts and documentation. This version also has a Mac OS X release available via deken.
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, Linux i386, and Linux x86_64 with the name "purest_json"
Changes since 1.4.1:
- Update of build scripts and documentation
- Usage of CI for build
See the full changelog at https://github.com/residuum/PuRestJson/blob/master/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 -- "I'm a white male, age 18 to 49. Everyone listens to me, no matter how dumb my suggestions are." (Homer Simpson in: Lisa vs. Malibu Stacy) 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
Hello Thomas,
I just installed purest_json via deken but I can't create [json-decode]. [declare -stdlib purest_json] return nothing in the Pd console.
My configuation : Pd version 0.48.0-test5 Ubuntu 17.10
Any clue ? Thanx. ++
Jack
Le 03/01/2017 à 14:04, Thomas Mayer a écrit :
Hello,
I am happy to announce the release of PuREST JSON 1.4.2, code name: Argo in shipyard.
This release is a minor update and contains changes to the build scripts and documentation. This version also has a Mac OS X release available via deken.
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, Linux i386, and Linux x86_64 with the name "purest_json"
Changes since 1.4.1:
- Update of build scripts and documentation
- Usage of CI for build
See the full changelog at https://github.com/residuum/PuRestJson/blob/master/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
Hello Johannes,
Thank you, but even with [declare -stdpath purest_json -stdlib purest_json] it doesn't work.
libjson0 doesn't exist anymore on the official repository for Ubuntu 17.10 and according to the doc of purest_json, libcurl3 liboauth0 libjson0 are needed. Maybe the source of the problem ? https://ix.residuum.org/pd/purest_json.html ++
Jack
Le 16/10/2017 à 21:40, IOhannes m zmölnig a écrit :
On 10/16/2017 07:32 PM, Jack wrote:
[declare -stdlib purest_json] return nothing in the Pd console.
if you haven't loaded the "libdir" loader, you might need to add [declare -stdpath purest_json] as well.
dasmr IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Hi,
On 16.10.2017 22:50, Jack wrote:
Hello Johannes,
Thank you, but even with [declare -stdpath purest_json -stdlib purest_json] it doesn't work.
libjson0 doesn't exist anymore on the official repository for Ubuntu 17.10 and according to the doc of purest_json, libcurl3 liboauth0 libjson0 are needed. Maybe the source of the problem ? https://ix.residuum.org/pd/purest_json.html
Oops, yes, that is the source of the problem. The package is called libjson-c2.
The Debian and Ubuntu package is called pd-purest-json and is available since Ubuntu 16.04.
Hth, Thomas
"We can't win against obsession. They care, we don't. They win." (Ford Prefect in: Douglas Adams - Life, the Universe and Everything) http://www.residuum.org/
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
On 17.10.2017 22:55, Thomas Mayer wrote:
Hi,
On 16.10.2017 22:50, Jack wrote:
Hello Johannes,
Thank you, but even with [declare -stdpath purest_json -stdlib purest_json] it doesn't work.
libjson0 doesn't exist anymore on the official repository for Ubuntu 17.10 and according to the doc of purest_json, libcurl3 liboauth0 libjson0 are needed. Maybe the source of the problem ? https://ix.residuum.org/pd/purest_json.html
Oops, yes, that is the source of the problem. The package is called libjson-c2.
And in current distributions it is superseded by libjson-c3.
Hth, Thomas
"Prisons are needed only to provide the illusion that courts and police are effective. They're a kind of job insurance." (Leto II. in: Frank Herbert, God Emperor of Dune) http://www.residuum.org/
Hello Thomas,
Thanks for the info, libcurl3, liboauth0 and libjson-c3 are now installed. But, I am still unlucky with deken install, I get nothing after [declare -stdpath purest_json -stdlib purest_json] and [json-decode] : json-decode ... couldn't create
In verbose mode I get : ... tried /home/jack/.local/lib/pd/extra//purest_json/json-decode.pd_linux and succeeded ...
Do we need a new version of purest_json on deken ? ++
Jack
Le 17/10/2017 à 23:03, Thomas Mayer a écrit :
On 17.10.2017 22:55, Thomas Mayer wrote:
Hi,
On 16.10.2017 22:50, Jack wrote:
Hello Johannes,
Thank you, but even with [declare -stdpath purest_json -stdlib purest_json] it doesn't work.
libjson0 doesn't exist anymore on the official repository for Ubuntu 17.10 and according to the doc of purest_json, libcurl3 liboauth0 libjson0 are needed. Maybe the source of the problem ? https://ix.residuum.org/pd/purest_json.html
Oops, yes, that is the source of the problem. The package is called libjson-c2.
And in current distributions it is superseded by libjson-c3.
Hth, Thomas
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Le 17/10/2017 à 23:03, Thomas Mayer a écrit :
Oops, yes, that is the source of the problem. The package is called libjson-c2.
And in current distributions it is superseded by libjson-c3.
hmm, this is inaccurate, or at least it misses some information.
the package has been renamed not because the maintainers thought it was a fun thing to do, but because newer versions of json-c have broken ABI (so you cannot use an application that was linked against libjson-c2 with the new libjson-c3, simply because the new one is missing some symbols).
this also means that if you have a PuREST JSON linked against the old libjson-c2, it cannot be used with the libjson-c3 package. or vice versa.
On 2017-10-18 12:07, Jack wrote:
Do we need a new version of purest_json on deken ?
well, yes or no. there's no need for a "new version" at all, since there is no need to change PuREST JSON (the source code). you could however recompile purest-json against the new json-c and upload an *alternative* version. this alternative version will not be usable on systems that ship libjson-c2. so if a new upload replaces the old one, you will see the same problem on other machines ("this doesn't necessarily involve "physical replacement"; it's enough to lure people into downloading the new one, e.g. by bumping the version number)
deken is not really meant for such use cases at all.
however, other package management systems do provide means to track ABI changes in libraries. e.g. "apt", the Debian package manager. so if you have the option to use the Debian packages, please use them. all these problems will be gone!
fgamsdr IOhannes
Hello Johannes,
I keep this topic for the list since it is related to purest_json...
Le 18/10/2017 à 12:36, IOhannes m zmoelnig a écrit :
Le 17/10/2017 à 23:03, Thomas Mayer a écrit :
Oops, yes, that is the source of the problem. The package is called libjson-c2.
And in current distributions it is superseded by libjson-c3.
hmm, this is inaccurate, or at least it misses some information.
the package has been renamed not because the maintainers thought it was a fun thing to do, but because newer versions of json-c have broken ABI (so you cannot use an application that was linked against libjson-c2 with the new libjson-c3, simply because the new one is missing some symbols).
this also means that if you have a PuREST JSON linked against the old libjson-c2, it cannot be used with the libjson-c3 package. or vice versa.
On 2017-10-18 12:07, Jack wrote:
Do we need a new version of purest_json on deken ?
well, yes or no. there's no need for a "new version" at all, since there is no need to change PuREST JSON (the source code). you could however recompile purest-json against the new json-c and upload an *alternative* version. this alternative version will not be usable on systems that ship libjson-c2. so if a new upload replaces the old one, you will see the same problem on other machines ("this doesn't necessarily involve "physical replacement"; it's enough to lure people into downloading the new one, e.g. by bumping the version number)
deken is not really meant for such use cases at all.
however, other package management systems do provide means to track ABI changes in libraries. e.g. "apt", the Debian package manager. so if you have the option to use the Debian packages, please use them. all these problems will be gone!
Is there a reason that when I try to do : $ sudo apt install pd-purest-json
apt tries to download : gem gem-doc gem-extra gem-plugin-gmerlin gem-plugin-lqt gem-plugin-magick gem-plugin-v4l2 pd-libdir pd-purest-json puredata puredata-core puredata-doc puredata-extra puredata-gui puredata-utils
I still have installed Pd from source (idem for Gem) ? Thank you for your clarification. ++
Jack
fgamsdr IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
On 18/10/17 12:07, Jack wrote:
Le 18/10/2017 à 12:36, IOhannes m zmoelnig a écrit :
deken is not really meant for such use cases at all.
however, other package management systems do provide means to track ABI changes in libraries. e.g. "apt", the Debian package manager. so if you have the option to use the Debian packages, please use them. all these problems will be gone!
Is there a reason that when I try to do : $ sudo apt install pd-purest-json
apt tries to download : gem gem-doc gem-extra gem-plugin-gmerlin gem-plugin-lqt gem-plugin-magick gem-plugin-v4l2 pd-libdir pd-purest-json puredata puredata-core puredata-doc puredata-extra puredata-gui puredata-utils
apt chases dependencies (which it must to keep your system functional), and recommendations (though you can turn that off if you want, the manual explains how)
here are the depends and recommends my install finds today:
$ apt-cache show pd-purest-json | grep -e ^Depends -e ^Recommends Depends: libc6 (>= 2.4), libcurl3-gnutls (>= 7.16.2), libjson-c3 (>= 0.10), liboauth0 (>= 0.9.1), puredata-core | pd Recommends: pd-libdir
$ apt-cache show puredata-core | grep -e ^Depends -e ^Recommends Depends: libasound2 (>= 1.0.16), libc6 (>= 2.14), libportaudio2 (>= 19+svn20101113) Recommends: puredata-gui
$ apt-cache show puredata-gui | grep -e ^Depends -e ^Recommends Depends: python3:any, tk (>= 8.4), tcl8.5 | tclsh Recommends: puredata
$ apt-cache show puredata | grep -e ^Depends -e ^RecommendsDepends: puredata-core, puredata-gui, puredata-doc, puredata-extra, puredata-utils, puredata-dev Recommends: gem
$ apt-cache show gem | grep -e ^Depends -e ^Recommends Depends: libc6 (>= 2.15), libftgl2 (>= 2.1.3~rc5), libgcc1 (>= 1:3.0), libgl1-mesa-glx | libgl1, libglew2.0 (>= 1.12.0), libglu1-mesa | libglu1, libice6 (>= 1:1.0.0), libsm6, libstdc++6 (>= 5.2), libxxf86vm1, zlib1g (>= 1:1.1.4), puredata-core | pd Recommends: gem-doc, gem-extra, gem-plugin-gmerlin | gem-plugin-film, gem-plugin-magick | gem-plugin-image, gem-plugin-lqt | gem-plugin-record, gem-plugin-v4l2 | gem-plugin-video
I still have installed Pd from source (idem for Gem) ?
apt doesn't know or care about that
Hello Claude,
Thanks for these explanations. So according to : $ apt-cache show pd-purest-json | grep -e ^Depends -e ^Recommends
pd-purest-json only depends on :
On my system, pd is in /usr/local and sources are in my home, maybe there is a possibility to tell to apt to use the source of Pd in my home to install pd-purest-json. I understand this is not the regular way to install package but if can do it without to install all dependancies, i will give it a try.
Or, maybe, i can install puredata-core without deps. In this case, how i can do that ?
Thanx for help. ++
Jack
Le 18/10/2017 à 13:42, Claude Heiland-Allen a écrit :
On 18/10/17 12:07, Jack wrote:
Le 18/10/2017 à 12:36, IOhannes m zmoelnig a écrit :
deken is not really meant for such use cases at all.
however, other package management systems do provide means to track ABI changes in libraries. e.g. "apt", the Debian package manager. so if you have the option to use the Debian packages, please use them. all these problems will be gone!
Is there a reason that when I try to do : $ sudo apt install pd-purest-json
apt tries to download : gem gem-doc gem-extra gem-plugin-gmerlin gem-plugin-lqt gem-plugin-magick gem-plugin-v4l2 pd-libdir pd-purest-json puredata puredata-core puredata-doc puredata-extra puredata-gui puredata-utils
apt chases dependencies (which it must to keep your system functional), and recommendations (though you can turn that off if you want, the manual explains how)
here are the depends and recommends my install finds today:
$ apt-cache show pd-purest-json | grep -e ^Depends -e ^Recommends Depends: libc6 (>= 2.4), libcurl3-gnutls (>= 7.16.2), libjson-c3 (>= 0.10), liboauth0 (>= 0.9.1), puredata-core | pd Recommends: pd-libdir
$ apt-cache show puredata-core | grep -e ^Depends -e ^Recommends Depends: libasound2 (>= 1.0.16), libc6 (>= 2.14), libportaudio2 (>= 19+svn20101113) Recommends: puredata-gui
$ apt-cache show puredata-gui | grep -e ^Depends -e ^Recommends Depends: python3:any, tk (>= 8.4), tcl8.5 | tclsh Recommends: puredata
$ apt-cache show puredata | grep -e ^Depends -e ^RecommendsDepends: puredata-core, puredata-gui, puredata-doc, puredata-extra, puredata-utils, puredata-dev Recommends: gem
$ apt-cache show gem | grep -e ^Depends -e ^Recommends Depends: libc6 (>= 2.15), libftgl2 (>= 2.1.3~rc5), libgcc1 (>= 1:3.0), libgl1-mesa-glx | libgl1, libglew2.0 (>= 1.12.0), libglu1-mesa | libglu1, libice6 (>= 1:1.0.0), libsm6, libstdc++6 (>= 5.2), libxxf86vm1, zlib1g (>= 1:1.1.4), puredata-core | pd Recommends: gem-doc, gem-extra, gem-plugin-gmerlin | gem-plugin-film, gem-plugin-magick | gem-plugin-image, gem-plugin-lqt | gem-plugin-record, gem-plugin-v4l2 | gem-plugin-video
I still have installed Pd from source (idem for Gem) ?
apt doesn't know or care about that
Claude
Hi,
On 18/10/17 14:45, Jack wrote:
Or, maybe, i can install puredata-core without deps. In this case, how i can do that ?
you can't install without deps, but you can install without recommends:
$ man apt-get /recommends
gives:
--no-install-recommends
Do not consider recommended packages as a dependency for
installing. Configuration Item: APT::Install-Recommends.
$ man aptitude /recommends
gives:
-R, --without-recommends
Do not treat recommendations as dependencies when installing new
packages (this overrides settings in /etc/apt/apt.conf and
~/.aptitude/config). Packages previously installed due to
recommendations will not be removed.
This corresponds to the pair of configuration options
APT::Install-Recommends and APT::AutoRemove::RecommendsImportant.
but unfortunately:
$ man apt /recommends
gives no results, same in man pages for apt.conf and apt_preferences
sorry for having suggested the manuals are all helpful,
Thanks a lot Claude, it works fine now !
Here what i did (after installing dependencies for purest_json, except puredata-core) : $ sudo apt-get --no-install-recommends install puredata-core $ sudo apt install pd-purest-json
And then in Pd : [declare -path /usr/lib/pd/extra/purest_json] Now, Pd can load properly [json-decode]. ++
Jack
Le 18/10/2017 à 16:15, Claude Heiland-Allen a écrit :
Hi,
On 18/10/17 14:45, Jack wrote:
Or, maybe, i can install puredata-core without deps. In this case, how i can do that ?
you can't install without deps, but you can install without recommends:
$ man apt-get /recommends
gives:
--no-install-recommends Do not consider recommended packages as a dependency for installing. Configuration Item: APT::Install-Recommends.
$ man aptitude /recommends
gives:
-R, --without-recommends Do not treat recommendations as dependencies when installing new packages (this overrides settings in /etc/apt/apt.conf and ~/.aptitude/config). Packages previously installed due to recommendations will not be removed. This corresponds to the pair of configuration options APT::Install-Recommends and APT::AutoRemove::RecommendsImportant.
but unfortunately:
$ man apt /recommends
gives no results, same in man pages for apt.conf and apt_preferences
sorry for having suggested the manuals are all helpful,
Claude
Hi,
IOhannes m zmoelnig schrieb am 18.10.2017 12:36:
Le 17/10/2017 à 23:03, Thomas Mayer a écrit :
Oops, yes, that is the source of the problem. The package is called libjson-c2.
And in current distributions it is superseded by libjson-c3.
hmm, this is inaccurate, or at least it misses some information.
the package has been renamed not because the maintainers thought it was a fun thing to do, but because newer versions of json-c have broken ABI (so you cannot use an application that was linked against libjson-c2 with the new libjson-c3, simply because the new one is missing some symbols).
this also means that if you have a PuREST JSON linked against the old libjson-c2, it cannot be used with the libjson-c3 package. or vice versa.
Some additional information: The deken package has been built on Travis, i.e. Ubuntu 14.04:
https://travis-ci.org/residuum/PuRestJson/jobs/188512698
Since OP has compiled Pd and Gem himself, maybe compiling PuREST JSON would be the best option, just have a look at the instructions at: https://github.com/residuum/PuRestJson/wiki/Compilation
Hth, Thomas
Hello Thomas,
I find a solution (even it is not recommanded. Is it ?). See my last mail on this list. I never use debootstrap to compile on Linux, that's why i was looking for a solution via deken and then with apt. Thanks for your help and for purest_json. ++
Jack
Le 18/10/2017 à 16:45, Thomas Mayer a écrit :
Hi,
IOhannes m zmoelnig schrieb am 18.10.2017 12:36:
Le 17/10/2017 à 23:03, Thomas Mayer a écrit :
Oops, yes, that is the source of the problem. The package is called libjson-c2.
And in current distributions it is superseded by libjson-c3.
hmm, this is inaccurate, or at least it misses some information.
the package has been renamed not because the maintainers thought it was a fun thing to do, but because newer versions of json-c have broken ABI (so you cannot use an application that was linked against libjson-c2 with the new libjson-c3, simply because the new one is missing some symbols).
this also means that if you have a PuREST JSON linked against the old libjson-c2, it cannot be used with the libjson-c3 package. or vice versa.
Some additional information: The deken package has been built on Travis, i.e. Ubuntu 14.04:
https://travis-ci.org/residuum/PuRestJson/jobs/188512698
Since OP has compiled Pd and Gem himself, maybe compiling PuREST JSON would be the best option, just have a look at the instructions at: https://github.com/residuum/PuRestJson/wiki/Compilation
Hth, Thomas
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list