Igbot: [BUG] Traceback (most recent call last)

Created on 23 Feb 2020  路  3Comments  路  Source: ohld/igbot

Example file

comment_hashtags

Describe the bug
i type "pip install -U instabot"
after that i type "python comment_hashtags.py comments.txt ceramah videoislam fotoislam"
this problem arose

Log

C:\Users\nizar\examples\comment>python comment_hashtags.py comments.txt ceramah videoislam fotoislam
2020-02-23 05:58:15,093 - INFO - Instabot version: 0.110.0 Started
Which account do you want to use? (Type number)
1: myusername
0: add another account.
-1: delete all accounts.
1
2020-02-23 05:58:17,151 - INFO - Not yet logged in starting: PRE-LOGIN FLOW!
Traceback (most recent call last):
  File "comment_hashtags.py", line 30, in <module>
    bot.login()
  File "C:\Users\nizar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\bot\bot.py", line 443, in login
    if self.api.login(**args) is False:
  File "C:\Users\nizar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\api\api.py", line 266, in login
    self.pre_login_flow()
  File "C:\Users\nizar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\api\api.py", line 182, in pre_login_flow
    return pre_login_flow(self)
  File "C:\Users\nizar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\api\api_login.py", line 107, in pre_login_flow
    self.sync_device_features()
  File "C:\Users\nizar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\api\api.py", line 155, in sync_device_features
    return sync_device_features(self, login)
  File "C:\Users\nizar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\api\api_login.py", line 23, in sync_device_features
    data["_uid"] = self.user_id
  File "C:\Users\nizar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\api\api.py", line 616, in user_id
    return self.cookie_dict["ds_user_id"]
KeyError: 'ds_user_id'

To Reproduce

(EXAMPLE:) Steps to reproduce the behavior:
cd examples\comment
python comment_hashtags.py comments.txt ceramah videoislam fotoislam

Expected behavior

A clear and concise description of what you expected to happen.

Additional context

Add any other context about the problem here.

Version

Python version (Python 3.8.1):
OS: Win 10

bug

Most helpful comment

2020-02-23 05:58:15,093 - instabot version: 0.110.0 (bot) - INFO - Instabot version: 0.110.0 Started
2020-02-23 05:58:15,093 - instabot version: 0.110.0 (bot) - DEBUG - Bot imported from C:\Users\nizar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\bot\bot.py
2020-02-23 05:58:17,151 - instabot version: 0.110.0 (api_login) - INFO - Not yet logged in starting: PRE-LOGIN FLOW!
2020-02-23 05:58:19,559 - instabot version: 0.110.0 (api) - DEBUG - POST to endpoint: accounts/contact_point_prefill/ returned response:

All 3 comments

Please post the log file that is saved in the config/log/ folder.

2020-02-23 05:58:15,093 - instabot version: 0.110.0 (bot) - INFO - Instabot version: 0.110.0 Started
2020-02-23 05:58:15,093 - instabot version: 0.110.0 (bot) - DEBUG - Bot imported from C:\Users\nizar\AppData\Local\Programs\Python\Python38-32\lib\site-packages\instabot\bot\bot.py
2020-02-23 05:58:17,151 - instabot version: 0.110.0 (api_login) - INFO - Not yet logged in starting: PRE-LOGIN FLOW!
2020-02-23 05:58:19,559 - instabot version: 0.110.0 (api) - DEBUG - POST to endpoint: accounts/contact_point_prefill/ returned response:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yaniferhaoui picture yaniferhaoui  路  6Comments

iransales picture iransales  路  4Comments

kantona80 picture kantona80  路  8Comments

spctra picture spctra  路  9Comments

ohld picture ohld  路  8Comments