On 2012-02-23 21:30, Tony Tang wrote: > Everything works fine on development server. However, the following > error was showing when I moved the project to the production server > running httpd and wsgi. > > TemplateSyntaxError at / Caught LookupError while rendering: 'show' > not found Request Method: GET Request URL: http://10.14.5.18/ > Django Version: 1.3 Exception Type: TemplateSyntaxError > Exception Value: Caught LookupError while rendering: 'show' not > found Exception Location: > /usr/local/python2.7.2/lib/python2.7/site-packages/rpy2/robjects/robject.py > in RObjectMixin, line 22 Python Executable: /usr/bin/python Python > Version: 2.7.2 Python Path: > ['/usr/local/python2.7.2/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg', > '/usr/local/python2.7.2/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg', > > '/usr/local/python2.7.2/lib/python2.7/site-packages/django_pagination-1.0.5-py2.7.egg', > '/usr/local/python2.7.2/lib/python27.zip', > '/usr/local/python2.7.2/lib/python2.7', > '/usr/local/python2.7.2/lib/python2.7/plat-linux2', > '/usr/local/python2.7.2/lib/python2.7/lib-tk', > '/usr/local/python2.7.2/lib/python2.7/lib-old', > '/usr/local/python2.7.2/lib/python2.7/lib-dynload', > '/usr/local/python2.7.2/lib/python2.7/site-packages', > '/usr/local/python2.7.2/lib/python2.7/site-packages/PIL', > '/srv/www/foodborn.project/'] Server time: Thu, 23 Feb 2012 > 13:12:48 -0600 > > Any idea what's going on?
Hi, It might be: - a memory corruption issue. Make sure you are running the latest release of rpy2 (you do not specify what you are running) - concurrent access to R (R is really not cool with that). Rpy2 is trying to prevent it with a system of locks (since the errors one is getting are otherwise quite cryptic and hard to associate with that), but there might be other ways. Check if there are differences between dev and prod regarding multithreading. - ending the embedded R and restarting it later. R is again not cool with it. I guess rpy2 should just have a way to throw an error if tried (I thought I did add it, may be I didn't). L. > Thanks. > Tony > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > rpy-list mailing list > rpy-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rpy-list ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list