`
阿尔萨斯
  • 浏览: 4151896 次
社区版块
存档分类
最新评论

[Django]ImportError:cannot import name debug问题

 
阅读更多
<iframe align="center" marginwidth="0" marginheight="0" src="http://www.zealware.com/csdnblog336280.html" frameborder="0" width="336" scrolling="no" height="280"></iframe>

[Django]ImportError:cannot import name debug问题

Version

Date

Creator

Description

<chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899"><span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt">1.0.0</span></chsdate>.1

<chsdate w:st="on" isrocdate="False" islunardate="False" day="10" month="1" year="2007"><span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt">2007-1-10</span></chsdate>

郑昀

草稿

继续阅读之前,我们假设您熟悉以下知识:

n Python

n Django

n Apache

浏览着架设在Apache<chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">2.2.3</chsdate>(mod_python-3.2.10)上的Django应用,突然出现这样的错误,而且刷新也没用:

页面输出

Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

File "C:/Python24/Lib/site-packages/mod_python/apache.py", line 299, in HandlerDispatch

File "c:/python24/lib/site-packages/Django-0.95-py2.4.egg/django/core/handlers/modpython.py", line 163, in handler

File "c:/python24/lib/site-packages/Django-0.95-py2.4.egg/django/core/handlers/modpython.py", line 136, in __call__

File "C:/Python24/lib/site-packages/django-0.95-py2.4.egg/django/core/handlers/base.py", line 102, in get_response

File "C:/Python24/lib/site-packages/django-0.95-py2.4.egg/django/core/handlers/base.py", line 130, in get_technical_error_response

ImportError: cannot import name debug

四处寻觅解决办法,在

http://www.modpython.org/FAQ/faqw.py?req=all#2.12

也有人报告了类似问题:

类似报告

2.12. [error] SOLUTION PythonHandler mod_python.psp: ImportError: No module named psp

SOLVED

I had the same problem in <chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">3.0.3</chsdate> on UNIX and it appears to be fixed by updating to 3.1.3

------ mrez adds:

I'm having the same problem too:

Debug text: Mod_python error: "PythonHandler mod_python.psp"

Traceback (most recent call last):

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/apache.py", line 326, in HandlerDispatch

log=debug)

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/apache.py", line 496, in import_module

module = imp.load_module(mname, f, p, d)

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/psp.py", line 59, in ?

import apache, Session, util, _psp

ImportError: DLL load failed: The specified module could not be found.

在这个页面的2.2小节,提及了解决方案:

增加的配置行

If you see a Python exception of the form:

ImportError: No module named _apache

it means that you have mod_python version 3.1. If you see the Python exception:

ImportError: No module named psp

it means that you only have version 2.7. Finally, if you instead see the Python exception:

ImportError: No module named mod_python.psp

it means that mod_python isn't installed after all, or at least not for the version of Python you are trying to use.

看来和我遇到的还不一样。

重启Apache server就好了。但有一就有二,下次它还会来的。




[Django]ImportError:cannot import name debug问题

Version

Date

Creator

Description

<chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899"><span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt">1.0.0</span></chsdate>.1

<chsdate w:st="on" isrocdate="False" islunardate="False" day="10" month="1" year="2007"><span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt">2007-1-10</span></chsdate>

郑昀

草稿

继续阅读之前,我们假设您熟悉以下知识:

n Python

n Django

n Apache

浏览着架设在Apache<chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">2.2.3</chsdate>(mod_python-3.2.10)上的Django应用,突然出现这样的错误,而且刷新也没用:

页面输出

Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

File "C:/Python24/Lib/site-packages/mod_python/apache.py", line 299, in HandlerDispatch

File "c:/python24/lib/site-packages/Django-0.95-py2.4.egg/django/core/handlers/modpython.py", line 163, in handler

File "c:/python24/lib/site-packages/Django-0.95-py2.4.egg/django/core/handlers/modpython.py", line 136, in __call__

File "C:/Python24/lib/site-packages/django-0.95-py2.4.egg/django/core/handlers/base.py", line 102, in get_response

File "C:/Python24/lib/site-packages/django-0.95-py2.4.egg/django/core/handlers/base.py", line 130, in get_technical_error_response

ImportError: cannot import name debug

四处寻觅解决办法,在

http://www.modpython.org/FAQ/faqw.py?req=all#2.12

也有人报告了类似问题:

类似报告

2.12. [error] SOLUTION PythonHandler mod_python.psp: ImportError: No module named psp

SOLVED

I had the same problem in <chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">3.0.3</chsdate> on UNIX and it appears to be fixed by updating to 3.1.3

------ mrez adds:

I'm having the same problem too:

Debug text: Mod_python error: "PythonHandler mod_python.psp"

Traceback (most recent call last):

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/apache.py", line 326, in HandlerDispatch

log=debug)

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/apache.py", line 496, in import_module

module = imp.load_module(mname, f, p, d)

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/psp.py", line 59, in ?

import apache, Session, util, _psp

ImportError: DLL load failed: The specified module could not be found.

在这个页面的2.2小节,提及了解决方案:

增加的配置行

If you see a Python exception of the form:

ImportError: No module named _apache

it means that you have mod_python version 3.1. If you see the Python exception:

ImportError: No module named psp

it means that you only have version 2.7. Finally, if you instead see the Python exception:

ImportError: No module named mod_python.psp

it means that mod_python isn't installed after all, or at least not for the version of Python you are trying to use.

看来和我遇到的还不一样。

重启Apache server就好了。但有一就有二,下次它还会来的。




[Django]ImportError:cannot import name debug问题

Version

Date

Creator

Description

<chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899"><span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt">1.0.0</span></chsdate>.1

<chsdate w:st="on" isrocdate="False" islunardate="False" day="10" month="1" year="2007"><span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt">2007-1-10</span></chsdate>

郑昀

草稿

继续阅读之前,我们假设您熟悉以下知识:

n Python

n Django

n Apache

浏览着架设在Apache<chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">2.2.3</chsdate>(mod_python-3.2.10)上的Django应用,突然出现这样的错误,而且刷新也没用:

页面输出

Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

File "C:/Python24/Lib/site-packages/mod_python/apache.py", line 299, in HandlerDispatch

File "c:/python24/lib/site-packages/Django-0.95-py2.4.egg/django/core/handlers/modpython.py", line 163, in handler

File "c:/python24/lib/site-packages/Django-0.95-py2.4.egg/django/core/handlers/modpython.py", line 136, in __call__

File "C:/Python24/lib/site-packages/django-0.95-py2.4.egg/django/core/handlers/base.py", line 102, in get_response

File "C:/Python24/lib/site-packages/django-0.95-py2.4.egg/django/core/handlers/base.py", line 130, in get_technical_error_response

ImportError: cannot import name debug

四处寻觅解决办法,在

http://www.modpython.org/FAQ/faqw.py?req=all#2.12

也有人报告了类似问题:

类似报告

2.12. [error] SOLUTION PythonHandler mod_python.psp: ImportError: No module named psp

SOLVED

I had the same problem in <chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">3.0.3</chsdate> on UNIX and it appears to be fixed by updating to 3.1.3

------ mrez adds:

I'm having the same problem too:

Debug text: Mod_python error: "PythonHandler mod_python.psp"

Traceback (most recent call last):

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/apache.py", line 326, in HandlerDispatch

log=debug)

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/apache.py", line 496, in import_module

module = imp.load_module(mname, f, p, d)

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/psp.py", line 59, in ?

import apache, Session, util, _psp

ImportError: DLL load failed: The specified module could not be found.

在这个页面的2.2小节,提及了解决方案:

增加的配置行

If you see a Python exception of the form:

ImportError: No module named _apache

it means that you have mod_python version 3.1. If you see the Python exception:

ImportError: No module named psp

it means that you only have version 2.7. Finally, if you instead see the Python exception:

ImportError: No module named mod_python.psp

it means that mod_python isn't installed after all, or at least not for the version of Python you are trying to use.

看来和我遇到的还不一样。

重启Apache server就好了。但有一就有二,下次它还会来的。




[Django]ImportError:cannot import name debug问题

Version

Date

Creator

Description

<chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899"><span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt">1.0.0</span></chsdate>.1

<chsdate w:st="on" isrocdate="False" islunardate="False" day="10" month="1" year="2007"><span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt">2007-1-10</span></chsdate>

郑昀

草稿

继续阅读之前,我们假设您熟悉以下知识:

n Python

n Django

n Apache

浏览着架设在Apache<chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">2.2.3</chsdate>(mod_python-3.2.10)上的Django应用,突然出现这样的错误,而且刷新也没用:

页面输出

Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

File "C:/Python24/Lib/site-packages/mod_python/apache.py", line 299, in HandlerDispatch

File "c:/python24/lib/site-packages/Django-0.95-py2.4.egg/django/core/handlers/modpython.py", line 163, in handler

File "c:/python24/lib/site-packages/Django-0.95-py2.4.egg/django/core/handlers/modpython.py", line 136, in __call__

File "C:/Python24/lib/site-packages/django-0.95-py2.4.egg/django/core/handlers/base.py", line 102, in get_response

File "C:/Python24/lib/site-packages/django-0.95-py2.4.egg/django/core/handlers/base.py", line 130, in get_technical_error_response

ImportError: cannot import name debug

四处寻觅解决办法,在

http://www.modpython.org/FAQ/faqw.py?req=all#2.12

也有人报告了类似问题:

类似报告

2.12. [error] SOLUTION PythonHandler mod_python.psp: ImportError: No module named psp

SOLVED

I had the same problem in <chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">3.0.3</chsdate> on UNIX and it appears to be fixed by updating to 3.1.3

------ mrez adds:

I'm having the same problem too:

Debug text: Mod_python error: "PythonHandler mod_python.psp"

Traceback (most recent call last):

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/apache.py", line 326, in HandlerDispatch

log=debug)

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/apache.py", line 496, in import_module

module = imp.load_module(mname, f, p, d)

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/psp.py", line 59, in ?

import apache, Session, util, _psp

ImportError: DLL load failed: The specified module could not be found.

在这个页面的2.2小节,提及了解决方案:

增加的配置行

If you see a Python exception of the form:

ImportError: No module named _apache

it means that you have mod_python version 3.1. If you see the Python exception:

ImportError: No module named psp

it means that you only have version 2.7. Finally, if you instead see the Python exception:

ImportError: No module named mod_python.psp

it means that mod_python isn't installed after all, or at least not for the version of Python you are trying to use.

看来和我遇到的还不一样。

重启Apache server就好了。但有一就有二,下次它还会来的。




[Django]ImportError:cannot import name debug问题

Version

Date

Creator

Description

<chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899"><span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt">1.0.0</span></chsdate>.1

<chsdate w:st="on" isrocdate="False" islunardate="False" day="10" month="1" year="2007"><span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt">2007-1-10</span></chsdate>

郑昀

草稿

继续阅读之前,我们假设您熟悉以下知识:

n Python

n Django

n Apache

浏览着架设在Apache<chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">2.2.3</chsdate>(mod_python-3.2.10)上的Django应用,突然出现这样的错误,而且刷新也没用:

页面输出

Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

File "C:/Python24/Lib/site-packages/mod_python/apache.py", line 299, in HandlerDispatch

File "c:/python24/lib/site-packages/Django-0.95-py2.4.egg/django/core/handlers/modpython.py", line 163, in handler

File "c:/python24/lib/site-packages/Django-0.95-py2.4.egg/django/core/handlers/modpython.py", line 136, in __call__

File "C:/Python24/lib/site-packages/django-0.95-py2.4.egg/django/core/handlers/base.py", line 102, in get_response

File "C:/Python24/lib/site-packages/django-0.95-py2.4.egg/django/core/handlers/base.py", line 130, in get_technical_error_response

ImportError: cannot import name debug

四处寻觅解决办法,在

http://www.modpython.org/FAQ/faqw.py?req=all#2.12

也有人报告了类似问题:

类似报告

2.12. [error] SOLUTION PythonHandler mod_python.psp: ImportError: No module named psp

SOLVED

I had the same problem in <chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">3.0.3</chsdate> on UNIX and it appears to be fixed by updating to 3.1.3

------ mrez adds:

I'm having the same problem too:

Debug text: Mod_python error: "PythonHandler mod_python.psp"

Traceback (most recent call last):

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/apache.py", line 326, in HandlerDispatch

log=debug)

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/apache.py", line 496, in import_module

module = imp.load_module(mname, f, p, d)

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/psp.py", line 59, in ?

import apache, Session, util, _psp

ImportError: DLL load failed: The specified module could not be found.

在这个页面的2.2小节,提及了解决方案:

增加的配置行

If you see a Python exception of the form:

ImportError: No module named _apache

it means that you have mod_python version 3.1. If you see the Python exception:

ImportError: No module named psp

it means that you only have version 2.7. Finally, if you instead see the Python exception:

ImportError: No module named mod_python.psp

it means that mod_python isn't installed after all, or at least not for the version of Python you are trying to use.

看来和我遇到的还不一样。

重启Apache server就好了。但有一就有二,下次它还会来的。




[Django]ImportError:cannot import name debug问题

Version

Date

Creator

Description

<chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899"><span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt">1.0.0</span></chsdate>.1

<chsdate w:st="on" isrocdate="False" islunardate="False" day="10" month="1" year="2007"><span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt">2007-1-10</span></chsdate>

郑昀

草稿

继续阅读之前,我们假设您熟悉以下知识:

n Python

n Django

n Apache

浏览着架设在Apache<chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">2.2.3</chsdate>(mod_python-3.2.10)上的Django应用,突然出现这样的错误,而且刷新也没用:

页面输出

Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

File "C:/Python24/Lib/site-packages/mod_python/apache.py", line 299, in HandlerDispatch

File "c:/python24/lib/site-packages/Django-0.95-py2.4.egg/django/core/handlers/modpython.py", line 163, in handler

File "c:/python24/lib/site-packages/Django-0.95-py2.4.egg/django/core/handlers/modpython.py", line 136, in __call__

File "C:/Python24/lib/site-packages/django-0.95-py2.4.egg/django/core/handlers/base.py", line 102, in get_response

File "C:/Python24/lib/site-packages/django-0.95-py2.4.egg/django/core/handlers/base.py", line 130, in get_technical_error_response

ImportError: cannot import name debug

四处寻觅解决办法,在

http://www.modpython.org/FAQ/faqw.py?req=all#2.12

也有人报告了类似问题:

类似报告

2.12. [error] SOLUTION PythonHandler mod_python.psp: ImportError: No module named psp

SOLVED

I had the same problem in <chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">3.0.3</chsdate> on UNIX and it appears to be fixed by updating to 3.1.3

------ mrez adds:

I'm having the same problem too:

Debug text: Mod_python error: "PythonHandler mod_python.psp"

Traceback (most recent call last):

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/apache.py", line 326, in HandlerDispatch

log=debug)

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/apache.py", line 496, in import_module

module = imp.load_module(mname, f, p, d)

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/psp.py", line 59, in ?

import apache, Session, util, _psp

ImportError: DLL load failed: The specified module could not be found.

在这个页面的2.2小节,提及了解决方案:

增加的配置行

If you see a Python exception of the form:

ImportError: No module named _apache

it means that you have mod_python version 3.1. If you see the Python exception:

ImportError: No module named psp

it means that you only have version 2.7. Finally, if you instead see the Python exception:

ImportError: No module named mod_python.psp

it means that mod_python isn't installed after all, or at least not for the version of Python you are trying to use.

看来和我遇到的还不一样。

重启Apache server就好了。但有一就有二,下次它还会来的。




[Django]ImportError:cannot import name debug问题

Version

Date

Creator

Description

<chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899"><span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt">1.0.0</span></chsdate>.1

<chsdate w:st="on" isrocdate="False" islunardate="False" day="10" month="1" year="2007"><span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 10.5pt">2007-1-10</span></chsdate>

郑昀

草稿

继续阅读之前,我们假设您熟悉以下知识:

n Python

n Django

n Apache

浏览着架设在Apache<chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">2.2.3</chsdate>(mod_python-3.2.10)上的Django应用,突然出现这样的错误,而且刷新也没用:

页面输出

Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

File "C:/Python24/Lib/site-packages/mod_python/apache.py", line 299, in HandlerDispatch

File "c:/python24/lib/site-packages/Django-0.95-py2.4.egg/django/core/handlers/modpython.py", line 163, in handler

File "c:/python24/lib/site-packages/Django-0.95-py2.4.egg/django/core/handlers/modpython.py", line 136, in __call__

File "C:/Python24/lib/site-packages/django-0.95-py2.4.egg/django/core/handlers/base.py", line 102, in get_response

File "C:/Python24/lib/site-packages/django-0.95-py2.4.egg/django/core/handlers/base.py", line 130, in get_technical_error_response

ImportError: cannot import name debug

四处寻觅解决办法,在

http://www.modpython.org/FAQ/faqw.py?req=all#2.12

也有人报告了类似问题:

类似报告

2.12. [error] SOLUTION PythonHandler mod_python.psp: ImportError: No module named psp

SOLVED

I had the same problem in <chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">3.0.3</chsdate> on UNIX and it appears to be fixed by updating to 3.1.3

------ mrez adds:

I'm having the same problem too:

Debug text: Mod_python error: "PythonHandler mod_python.psp"

Traceback (most recent call last):

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/apache.py", line 326, in HandlerDispatch

log=debug)

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/apache.py", line 496, in import_module

module = imp.load_module(mname, f, p, d)

File "C:/PROGRA~1/PYTHON~1.3/Lib/site-packages/mod_python/psp.py", line 59, in ?

import apache, Session, util, _psp

ImportError: DLL load failed: The specified module could not be found.

在这个页面的2.2小节,提及了解决方案:

增加的配置行

If you see a Python exception of the form:

ImportError: No module named _apache

it means that you have mod_python version 3.1. If you see the Python exception:

ImportError: No module named psp

it means that you only have version 2.7. Finally, if you instead see the Python exception:

ImportError: No module named mod_python.psp

it means that mod_python isn't installed after all, or at least not for the version of Python you are trying to use.

看来和我遇到的还不一样。

重启Apache server就好了。但有一就有二,下次它还会来的。




分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics