Bluehost 主机部署Django网站时MemoryError at / No exception supplied问题及解决方案

来源:互联网 发布:中国网络诗歌网新歌词 编辑:程序博客网 时间:2024/06/09 21:07

问题描述:

MemoryError at /

No exception supplied
Request Method:GETRequest URL:http://www.kumo.kumoplus.co/Django Version:1.5.4Exception Type:MemoryErrorException Location:/home2/kumoplus/python/lib/python2.7/ctypes/__init__.py in _reset_cache, line 279Python Executable:/home2/kumoplus/python/bin/pythonPython Version:2.7.3Python Path:
['/home2/kumoplus/public_html', '/home2/kumoplus/public_html/kumo', '/home2/kumoplus/python/lib/python2.7/site-packages/setuptools-3.4.5dev-py2.7.egg', '/home2/kumoplus/python/lib/python2.7/site-packages/django_dajax-0.9.2-py2.7.egg', '/home2/kumoplus/python/lib/python2.7/site-packages/django_dajaxice-0.6-py2.7.egg', '/home2/kumoplus/python/lib/python2.7/site-packages/easy_thumbnails-2.0.1-py2.7.egg', '/home2/kumoplus/python/lib/python2.7/site-packages/Pillow-2.4.0-py2.7-linux-x86_64.egg', '/home2/kumoplus/python/lib/python2.7/site-packages/django_guardian-1.2.0-py2.7.egg', '/home2/kumoplus/python/lib/python2.7/site-packages/six-1.6.1-py2.7.egg', '/home2/kumoplus/python/lib/python2.7/site-packages/MySQL_python-1.2.5-py2.7-linux-x86_64.egg', '/home2/kumoplus/python/lib/python2.7/site-packages/html2text-2014.4.5-py2.7.egg', '/home2/kumoplus/python/lib/python2.7/site-packages/flup-1.0.3.dev_20110405-py2.7.egg', '/home2/kumoplus/python/lib/python2.7/site-packages/jieba-0.32-py2.7.egg', '/home2/kumoplus/python/lib/python2.7/site-packages/simplejson-3.4.1-py2.7-linux-x86_64.egg', '/home2/kumoplus/python/lib/python2.7/site-packages/django_userena-1.3.0-py2.7.egg', '/home2/kumoplus/python/lib/python27.zip', '/home2/kumoplus/python/lib/python2.7', '/home2/kumoplus/python/lib/python2.7/plat-linux2', '/home2/kumoplus/python/lib/python2.7/lib-tk', '/home2/kumoplus/python/lib/python2.7/lib-old', '/home2/kumoplus/python/lib/python2.7/lib-dynload', '/home2/kumoplus/python/lib/python2.7/site-packages']
Server time:星期三, 7 五月 2014 23:07:26 +0800

Traceback Switch to copy-and-paste view

  • /home2/kumoplus/python/lib/python2.7/site-packages/django/core/handlers/base.py inget_response
    1.                     response = middleware_method(request)
      ...
    Local vars
  • /home2/kumoplus/public_html/kumo/userena/middleware.py inprocess_request
    1.         lang_cookie = request.session.get(settings.LANGUAGE_COOKIE_NAME)
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py inget
    1.         return self._session.get(key, default)
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py in_get_session
    1.                 self._session_cache = self.load()
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/contrib/sessions/backends/db.py inload
    1.                 expire_date__gt=timezone.now()
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/db/models/manager.py inget
    1.         return self.get_query_set().get(*args, **kwargs)
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/db/models/query.py inget
    1.         clone = self.filter(*args, **kwargs)
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/db/models/query.py infilter
    1.         return self._filter_or_exclude(False, *args, **kwargs)
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/db/models/query.py in_filter_or_exclude
    1.             clone.query.add_q(Q(*args, **kwargs))
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/db/models/sql/query.py inadd_q
    1.                             can_reuse=used_aliases, force_having=force_having)
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/db/models/sql/query.py inadd_filter
    1.                     process_extras=process_extras)
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/db/models/sql/query.py insetup_joins
    1.                 field, model, direct, m2m = opts.get_field_by_name(name)
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/db/models/options.py inget_field_by_name
    1.                 cache = self.init_name_map()
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/db/models/options.py ininit_name_map
    1.         for f, model in self.get_all_related_m2m_objects_with_model():
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/db/models/options.py inget_all_related_m2m_objects_with_model
    1.             cache = self._fill_related_many_to_many_cache()
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/db/models/options.py in_fill_related_many_to_many_cache
    1.         for klass in get_models(only_installed=False):
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/db/models/loading.py inget_models
    1.         self._populate()
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/db/models/loading.py in_populate
    1.                 self.load_app(app_name, True)
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/db/models/loading.py inload_app
    1.             models = import_module('.models', app_name)
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/django/utils/importlib.py inimport_module
    1.     __import__(name)
      ...
    Local vars
  • /home2/kumoplus/public_html/kumo/userena/models.py in<module>
    1. from easy_thumbnails.fields import ThumbnailerImageField
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/easy_thumbnails-2.0.1-py2.7.egg/easy_thumbnails/fields.py in<module>
    1. from easy_thumbnails import files
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/easy_thumbnails-2.0.1-py2.7.egg/easy_thumbnails/files.py in<module>
    1. from easy_thumbnails import engine, exceptions, models, utils, signals, storage
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/site-packages/easy_thumbnails-2.0.1-py2.7.egg/easy_thumbnails/engine.py in<module>
    1.     from PIL import Image
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/lib-tk/FixTk.py in<module>
    1.     import ctypes
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/ctypes/__init__.py in<module>
    1. _reset_cache()
      ...
    Local vars
  • /home2/kumoplus/python/lib/python2.7/ctypes/__init__.py in_reset_cache
    1.     CFUNCTYPE(c_int)(lambda: None)


解决方案:

      注释掉python/lib/python2.7/ctypes/__init__.py文件中这一行即可:

   279. CFUNCTYPE(c_int)(lambda: None)

0 0
原创粉丝点击