RuntimeError: maximum recursion depth exceeded after upgrading

走远了吗. 提交于 2019-12-11 07:54:57

问题


I've upgraded Django from 1.4.5 to 1.5.2 and now my website doesn't work. I get this error:

 RuntimeError: maximum recursion depth exceeded

I use virtualenv but for some reason in logs there is path to default python installation:

[Mon Sep 02 11:00:03 2013] [error] [client XXX.XXX.XXX]   File "/usr/local/lib/python2.7/functools.py", line 56, in <lambda>

Maybe it's a problem with WSGI configuration. Here is the config for it:

<VirtualHost XXX.XXX.XXX.XXX:81 >
        AddDefaultCharset utf-8
        ServerName mywebsite.com
        CustomLog /var/www/httpd-logs/mywebsite.com.access.log combined
        DocumentRoot /var/www/empirik/data/www/mywebsite.com
        ErrorLog /var/www/httpd-logs/mywebsite.com.error.log
        ServerAdmin my@mail.com
        ServerAlias www.mywebsite.com
        SuexecUserGroup empirik empirik

        WSGIProcessGroup mywebsite.com
        WSGIScriptAlias / /var/www/empirik/data/www/mywebsite.com/katalog/wsgi.py
        WSGIDaemonProcess mywebsite.com \
                python-path=/home/envs/katalog/lib/python2.7/site-packages \
                python-home=/home/envs/katalog
        Alias /static/ /var/www/empirik/data/www/mywebsite.com/katalog/static/

        <Directory /var/www/empirik/data/www/mywebsite.com/katalog>
                Order deny,allow
                Allow from All
        </Directory>

        <Directory /var/www/empirik/data/www/mywebsite.com/katalog/static>
                Order deny,allow
                Allow from all
        </Directory>

</VirtualHost>

UPDATE: Here is full log: http://pastebin.com/wtfq6Rs3


回答1:


Check what version of python you are running. I just had a similar problem running python 2.7.3 with Django. After updating to python 2.7.5 it ran successfully.



来源:https://stackoverflow.com/questions/18566790/runtimeerror-maximum-recursion-depth-exceeded-after-upgrading

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!