Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bot does not start "No module named requests"

See original GitHub issue

Hi, I am running your bot for several months now.

I just updated (via git pull).

When I now try to start the bot I get the error message

pi@retropie:~/poloniexlendingbot $ python Traceback (most recent call last): File “”, line 17, in <module> from modules.ExchangeApiFactory import ExchangeApiFactory File “/home/pi/poloniexlendingbot/modules/”, line 6, in <module> from modules.Bitfinex import Bitfinex File “/home/pi/poloniexlendingbot/modules/”, line 6, in <module> import requests ImportError: No module named requests`

Can you help me?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

lexrmscommented, Sep 18, 2017

Ok i found the solution.

My system is instaling the versions for python3. Have to run pip directly from the python version to install the correct version to python2

sudo python -m pip install hypothesis sudo python -m pip install pandas sudo python -m pip install pytz sudo python -m pip install requests

Thank you @utdrmac for your help!

utdrmaccommented, Sep 18, 2017
# which pip
root@gasgiant:~# cat /usr/local/bin/pip

# -*- coding: utf-8 -*-
import re
import sys

from pip import main

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'requests' on ...
Program run great from PyCharm but displayed ModuleNotFoundError when runnig from command prompt. After running "pip install requests" problem has gone.
Read more >
[Fixed] ModuleNotFoundError: No module named 'requests'
The most likely reason is that Python doesn't provide requests in its standard library. You need to install it first!
Read more >
Importerror: no module named requests - Lets Fix step by step
Importerror: no module named requests error comes into the picture when the requests module not available or uninstalled.
Read more >
Running and it says no module named 'requests' #13
I follow the steps on hh and when I execute the and it said no module named 'requests' I run python
Read more >
No Module named 'requests' - Refinitiv Developer Community
I have run pip install requests in my environment and it is already satisfied. Any ideas on why it would work in one...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found