Date: Fri, 14 Jan 2022 21:18:13 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 261211] textproc/json2yaml: python3.7 doesn't appear to be supported Message-ID: <bug-261211-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261211 Bug ID: 261211 Summary: textproc/json2yaml: python3.7 doesn't appear to be supported Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: portmaster@bsdforge.com Flags: maintainer-feedback?(sunpoet@FreeBSD.org) Assignee: sunpoet@FreeBSD.org This port purports to convert json to yaml | yaml to json. Attempting to convert a valid YAML file to JSON returns: # json2yaml a-root.yml a-root.json Traceback (most recent call last): File "/usr/local/bin/json2yaml", line 62, in <module> convert(json_file, yaml_file) File "/usr/local/bin/json2yaml", line 48, in convert loaded_json =3D json.load(json_file, object_pairs_hook=3Dcollections.OrderedDict) File "/usr/local/lib/python3.7/json/__init__.py", line 296, in load parse_constant=3Dparse_constant, object_pairs_hook=3Dobject_pairs_hook,= **kw) File "/usr/local/lib/python3.7/json/__init__.py", line 361, in loads return cls(**kw).decode(s) File "/usr/local/lib/python3.7/json/decoder.py", line 337, in decode obj, end =3D self.raw_decode(s, idx=3D_w(s, 0).end()) File "/usr/local/lib/python3.7/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) As you can see I'm on python3.7. But the Makefile reports: USES=3D python:3.6+ The resultant .json file is 0 bytes in length. Any help greatly appreciated. Thanks. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261211-7788>