mangiucugna / json_repair

A python module to repair invalid JSON, commonly used to parse the output of LLMs
https://pypi.org/project/json-repair/
MIT License
826 stars 48 forks source link

Not support pytohn3.7 #5

Closed cool9203 closed 1 year ago

cool9203 commented 1 year ago

Describe the bug

First sorry for my english.

This package used := operator. The operator start with python3.8, so not support python3.7.

But python3.7 will install success, and pyproject.toml set support python3.7. Should set to python3.8 or not use := opeartor.

https://github.com/mangiucugna/json_repair/blob/eaf67ab83cafe6fb8a8399414a2c61718c8e94d7/pyproject.toml#L14

To Reproduce Steps to reproduce the behavior:

  1. Use python3.7.
  2. Use this package
  3. See error

Expected behavior Should run success in python3.7 or install failed in python3.7.

Screenshots image

Additional context

Example code(in python3.7):

import json

from json_repair import repair_json

json_string = r'{"a": 1 }{}'

json.loads(repair_json(json_string))
mangiucugna commented 1 year ago

Thank you for your report, I have added now a github action to test across multiple python versions. I am releasing now 0.1.10 to be compatible with python 3.7