[英]AttributeError: 'module' object has no attribute 'check_output' | popen & PIPE
[英]AttributeError: 'module' object has no attribute 'Popen' error
我正在使用Python 2.7和Google Appengine创建应用程序。 当我尝试使用devappserver.py运行应用程序时,出现以下错误。
from google.appengine.api import mail_stub
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\mail_stub.py", line 50, in <module>
class MailServiceStub(apiproxy_stub.APIProxyStub):
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\mail_stub.py", line 223, in MailServiceStub
popen=subprocess.Popen,
AttributeError: 'module' object has no attribute 'Popen'
2015-04-16 16:35:43 (Process exited with code 1)
直到我将PYTHONPATH更改为google\\google_appengine\\lib\\webob-1.1.1;
为止,这个问题才发生google\\google_appengine\\lib\\webob-1.1.1;
我怎样才能解决这个问题?
Google App Engine沙箱-包括Popen()不允许进行系统调用。 https://cloud.google.com/appengine/docs/python/#Python_The_sandbox
原始发布者找到的解决方案是重新安装他的Python解释器,然后这样做,解决任何配置错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.