Login Register




How can I solve it? filter_list
Author
Message
How can I solve it? #1
Hello,
I'm using "instabot-py" and got below error:
Code:
Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/instabot_py/instabot.py", line 527, in get_media_id_by_tag all_data = json.loads(r.text) File "/usr/local/lib/python3.6/json/__init__.py", line 354, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.6/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)
What is the Python problem?

Thank you.

Reply

RE: How can I solve it? #2
(01-20-2020, 11:32 PM)Hack3rcon Wrote: Hello,
I'm using "instabot-py" and got below error:
Code:
Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/instabot_py/instabot.py", line 527, in get_media_id_by_tag all_data = json.loads(r.text) File "/usr/local/lib/python3.6/json/__init__.py", line 354, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.6/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)
What is the Python problem?

Thank you.

Error In The Above Code Is Because
get_media_id_by_tag all_data Is Returning None (No Data)
So json has no data to process so json is raising the error.

Solution To Fix Your Error.

Update the script.
The one u are using is outdated as i dont see the method 'get_media_id_by_tag all_data'
In the script (https://github.com/instabot-py/instabot....nstabot.py)

This issue has been fixed.
I Am InEvitable

Reply

RE: How can I solve it? #3
Thank you for your help.
I installed "Instabot.py" using below command:
Code:
# python3 -m pip install instabot-py
It should install the last version!!!!
(This post was last modified: 01-23-2020, 11:32 PM by Hack3rcon.)

Reply






Users browsing this thread: 1 Guest(s)