我試圖在共享主機(Bluehost)上運行Django。我正在使用需要PIL的功能。 PIL從交互式shell導入和工作,但在我的fcgi過程中,它從PIL導入映像中的MemoryError崩潰。任何幫助,爲什麼它可能會失敗fcgi將不勝感激。Python ctypes從PIL庫fcgi過程中的MemoryError
__Environment Info__:
Python2.7
Local installs of libjpg, zlib, freetype, and lcms
Virtualenv:
Django 1.3, PIL, flup, etc.
__Stack Trace__:
File ".../feincms_thumbnail.py", line 3, in <module>
from PIL import Image
File ".../PIL/Image.py", line 45, in <module>
\__import__("FixTk")
File ".../python2.7/lib-tk/FixTk.py", line 15, in <module>
import ctypes
File ".../python2.7/ctypes/__init__.py", line 549, in <module>
CFUNCTYPE(c_int)(lambda: None)
__.fcgi__:
<!-- language: python -->
# setup paths
# set DJANGO_SETTINGS_MODULE in os.environ
from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781578 – osa 2015-05-07 04:00:43