From: Krzysztof Kozlowski <krzk@kernel.org>
To: devicetree@vger.kernel.org, Rob Herring <robh+dt@kernel.org>
Subject: Re: dtschema v2020.08.1 json.decoder.JSONDecodeError error
Date: Fri, 28 Aug 2020 17:44:32 +0200 [thread overview]
Message-ID: <20200828154432.GA24473@kozik-lap> (raw)
In-Reply-To: <20200828095115.GA18030@pi3>
On Fri, Aug 28, 2020 at 11:51:15AM +0200, Krzysztof Kozlowski wrote:
> Hi Rob,
>
> I am trying dt_bindings_check with on top of next-20200826 with dtschema
> v2020.08.01 and got errors on all schemas:
>
> =======
> Traceback (most recent call last):
> File "/home/krzk/.local/lib/python3.5/site-packages/jsonschema/validators.py", line 777, in resolve_from_url
> document = self.resolve_remote(url)
> File "/home/krzk/.local/lib/python3.5/site-packages/jsonschema/validators.py", line 860, in resolve_remote
> result = requests.get(uri).json()
> File "/home/krzk/.local/lib/python3.5/site-packages/requests/models.py", line 897, in json
> return complexjson.loads(self.text, **kwargs)
> File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
> return _default_decoder.decode(s)
> File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
> DTEX Documentation/devicetree/bindings/net/allwinner,sun7i-a20-gmac.example.dts
> obj, end = self.raw_decode(s, idx=_w(s, 0).end())
> File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
> raise JSONDecodeError("Expecting value", s, err.value) from None
> json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "/home/krzk/.local/bin/dt-doc-validate", line 67, in <module>
> ret = check_doc(f)
> File "/home/krzk/.local/bin/dt-doc-validate", line 33, in check_doc
> for error in sorted(dtschema.DTValidator.iter_schema_errors(testtree), key=lambda e: e.linecol):
> File "/home/krzk/.local/lib/python3.5/site-packages/dtschema/lib.py", line 663, in iter_schema_errors
> meta_schema = cls.resolver.resolve_from_url(schema['$schema'])
> File "/home/krzk/.local/lib/python3.5/site-packages/jsonschema/validators.py", line 779, in resolve_from_url
> raise exceptions.RefResolutionError(exc)
> jsonschema.exceptions.RefResolutionError: Expecting value: line 1 column 1 (char 0)
> =======
>
>
> Python v3.5.2
> Ubuntu 16.04
I tried also on newer machine (Ubuntu 18.04, Python 3.6.9) - the same.
Best regards,
Krzysztof
next prev parent reply other threads:[~2020-08-28 15:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-28 9:51 dtschema v2020.08.1 json.decoder.JSONDecodeError error Krzysztof Kozlowski
2020-08-28 15:44 ` Krzysztof Kozlowski [this message]
2020-08-28 22:58 ` Rob Herring
2020-09-02 18:29 ` Rob Herring
2020-09-02 19:22 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200828154432.GA24473@kozik-lap \
--to=krzk@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).