2005年02月24日 星期四 18:44
你肯定没有mptest,使用publisher吧,具体参考啄木鸟社区的modpython中文版。 我的配置:AddHandler mod_python .py PythonHandler mod_python.publisher PythonDebug On #PythonPath "sys.path+['E:/Project/GridGate/Source/sms']" #Options MultiViews On Thu, 24 Feb 2005 14:31:52 +0800, superxgz <superxgz at 163.com> wrote: > python-chinese,您好! > > 大家好,想请教一个问题,我安装了python2.3,apache_2.0.53,mod_python-3.1.3,都是在win2000Server下用安装包安装的,配置文件也是按"mod_python中文文档"中所述,python的路径是这样设的: > > path: > C:\Python23\ > > PYTHONHOME: > C:\Python23 > > PYTHONPATH > .;C:\Python23\;C:\Python23\Lib;C:\Python23\Lib\site-packages\mod_python\;C:\Python23\Lib\site-packages\ > > 报错语句如下: > ********************************************* > Mod_python error: "PythonHandler mptest" > > Traceback (most recent call last): > > File "C:\Python23\lib\site-packages\mod_python\apache.py", line 287, in HandlerDispatch > log=debug) > > File "C:\Python23\lib\site-packages\mod_python\apache.py", line 454, in import_module > f, p, d = imp.find_module(parts[i], path) > > ImportError: No module named mptest > ********************************************* > > 盼解答,十分感谢 > > 致 > 礼! > > superxgz > superxgz at 163.com > 2005-02-24 > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > > > -- My Blog >> http://leejd.cndev.org My QQ >> 9847243
2005年02月24日 星期四 19:09
我用的也是publisher~~ 把你apache的配置贴出来看看吧,可能是没把程序的路径加到sys.path里面 --- Gerald Lee <leejd80 at gmail.com> 的正文: > 你肯定没有mptest,使用publisher吧,具体参考啄木鸟社区的modpython中文版。 > 我的配置: >> AddHandler mod_python .py > PythonHandler mod_python.publisher > PythonDebug On > #PythonPath > "sys.path+['E:/Project/GridGate/Source/sms']" > #Options MultiViews > > > > On Thu, 24 Feb 2005 14:31:52 +0800, superxgz > <superxgz at 163.com> wrote: > > python-chinese,您好! > > > > > 大家好,想请教一个问题,我安装了python2.3,apache_2.0.53,mod_python-3.1.3,都是在win2000Server下用安装包安装的,配置文件也是按"mod_python中文文档"中所述,python的路径是这样设的: > > > > path: > > C:\Python23\ > > > > PYTHONHOME: > > C:\Python23 > > > > PYTHONPATH > > > .;C:\Python23\;C:\Python23\Lib;C:\Python23\Lib\site-packages\mod_python\;C:\Python23\Lib\site-packages\ > > > > 报错语句如下: > > ********************************************* > > Mod_python error: "PythonHandler mptest" > > > > Traceback (most recent call last): > > > > File > "C:\Python23\lib\site-packages\mod_python\apache.py", > line 287, in HandlerDispatch > > log=debug) > > > > File > "C:\Python23\lib\site-packages\mod_python\apache.py", > line 454, in import_module > > f, p, d = imp.find_module(parts[i], path) > > > > ImportError: No module named mptest > > ********************************************* > > > > 盼解答,十分感谢 > > > > 致 > > 礼! > > > > superxgz > > superxgz at 163.com > > 2005-02-24 > > > > _______________________________________________ > > python-chinese list > > python-chinese at lists.python.cn > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > -- > My Blog >> http://leejd.cndev.org > My QQ >> 9847243 > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > _________________________________________________________ Do You Yahoo!? 150万曲MP3疯狂搜,带您闯入音乐殿堂 http://music.yisou.com/ 美女明星应有尽有,搜遍美图、艳图和酷图 http://image.yisou.com 1G就是1000兆,雅虎电邮自助扩容! http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/
Zeuux © 2025
京ICP备05028076号