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

ImportError: No module named requests #682

Closed dogukanaras closed 5 years ago

dogukanaras commented 5 years ago

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: python 3.7.0 already installed

Code:

import os
import sys
import time
import random
from instabot import Bot
sys.setdefaultencoding('utf-8')
from instapy import InstaPy

def job():
    username='*****'
    password='******'
    hashtags = ['izmir']
    bot = Bot(like_delay=random.randint(50,100),follow_delay=random.randint(50,100),unfollow_delay=random.randint(30,70),stop_words=stop_words)
    bot.login(username=username, password=password)
    bot.unfollow_non_followers()
    bot.save_user_stats(username, os.path.abspath('logs'))
    bot.logout()

Error/Debug Log:

Traceback (most recent call last):
  File "start.py", line 6, in <module>
    from instabot import Bot
  File "/Users/username/Library/Mobile Documents/com~apple~CloudDocs/instabot/*****/instabot/__init__.py", line 1, in <module>
    from .api import API
  File "/Users/username/Library/Mobile Documents/com~apple~CloudDocs/instabot/*****/instabot/api/__init__.py", line 1, in <module>
    from .api import API
  File "/Users/username/Library/Mobile Documents/com~apple~CloudDocs/instabot/*****/instabot/api/api.py", line 10, in <module>
    import requests
ImportError: No module named requests

Describe your issue

Requirement already satisfied: requests in /usr/local/lib/python3.7/site-packages (2.11.1) "requests" package, even though it says to install

mstikharev commented 5 years ago

May be you are execute script not from virtual environment or you local env doesn't have requests? Check it first :)

dogukanaras commented 5 years ago

I tried it in the local directory, but nothing changed. I was working both ways before. But it doesn't work anymore

Traceback (most recent call last):
  File "unfollow_non_followers.py", line 13, in <module>
    from instabot import Bot
  File "/Users/dogukanaras/Desktop/instabot/examples/../instabot/__init__.py", line 1, in <module>
    from .api import API
  File "/Users/dogukanaras/Desktop/instabot/examples/../instabot/api/__init__.py", line 1, in <module>
    from .api import API
  File "/Users/dogukanaras/Desktop/instabot/examples/../instabot/api/api.py", line 15, in <module>
    import requests
ImportError: No module named requests
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.