pyjsonata icon indicating copy to clipboard operation
pyjsonata copied to clipboard

JSONata for Python seems broken

Open anshikg opened this issue 5 years ago • 2 comments

Hi, I am trying to use JSONata for python by using the python wrapper available here: https://pypi.org/project/pyjsonata/ I can't seem to install this, pip install command fails with:

 pip install pyjsonata                                       
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement pyjsonata (from versions: none)
ERROR: No matching distribution found for pyjsonata

Is there a plan to fix the PyPI build? I see that the make file needs to be written in python as mentioned here:

Source packages are currently broken until I can be bothered to rewrite jsonata-c’s Makefile in Python, as required by setuptools.

I am planning to take a dependency on JSONata in python and java and was hoping to understand if this is available for customer use. Any help here would be greatly appreciated.

Thanks

anshikg avatar Oct 28 '20 16:10 anshikg

@anshikg you're probably getting that error because there isn't a pre-compiled (wheel) version that matches your architecture (see e.g. https://pypi.org/project/pyjsonata/0.0.1a9/#files for what's available). For me at least, installation via pip does work in principle, as long as there's a published version that matches the machine it's being installed on.

Until the root cause (which you correctly point to) is fixed, you can still build your own wheel manually by following the instructions in the README, and then install that. It worked reasonably well on a Mac.

svet-b avatar Mar 04 '21 13:03 svet-b

I think I have an idea on how to fix this in pyjsonata. Btw I'm moving the issue to that repo since it's really a pyjsonata build problem.

Terribly sorry for taking a year to respond, I've had github email notifications turned off as they're so noisy, but it's made me miss quite a lot.

qlyoung avatar Sep 23 '21 04:09 qlyoung

There's now a pure python implementation that I would recommend using instead of this project: https://github.com/rayokota/jsonata-python

qlyoung avatar Sep 08 '24 20:09 qlyoung