在Debian 6,64bit上,psycopg2和libgcrypt.so会出现“无法分配内存”的错误
我有一个奇怪的生产特定错误与Python psycopg2 postgresql驱动程序和libgcrypt模块相关。 我正在运行Debian 6,32位主机我的应用程序与uWSGI和Nginx。 我决定切换到64位全新安装。 一切似乎都很好,除了我在uwsgi.log中获取每个请求的Python回溯之下: File "…/python2.7/site-packages/django/core/handlers/wsgi.py", line 272, in __call__ response = self.get_response(request) File "…/python2.7/site-packages/django/core/handlers/base.py", line 169, in get_response response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) File "…/python2.7/site-packages/django/core/handlers/base.py", line 203, in handle_uncaught_exception return debug.technical_500_response(request, *exc_info) File "…/python2.7/site-packages/django/views/debug.py", line 59, in technical_500_response html = reporter.get_traceback_html() and so on… 所以,我去了django / core / handlers / base.py(Django版本1.3.1)第166行,这似乎是最后一个exception处理程序,它包含了一切非常特殊的东西。 […]