ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.71k stars 1.47k forks source link

filter_users=False error on new bot version #676

Closed river8822 closed 5 years ago

river8822 commented 6 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Purpose of your issue?


I just installed the new version of the bot, I'm from pythonanywhere where the bot has always worked well, I'm in ultimate scheduler, in the file ultimate.py The only thing I add is "filter_users=False," and it appears The error, if I delete the "filter_users=False," works fine. I would like to know how I do to stop user filtering then.

Python 2.7.12

bot = Bot(filter_users=False,comments_file=config.COMMENTS_FILE,
          blacklist_file=config.BLACKLIST_FILE,
          whitelist_file=config.WHITELIST_FILE,
          friends_file=config.FRIENDS_FILE)

ERROR:

2018-10-07 15:36:22,621 - INFO - ULTIMATE script. Safe to run 24/7!                                                                                                        
2018-10-07 15:38:00,016 - INFO - Follow followers of: astronomy                                                                                             
2018-10-07 15:38:01,724 - INFO - Going to follow 350 users.                                                                                                                

Going to follow 350 users.                                                                                                                                                 

After filtering `skipped.txt`, 350 user_ids left to follow.                                                                                                                
Processed users:   0%|                                                                                                                             | 0/350 [00:00<?, ?it/s]
 ===> Going to follow `user_id`: 7517020487.                                                                                                                               

===> FOLLOWED <==== `user_id`: 7517020487.                                                                                                                                 
Adding '7517020487' to `followed.txt`.                                                                                                                                     
'7517020487' already in `followed.txt`.                                                                                                                                    
Exception KeyError: KeyError(<weakref at 0x7f4447f22940; to 'tqdm' at 0x7f444746a9d0>,) in <bound method tqdm.__del__ of Processed users:   0%|                            
                                                                                                 | 0/350 [00:00<?, ?it/s]> ignored                                         
Exception in thread Thread-1:                                                                                                                                              
Traceback (most recent call last):                                                                                                                                         
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner                                                                                                   
    self.run()                                                                                                                                                             
  File "/usr/lib/python2.7/threading.py", line 754, in run                                                                                                                 
    self.__target(*self.__args, **self.__kwargs)                                                                                                                           
  File "ultimate-fol.py", line 48, in follow_followers                                                                                                                     
    bot.follow_followers(random_user_file.random(), nfollows=config.NUMBER_OF_FOLLOWERS_TO_FOLLOW)                                                                         
  File "/home/perritonice/.local/lib/python2.7/site-packages/instabot/bot/bot.py", line 471, in follow_followers                                                           
    return follow_followers(self, user_id, nfollows)                                                                                                                       
  File "/home/perritonice/.local/lib/python2.7/site-packages/instabot/bot/bot_follow.py", line 80, in follow_followers                                                     
    self.follow_users(followers[:nfollows])                                                                                                                                
  File "/home/perritonice/.local/lib/python2.7/site-packages/instabot/bot/bot.py", line 468, in follow_users                                                               
    return follow_users(self, user_ids)                                                                                                                                    
  File "/home/perritonice/.local/lib/python2.7/site-packages/instabot/bot/bot_follow.py", line 43, in follow_users                                                         
    if not self.follow(user_id):                                                                                                                                           
  File "/home/perritonice/.local/lib/python2.7/site-packages/instabot/bot/bot.py", line 465, in follow                                                                     
    return follow(self, user_id)                                                                                                                                           
  File "/home/perritonice/.local/lib/python2.7/site-packages/instabot/bot/bot_follow.py", line 19, in follow                                                               
    if user_id not in self._following:                                                                                                                                     
TypeError: argument of type 'NoneType' is not iterable
stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.