AttributeError: 'module' object has no attribute 'Popen' error

I am using Python 2.7 app and google appengine to build my app. When trying to run the application using devappserver.py, the following error appears.

 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)

      

This issue did not occur until I changed the PYTHONPATH value to google\google_appengine\lib\webob-1.1.1;

How can I fix this?

+3


source to share


2 answers


System calls are not allowed by the Google App Engine sandbox, which includes Popen (). https://cloud.google.com/appengine/docs/python/#Python_The_sandbox



+3


source


The solution found in the original poster was to re-install its Python interpreter and do that, resolve any misconfiguration error.



+2


source







All Articles