Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON decode error when parsing Twitter posts (jq on Windows) #16

Open
Dinth opened this issue Nov 18, 2022 · 4 comments
Open

JSON decode error when parsing Twitter posts (jq on Windows) #16

Dinth opened this issue Nov 18, 2022 · 4 comments

Comments

@Dinth
Copy link

Dinth commented Nov 18, 2022

Im getting this error when im trying to run the script:

dinth1906
---------------------------
Traceback (most recent call last):
  File "/home/dinth/tootbot/tootbot.py", line 158, in <module>
    d = json.load(open('tweets.json','r'))
  File "/usr/lib/python3.10/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.10/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)

@produnis
Copy link

Me too, same error....

@loxK
Copy link

loxK commented Nov 22, 2022

Guys, install the jq utility :

apt install jq

@cquest add it to the readme please

@produnis
Copy link

thanks a lot loxK, installing jq solved the problem for me...

@Arnaud-Albrecht
Copy link

I did install it, but to no avail, i'm on windows though.

@cquest cquest changed the title JSON decode error when parsing Twitter posts JSON decode error when parsing Twitter posts (jq on Windows) Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants