Forums

No module named Twilio

I have a simple app where i send mail and sms to users, but on loading the web app, i get the import error no module named Twilio

this is the traceback ImportError at / No module named 'twilio' Request Method: GET Request URL: http://ola.pythonanywhere.com/ Django Version: 2.1.2 Exception Type: ImportError Exception Value:
No module named 'twilio' Exception Location: /home/Ola/ola.pythonanywhere.com/checkIn/views.py in <module>, line 11 Python Executable: /usr/local/bin/uwsgi Python Version: 3.5.6 Python Path:
['/home/Ola/ola.pythonanywhere.com', '/var/www', '.', '', '/var/www', '/home/Ola/.virtualenvs/ola.pythonanywhere.com/lib/python35.zip', '/home/Ola/.virtualenvs/ola.pythonanywhere.com/lib/python3.5', '/home/Ola/.virtualenvs/ola.pythonanywhere.com/lib/python3.5/plat-linux', '/home/Ola/.virtualenvs/ola.pythonanywhere.com/lib/python3.5/lib-dynload', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-linux', '/home/Ola/.virtualenvs/ola.pythonanywhere.com/lib/python3.5/site-packages'] Server time: Sun, 28 Oct 2018 15:58:02 +0100

I have pip installed it but on checking the virtaulenv files myself i couldn't find it. Is there something am doing wrong?

did you pip install it into the correct virtualenv?

Thanks i have been able to resolve it. It was the virtualenv indeed