当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : google app engine不兼容python2.7?
帖子发表于 : 2011-01-19 21:10 
头像

注册: 2008-07-24 11:33
帖子: 4793
地址: 郑州
送出感谢: 4
接收感谢: 92
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: ~まだ見ぬ誰かの笑顔のために~


页首
 用户资料  
 
2 楼 
 文章标题 : Re: google app engine不兼容python2.7?
帖子发表于 : 2011-01-20 15:04 

注册: 2008-12-16 14:31
帖子: 26
送出感谢: 0 次
接收感谢: 0 次
。。。看起来是库弄乱掉了。。。再装个2.5也不是很难。。。楼主勇敢的上吧。。。


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译