AppEngine no module 'pwd' using requests lib

51 views
Skip to first unread message

Dima Gimburg

unread,
Mar 29, 2017, 8:49:12 AM3/29/17
to Google App Engine
We are getting on one of our application this 500 error 'no module pwd' when importing requests library.
here are the logs:

Traceback (most recent call last):
  File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
    handler, path, err = LoadObject(self._handler)
  File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 96, in LoadObject
    __import__(cumulative_path)
  File "/base/data/home/apps/s~wisestamp-gapps-oath2-qa/2-42-3.400175773712341679/handler/domain.py", line 12, in <module>
    from lib.helper import TemplateHelper, RequestHandler
  File "/base/data/home/apps/s~wisestamp-gapps-oath2-qa/2-42-3.400175773712341679/lib/helper.py", line 13, in <module>
    from lib.security import Security
  File "/base/data/home/apps/s~wisestamp-gapps-oath2-qa/2-42-3.400175773712341679/lib/security.py", line 5, in <module>
    from lib.wisestamp_email_settings_client import WiseStampEmailSettingsClient
  File "/base/data/home/apps/s~wisestamp-gapps-oath2-qa/2-42-3.400175773712341679/lib/wisestamp_email_settings_client.py", line 6, in <module>
    import requests
  File "/base/data/home/apps/s~wisestamp-gapps-oath2-qa/2-42-3.400175773712341679/lib/requests/__init__.py", line 58, in <module>
    from . import utils
  File "/base/data/home/apps/s~wisestamp-gapps-oath2-qa/2-42-3.400175773712341679/lib/requests/utils.py", line 19, in <module>
    from netrc import netrc, NetrcParseError
  File "/base/data/home/runtimes/python27_experiment/python27_dist/lib/python2.7/netrc.py", line 7, in <module>
    import pwd
ImportError: No module named pwd

in other project ive noticed it is not happening and there is no python27_experiment dir path in the logs, are we on some kind of experiment instances?

Nick (Cloud Platform Support)

unread,
Mar 29, 2017, 12:27:47 PM3/29/17
to Google App Engine
Hey Dima,

We appreciate your concern to get this issue looked at. There's currently already a thread in these forums on the same topic, where you're active, and it's best to avoid opening multiple threads on the same topic. Rest assured that although this forum is not meant for technical support requests, we are nonetheless looking actively into the possible causes for this issue. Please refer to the other open thread, and be sure to open issues like this in the Public Issue Tracker in future.

Regards,

Nick
Cloud Platform Community Support
Reply all
Reply to author
Forward
0 new messages