Hi!
I've installed modules using this requirements.txt in a virtualenv:
flask requests fbmq tinydb
I've checked the libraires:
(myvirtualenv) 19:14 ~/simple_bot $ pip3.5 install -r requirements.txt Requirement already satisfied: flask in /home/gonzalo35/.virtualenvs/myvirtualenv/lib/python3.5/site-packages (from -r requirements.txt (line 1)) Requirement already satisfied: requests in /home/gonzalo35/.virtualenvs/myvirtualenv/lib/python3.5/site-packages (from -r requirements.txt (line 2)) Requirement already satisfied: fbmq in /home/gonzalo35/.virtualenvs/myvirtualenv/lib/python3.5/site-packages (from -r requirements.txt (line 3)) Requirement already satisfied: tinydb in /home/gonzalo35/.virtualenvs/myvirtualenv/lib/python3.5/site-packages (from -r requirements.txt (line 4)) Requirement already satisfied: itsdangerous>=0.21 in /home/gonzalo35/.virtualenvs/myvirtualenv/lib/python3.5/site-packages (from flask->-r requirements.txt (line 1)) Requirement already satisfied: Jinja2>=2.4 in /home/gonzalo35/.virtualenvs/myvirtualenv/lib/python3.5/site-packages (from flask->-r requirements.txt (line 1)) Requirement already satisfied: Werkzeug>=0.7 in /home/gonzalo35/.virtualenvs/myvirtualenv/lib/python3.5/site-packages (from flask->-r requirements.txt (line 1)) Requirement already satisfied: click>=2.0 in /home/gonzalo35/.virtualenvs/myvirtualenv/lib/python3.5/site-packages (from flask->-r requirements.txt (line 1)) Requirement already satisfied: MarkupSafe>=0.23 in /home/gonzalo35/.virtualenvs/myvirtualenv/lib/python3.5/site-packages (from Jinja2>=2.4->flask->-r requirements.txt (line 1))
fbmq module is appearing in the list as expected.
There is a init.py file in the project directory.
But I've got the following error when I run the WSGI application on PythonAnywhere:
2017-03-14 19:09:48,497 :Error running WSGI application 2017-03-14 19:09:48,501 :ImportError: No module named 'fbmq' 2017-03-14 19:09:48,501 : File "/var/www/gonzalo35_pythonanywhere_com_wsgi.py", line 58, in <module> 2017-03-14 19:09:48,501 : from server import app as application 2017-03-14 19:09:48,501 : 2017-03-14 19:09:48,501 : File "/home/gonzalo35/simple_bot/server.py", line 8, in <module> 2017-03-14 19:09:48,501 : import simple_bot.messenger 2017-03-14 19:09:48,501 : 2017-03-14 19:09:48,501 : File "/home/gonzalo35/simple_bot/messenger.py", line 8, in <module> 2017-03-14 19:09:48,501 : from fbmq import Attachment, Template, QuickReply, NotificationType
I can't figure out the problem.
FYI My program is running well on my local computer.
Could you help me?
Regards,
Gaƫl