[Django]ImportError:cannot import name debug问题

news/2024/5/19 23:31:37

[Django]ImportError:cannot import name debug问题

Version

Date

Creator

Description

1.0.0 .1

2007-1-10

郑昀

草稿

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

n         Python

n         Django

n         Apache

 

浏览着架设在Apache 2.2.3 (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 3.0.3 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

1.0.0 .1

2007-1-10

郑昀

草稿

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

n         Python

n         Django

n         Apache

 

浏览着架设在Apache 2.2.3 (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 3.0.3 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

1.0.0 .1

2007-1-10

郑昀

草稿

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

n         Python

n         Django

n         Apache

 

浏览着架设在Apache 2.2.3 (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 3.0.3 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

1.0.0 .1

2007-1-10

郑昀

草稿

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

n         Python

n         Django

n         Apache

 

浏览着架设在Apache 2.2.3 (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 3.0.3 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

1.0.0 .1

2007-1-10

郑昀

草稿

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

n         Python

n         Django

n         Apache

 

浏览着架设在Apache 2.2.3 (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 3.0.3 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

1.0.0 .1

2007-1-10

郑昀

草稿

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

n         Python

n         Django

n         Apache

 

浏览着架设在Apache 2.2.3 (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 3.0.3 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

1.0.0 .1

2007-1-10

郑昀

草稿

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

n         Python

n         Django

n         Apache

 

浏览着架设在Apache 2.2.3 (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 3.0.3 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就好了。但有一就有二,下次它还会来的。

 



http://www.niftyadmin.cn/n/3648296.html

相关文章

如何在DigitalOcean空间之上设置私有Docker注册表并将其与DigitalOcean Kubernetes结合使用

介绍 (Introduction) A Docker registry is a storage and content delivery system for named Docker images, which are the industry standard for containerized applications. A private Docker registry allows you to securely share your images within your team or o…

浅谈Redis数据库的键值设计

丰富的数据结构使得redis的设计非常的有趣。不像关系型数据库那样,DEV和DBA需要深度沟通,review每行sql语句,也不像memcached那样,不需要DBA的参与。redis的DBA需要熟悉数据结构,并能了解使用场景。 Advertisement  …

朋友们!来帮我在CSDN 2006年度最有价值博客MVB评选活动投个票

朋友们,帮我在“CSDN 2006年度最有价值博客MVB评选活动”投个票:http://www.csdn.net/community2006/vote/index.rails?id1#mvb45title我的情况是:姓 名郑昀个人简介:曾致力于移动无线应用领域5年,目前研究中文微内容…

mysql.blob_如何在Ubuntu 18.04上使用MySQL BLOB数据类型通过PHP存储图像

mysql.blobThe author selected Girls Who Code to receive a donation as part of the Write for DOnations program. 作者选择了《编码的女孩》作为Write for DOnations计划的一部分来接受捐赠。 介绍 (Introduction) A Binary Large Object (BLOB) is a MySQL data type th…

飞舟语录[持续更新]

飞舟语录n EASY MORNING是一档严肃的咨讯节目1. 只要脸皮有够厚,何苦喝酒买罪受,只要心中有日月,天天都会有明日。2. 吃完饭,到湖边溜遛弯,用自己的剩饭喂喂水怪~~3. 嘉宾难得一次来…

如何在Ubuntu 18.04上使用BGPalerter监视BGP公告和路由

The author selected the COVID-19 Relief Fund to receive a donation as part of the Write for DOnations program. 作者选择了COVID-19救济基金来接受捐赠,这是Write for DOnations计划的一部分。 介绍 (Introduction) BGP (Border Gateway Protocol) is one o…

如何在Ubuntu 20.04上安装Linux,Apache,MySQL,PHP(LAMP)堆栈[快速入门]

介绍 (Introduction) In this quickstart guide, we’ll install a LAMP stack on an Ubuntu 20.04 server. 在本快速入门指南中,我们将在Ubuntu 20.04服务器上安装LAMP堆栈。 For a more detailed version of this tutorial, with more explanations of each step…

2006年度郑昀“旁观者”Blog点击TopTen

2006年度郑昀“旁观者”Blog点击TopTen文章标题页面访问聚合访问我的中文简历2006.10版本 13589 41[J2ME]手机看交通监视器实时录像 实现说明7888 103应届生还是研究生?与大学生的MSN谈话二 7088 434 [J2ME]手机流媒体之实作[附源码][与RTSP/MMS协议无关] 6531 1606…