=== jan_ is now known as jtheuer [17:48] 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] File "/usr/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 473, in spawn_worker [17:48] worker.init_process() [17:48] File "/usr/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 100, in init_process [17:48] self.wsgi = self.app.wsgi() [17:48] File "/usr/lib/python2.7/dist-packages/gunicorn/app/base.py", line 115, in wsgi [17:48] self.callable = self.load() [17:48] File "/usr/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 33, in load [17:48] return util.import_app(self.app_uri) [17:48] File "/usr/lib/python2.7/dist-packages/gunicorn/util.py", line 362, in import_app [17:48] __import__(module) [17:48] File "/mnt/software/sources/tanim_flask_app/app/__init__.py", line 54, in [17:48] from app import models, views, views_google, views_mendeley [17:48] File "/mnt/software/sources/tanim_flask_app/app/views_mendeley.py", line 9, in [17:49] Sorry for the spam, let me try again [17:49] Traceback (most recent call last): [17:49] File "/usr/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 473, in spawn_worker [17:49] worker.init_process() [17:49] File "/usr/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 100, in init_process [17:49] self.wsgi = self.app.wsgi() [17:49] File "/usr/lib/python2.7/dist-packages/gunicorn/app/base.py", line 115, in wsgi [17:49] self.callable = self.load() [17:49] File "/usr/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 33, in load [17:49] return util.import_app(self.app_uri) [17:49] File "/usr/lib/python2.7/dist-packages/gunicorn/util.py", line 362, in import_app [17:49] __import__(module) [17:49] File "/mnt/software/sources/tanim_flask_app/app/__init__.py", line 54, in [17:49] from app import models, views, views_google, views_mendeley [17:49] 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] here is the link, http://pastebin.ca/3177390 [17:55] 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.