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.69k stars 1.47k forks source link

error on loading cookie file when you set base_path #1021

Closed elmissouri16 closed 5 years ago

elmissouri16 commented 5 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Purpose of your issue?


The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.


For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.

Paste the output of python -V here:

Code:

# Example code that will produce the error reported
from instabot import Bot

bot = Bot()
bot.login(username="user", password="pass")
followers = bot.get_user_followers(bot.user_id)

Error/Debug Log:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ZeroDivisionError: integer division or modulo by zero

Describe your issue

[https://github.com/instagrambot/instabot/blob/94d271520e84641d1391bcf25bdad0dd547cf62e/instabot/api/api_login.py#L188]() on this, its should read self.cookie_fname instead of fname

elmissouri16 commented 5 years ago

@Tkd-Alex is the fix available on the repo and pip ??

ohld commented 5 years ago

yes, try pip install -U instabot to update

elmissouri16 commented 5 years ago

yes, try pip install -U instabot to update

ok thank you