Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '"""': 0.07; 'result,': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; '2.7': 0.14; 'fcntl': 0.16; 'filesystem,': 0.16; 'grp': 0.16; 'module?': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'sqlite': 0.16; 'usable': 0.16; 'wrote:': 0.18; 'module': 0.19; 'not,': 0.20; '>>>': 0.22; 'select': 0.22; 'import': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'skip:" 20': 0.27; 'header:X-Complaints-To:1': 0.27; 'chris': 0.29; 'apparently': 0.31; 'ctypes': 0.31; 'file': 0.32; 'stuff': 0.32; 'fri,': 0.33; 'guess': 0.33; 'could': 0.34; 'but': 0.35; 'there': 0.35; 'useful': 0.36; "i'll": 0.36; 'work?': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'users': 0.40; 'according': 0.40; 'even': 0.60; 'making': 0.63; 'more': 0.64; 'fire': 0.65; '2015': 0.84; 'missing.': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Peter Otten <__peter__@web.de> Subject: Re: GAE environment differences Date: Fri, 01 May 2015 15:31 +0200 Organization: None References: <55435578.50003@chamonix.reportlab.co.uk> <554379D3.1080202@chamonix.reportlab.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: p57bd85d4.dip0.t-ipconnect.de User-Agent: KNode/4.13.3 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 41 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1430487075 news.xs4all.nl 2838 [2001:888:2000:d::a6]:37126 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:89734 Chris Angelico wrote: > On Fri, May 1, 2015 at 11:04 PM, Robin Becker wrote: >>> File "python2.7/posixpath.py", line 268, in expanduser >>> import pwd >>> ``` >> >> the user suggests that even though claims are made that you can use a >> filesystem, but stuff like pwd is missing. Apparently the user module has >> no meaning, but there is a users module? I guess I'll need to keep >> patching reportlab when GAE users find these glitches. > > According to my Python installation, the pwd module is built-in. But > you could bypass its usage by making sure $HOME is set before calling > expanduser. > > What happens if you fire up Python and just type "import pwd"? Does > that work? If not, does it give any more useful error message? I found (guess how) https://cloud.google.com/appengine/kb/libraries which states: """ As a result, these are the C modules that are not usable with the Python 2.7 runtime: ctypes sqlite ssl/_ssl fcntl spwd pwd grp syslog select _socket """