Just a brief update to this; it turns out gunicorn wasn't properly
installed, so I installed it to site-packages. From doing a bit of
research, I discovered that my project folder wasn't on my PYTHONPATH. My
project directory looks like this:
/mysite
mysite
__init__.py
settings.py
urls.py
wsgi.py
myapp
So I added the outer mysite folder (/mysite) to the path. For good measure,
I fired up the python shell and did "import mysite.wsgi" from my home
directory and it worked. Then I did a "git push heroku", but I'm still
getting the same H10 log error. For some reason it can't find mysite.wsgi,
despite the fact that it's on my PYTHONPATH. Any clue as to what's going on
here? thnx.
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/util.py",
line 354, in import_app
2014-02-03T06:37:16.972308+00:00 app[web.1]: File
"/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py",
line 62, in load
2014-02-03T06:37:16.972535+00:00 app[web.1]: ImportError: No module named
mysite.wsgi
2014-02-03T06:37:16.972709+00:00 app[web.1]: return self.load_wsgiapp()
On Sunday, February 2, 2014 1:41:18 AM UTC-5, Mika Schiller wrote:
>
> Hello,
>
> I tried deploying my app and everything seemed fine, but I got an
> "Application Error" message when I go to the site url. I checked my logs
> and noticed this here:
>
> "ImportError: No module named mysite.wsgi"
>
> I do have a wsgi module though. In fact, the app runs just fine locally.
> When I do a "foreman start", I get this message:
>
> 01:33:32 web.1 | started with pid 973
> 01:33:32 web.1 | /usr/local/foreman/bin/foreman-runner: line 41: exec:
> gunicorn: not found
> 01:33:32 web.1 | exited with code 127
> 01:33:32 system | sending SIGTERM to all processes
> SIGTERM received
>
> The first time I saw that I figured gunicorn wasn't installed, so I
> installed it, but I'm still getting the application error. I've googled
> around and can't seem to find a resolution to this. Please advise. You can
> get more details at:
>
>
> http://stackoverflow.com/questions/21422868/importerror-no-module-named-mysite-wsgi-message-when-deploying-heroku-app
>
>
>
>
>
>
>
>
>
>
>
--
--
You received this message because you are subscribed to the Google
Groups "Heroku" group.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en
---
You received this message because you are subscribed to the Google Groups
"Heroku Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.