Python论坛  - 讨论区

标题:[python-chinese] mod_python cache problem

2006年02月08日 星期三 21:26

鳄鱼 crocodile.liu at 163.com
Wed Feb 8 21:26:53 HKT 2006

Mod_python error: "PythonHandler mod_python.publisher"

Traceback (most recent call last):

  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 287, in HandlerDispatch
    log=debug)

  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 461, in import_module
    module = imp.load_module(mname, f, p, d)

  File "/usr/lib/python2.3/site-packages/mod_python/publisher.py", line 50, in ?
    from cache import ModuleCache, NOT_INITIALIZED

ImportError: cannot import name ModuleCache

 
请问出现以上错误是怎么回事啊?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060208/9a872b63/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年02月09日 星期四 10:52

hoxide Ma hoxide at gmail.com
Thu Feb 9 10:52:59 HKT 2006

在同一个站点上运行多个mod_python应用会出现import的问题
在apache设置中加:
   PythonInterpPerDirective on
试试
在 06-2-8,鳄鱼<crocodile.liu at 163.com> 写道:
>
>
> Mod_python error: "PythonHandler mod_python.publisher"
>
> Traceback (most recent call last):
>
>   File
> "/usr/lib/python2.3/site-packages/mod_python/apache.py",
> line 287, in HandlerDispatch
>     log=debug)
>
>   File
> "/usr/lib/python2.3/site-packages/mod_python/apache.py",
> line 461, in import_module
>     module = imp.load_module(mname, f, p, d)
>
>   File
> "/usr/lib/python2.3/site-packages/mod_python/publisher.py",
> line 50, in ?
>     from cache import ModuleCache, NOT_INITIALIZED
>
> ImportError: cannot import name ModuleCache
>
>
>
>
> 请问出现以上错误是怎么回事啊?
>
>
>
>
>
>
>
>
>
>
>  你 知 道 2006 年 最 火 爆 的 电 子 邮 箱 吗 ?
>  多 达 1.1 亿 中 国 人 选 择 网 易 2000 兆 免 费 邮 箱 , 抢 注 再 得 280 兆 超 大 网 盘
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request at lists.python.cn
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
>


--
==========================================================

A student of Math in Soochow University in China.
Intrested in Math, Python, Octave, Lisp, Maxima, Prolog and .NET/MONO.

Blog: http://blog.sina.com.cn/blog/1142604745
Wiki: http://wiki.woodpecker.org.cn/moin/Hoxide

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号