Skip to content
This repository was archived by the owner on Aug 26, 2019. It is now read-only.

ImportError: No module named pwd #11

Open
puruzio opened this issue Sep 5, 2015 · 0 comments
Open

ImportError: No module named pwd #11

puruzio opened this issue Sep 5, 2015 · 0 comments

Comments

@puruzio
Copy link

puruzio commented Sep 5, 2015

The following error occurs when running "from firebase import Firebase". Based on the stackoverflow responses, it seems to be due to the fact that "the newer version of the SDK doesn't allow you to import the pwd module in its sandbox mode."
http://stackoverflow.com/questions/18819604/importerror-no-module-named-pwd-but-it-exists

Is there a work around for this issue?

====See below for error message =====
ERROR 2015-09-05 07:40:52,328 wsgi.py:263]
Traceback (most recent call last):
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject
obj = import(path[0])
File "/Users/puruzio/_dev/PycharmProjects/stickyreminder/main.py", line 31, in
from project import project_handler, mail_handlers
File "/Users/puruzio/_dev/PycharmProjects/stickyreminder/project/project_handler.py", line 31, in
from firebase import Firebase
File "/Users/puruzio/_dev/PycharmProjects/stickyreminder/external/firebase/init.py", line 1, in
import requests
File "/Users/puruzio/_dev/PycharmProjects/stickyreminder/external/requests/init.py", line 58, in
from . import utils
File "/Users/puruzio/_dev/PycharmProjects/stickyreminder/external/requests/utils.py", line 19, in
from netrc import netrc, NetrcParseError
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/netrc.py", line 7, in
import pwd
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/python/sandbox.py", line 950, in load_module
raise ImportError('No module named %s' % fullname)
ImportError: No module named pwd

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant