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

[QUESTION] CHANGE THIS TITLE TO YOUR QUESTION #1387

Closed pakkiraju closed 4 years ago

pakkiraju commented 4 years ago

Before submitting an issue, make sure you have:

Which example file are you using?

import instabot
bot = instabot.Bot()
bot.login()

Describe your Question/Issue:

Im trying to simply login with the bot and it fails to write my login creds to secret.txt. Any help is appreciated. Or if even you tell me the format to put the credentials into the secret.txt I can handle it from there. Thanks.


Paste the output of python -V here:

Code you are using:

import instabot
bot = instabot.Bot()
bot.login()

Error/Debug Log:

C:\Users\akkir\.virtualenvs\instabot-crpN-NoD\Scripts\python.exe C:/Users/akkir/Desktop/instabot/test.py
Your file is broken. We will delete it and try again.
2020-03-26 14:09:00,730 - INFO - Instabot version: 0.116.0 Started
Traceback (most recent call last):
  File "C:\Users\akkir\Desktop\instabot\instabot\api\prepare.py", line 62, in check_secret
    login, password = f.readline().strip().split(":")
ValueError: not enough values to unpack (expected 2, got 1)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:/Users/akkir/Desktop/instabot/test.py", line 3, in <module>
    bot.login()
  File "C:\Users\akkir\Desktop\instabot\instabot\bot\bot.py", line 443, in login
    if self.api.login(**args) is False:
  File "C:\Users\akkir\Desktop\instabot\instabot\api\api.py", line 219, in login
    username, password = get_credentials(username=username)
  File "C:\Users\akkir\Desktop\instabot\instabot\api\prepare.py", line 24, in get_credentials
    while not check_secret():
  File "C:\Users\akkir\Desktop\instabot\instabot\api\prepare.py", line 75, in check_secret
    os.remove(SECRET_FILE)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\akkir\\Desktop\\instabot/config/secret.txt'

Process finished with exit code 1
close-issue-app[bot] commented 4 years ago

This issue has been automatically closed because the issue template is missing or incomplete. Filling the template is required so standard questions don't need to be asked again each time. Our ability to provide assistance is greatly hampered if few minutes are not taken to complete the issue template with the requested information. The details requested potentially affect which options to pursue. The small amount of time you will spend completing the template will also help the volunteers, providing assistance to you, to reduce the time required to help you.