[17:48] <fannagoganna> Hi, getting an error when I am using gunicorn to start a flask webapp, it looks like my user environment is not getting properly imported, Traceback (most recent call last):
[17:48] <fannagoganna>   File "/usr/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 473, in spawn_worker
[17:48] <fannagoganna>     worker.init_process()
[17:48] <fannagoganna>   File "/usr/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 100, in init_process
[17:48] <fannagoganna>     self.wsgi = self.app.wsgi()
[17:48] <fannagoganna>   File "/usr/lib/python2.7/dist-packages/gunicorn/app/base.py", line 115, in wsgi
[17:48] <fannagoganna>     self.callable = self.load()
[17:48] <fannagoganna>   File "/usr/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 33, in load
[17:48] <fannagoganna>     return util.import_app(self.app_uri)
[17:48] <fannagoganna>   File "/usr/lib/python2.7/dist-packages/gunicorn/util.py", line 362, in import_app
[17:48] <fannagoganna>     __import__(module)
[17:48] <fannagoganna>   File "/mnt/software/sources/tanim_flask_app/app/__init__.py", line 54, in <module>
[17:48] <fannagoganna>     from app import models, views, views_google, views_mendeley
[17:48] <fannagoganna>   File "/mnt/software/sources/tanim_flask_app/app/views_mendeley.py", line 9, in <module>
[17:49] <fannagoganna> Sorry for the spam, let me try again
[17:49] <fannagoganna> Traceback (most recent call last):
[17:49] <fannagoganna>   File "/usr/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 473, in spawn_worker
[17:49] <fannagoganna>     worker.init_process()
[17:49] <fannagoganna>   File "/usr/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 100, in init_process
[17:49] <fannagoganna>     self.wsgi = self.app.wsgi()
[17:49] <fannagoganna>   File "/usr/lib/python2.7/dist-packages/gunicorn/app/base.py", line 115, in wsgi
[17:49] <fannagoganna>     self.callable = self.load()
[17:49] <fannagoganna>   File "/usr/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 33, in load
[17:49] <fannagoganna>     return util.import_app(self.app_uri)
[17:49] <fannagoganna>   File "/usr/lib/python2.7/dist-packages/gunicorn/util.py", line 362, in import_app
[17:49] <fannagoganna>     __import__(module)
[17:49] <fannagoganna>   File "/mnt/software/sources/tanim_flask_app/app/__init__.py", line 54, in <module>
[17:49] <fannagoganna>     from app import models, views, views_google, views_mendeley
[17:49] <fannagoganna> Hi, getting an error when I am using gunicorn to start a flask webapp, it looks like my user environment is not getting properly imported, Traceback (most recent call last):
[17:50] <fannagoganna> here is the link, http://pastebin.ca/3177390
[17:55] <fannagoganna> I found a workaround on my Linux Mint 17.2 box, by running "sudo apt-get install python-requests-oauthlib," although I don't know why gunicorn launched with upstart could not see my user installed python packages.