question-mark
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.

ImportError: No module named req

See original GitHub issue

When trying to run Jasper on my Raspberry Pi B+ I get the following error

Traceback (most recent call last):
  File "./jasper.py", line 12, in <module>
    from client import tts
  File "/home/pi/jasper/client/tts.py", line 41, in <module>
    import diagnose
 File "/home/pi/jasper/client/diagnose.py", line 9, in <module>
    import pip.req
ImportError: No module named req

I’m tried reinstalling pip but that doesn’t fix it. Any help?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

7reactions
ZenyoXoscommented, Apr 23, 2018

change your pip version : sudo python -m pip install --upgrade pip==9.0.3

1reaction
netzulocommented, Jul 10, 2018

just… workaround 😃

Do this to get working like a charm!

  1. create a directory pip/
  2. add an empty file pip/init.py
  3. add a file pip/req.py
  4. put the code above into pip/req.py:
# package pip.req.py
def parse_requirements(filename):
    """ load requirements from a pip requirements file """
    lineiter = (line.strip() for line in open(filename))
    return [line for line in lineiter if line and not line.startswith("#")]
Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named pip.req - python - Stack Overflow
I am installing tweepy, but I am running into an error about pip. req. I have pip installed, but for some reason pip....
Read more >
ImportError: No module named 'pip.req' · Issue #282 - GitHub
Flask-Ask is using pip.req module stuff which means you need pip <10.0.0 to install the packages.
Read more >
No module named req | bench init unable to install version ...
I am running bench version 4.1.0 - installed with frappe user & production mode on Ubuntu 14.04 LTS
Read more >
From pip.req...ImportError: No module named req
I get this error for most/all sub-directories on ./update_nrp update all , not only for CLE.
Read more >
How to pip install the requests module to solve import errors?
No module named requests – even after i pip install ... Issue: you are still getting the import error even after executing the...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found