On Sun, Feb 5, 2012 at 9:10 AM, Rama <[email protected]> wrote: > Ok, we've found the problem but don't understand the reason. > > It works if we start uwsgi from the project package like this: > > (venv)rama@maindev:/srv/vodo-net/vodo_net$ uwsgi --ini /etc/uwsgi.ini > > Do you know why this could be? > It would be good to fix or document this somehow. > Your package probably is not in the import path when you are running from outside the source directory. You would need to use one of the ways of adding it to the path. PYTHONPATH env variable is probably the easiest way that does not interfere with other installed things. If you are using completely separate virtualenv's for each project you could also do python setup.py develop
> > We've spent long hours trying to fix it. > > Thanks! > Rama > > On 5 feb, 08:30, Rama <[email protected]> wrote: > > Hey Christoph, thanks a lot for your quick response! > > > > On 5 feb, 06:38, Christoph Zwerschke <[email protected]> wrote: > > > > > Am 05.02.2012 06:00, schrieb Rama: > > > > > > but I was about to deploy from staging to production until I faced > > > > some genshi templates paths issues > > > > > Do you have an __init__.py in your template directory? > > > > Yes, which is empty. > > > > > Is uWSGI running under a user that has access to this directory? > > > > Yes, and I even tried as root. > > > > > > After setting genshi.search_path like this: > > > > genshi.search_path = '/srv/staging/vodo-net/vodo_net/templates/' > > > > I get 'TemplateNotFound: Template "vodo_net.templates.index" not > > > > found' > > > > > Is /srv/staging correct in production? Anyway, normally you should not > > > need to set genshi.search_path. > > > > Oops, I might have mixed something there, but even without /staging/ > > in middle > > same thing happens. > > > > I could offer you access to my virtual machine where I'm preparing > > everything for deployment > > if you would like to have a look directly. Maybe it'll make things > > easier. > > > > Send me your public key in that case and I'll reply a priv with the IP > > address and such details. > > > > Otherwise, let me know what else I could look at, please. > > > > Thanks again, > > -- Rama > > > > > > > > > > > > > > > > > -- Christoph > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/turbogears?hl=en. > > -- Christopher Lambacher [email protected] -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

