google app engine不兼容python2.7?

Python/PHP/Perl 开发与设计
回复
头像
cuihao
帖子: 4793
注册时间: 2008-07-24 11:33
来自: 郑州
送出感谢: 1 次
接收感谢: 89 次
联系:

google app engine不兼容python2.7?

#1

帖子 cuihao » 2011-01-19 21:10

archlinux本地测试GAE时,打开http://localhost:8080/就会出现一大堆python错误信息,而windows就一切正常。想了想就只有版本有所区别了,win下是26,linux下是27。
但是按说27应该向下兼容26额。

=。= 另外,这个错误信息也很匪夷所思诶:
File "/usr/lib/python2.7/io.py", line 60, in <module>
import _io
ImportError: No module named _io
难道是说自带的io库有问题?

以下是全部错误信息:
--> --> -->

Traceback (most recent call last):
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 3245, in _HandleRequest
self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 3186, in _Dispatch
base_env_dict=env_dict)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 531, in Dispatch
base_env_dict=base_env_dict)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 2410, in Dispatch
self._module_dict)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 2320, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 2216, in ExecuteOrImportScript
exec module_code in script_module.__dict__
File "/media/56C48DB0C48D9343/cuihaopy_blog/blog.py", line 19, in <module>
import filter as myfilter
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1945, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1847, in FindAndLoadModule
description)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1798, in LoadModuleRestricted
description)
File "/media/56C48DB0C48D9343/cuihaopy_blog/filter.py", line 4, in <module>
from model import *
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1945, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1847, in FindAndLoadModule
description)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1798, in LoadModuleRestricted
description)
File "/media/56C48DB0C48D9343/cuihaopy_blog/model.py", line 12, in <module>
import zipfile,re,pickle,uuid
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1945, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1847, in FindAndLoadModule
description)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1798, in LoadModuleRestricted
description)
File "/usr/lib/python2.7/zipfile.py", line 6, in <module>
import io
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1945, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1847, in FindAndLoadModule
description)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/home/cuihao/google_appengine/google/appengine/tools/dev_appserver.py", line 1798, in LoadModuleRestricted
description)
File "/usr/lib/python2.7/io.py", line 60, in <module>
import _io
ImportError: No module named _io
求人不如求它仨: 天蓝的Wiki 屎黄的Wiki 绿
Site: CUIHAO.TK    Twitter: @cuihaoleo
Machine: Athlon64 X2 5200+ / 2x2GB DDR2-800 / GeForce GTS 450
AD: ~まだ見ぬ誰かの笑顔のために~
Kabie
帖子: 26
注册时间: 2008-12-16 14:31
送出感谢: 0
接收感谢: 0

Re: google app engine不兼容python2.7?

#2

帖子 Kabie » 2011-01-20 15:04

。。。看起来是库弄乱掉了。。。再装个2.5也不是很难。。。楼主勇敢的上吧。。。
回复

回到 “Python/Php/Perl”