python-firebase icon indicating copy to clipboard operation
python-firebase copied to clipboard

ImportError: No module named pwd

Open puruzio opened this issue 9 years ago • 0 comments

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

puruzio avatar Sep 05 '15 07:09 puruzio