Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #89732

Re: GAE environment differences

References <55435578.50003@chamonix.reportlab.co.uk> <CAPTjJmqUeu7AXm6MAiBPwabFv+GRgFOV7B1BUpeLLO7GhiXRvw@mail.gmail.com> <554379D3.1080202@chamonix.reportlab.co.uk>
Date 2015-05-01 23:22 +1000
Subject Re: GAE environment differences
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.14.1430486532.3347.python-list@python.org> (permalink)

Show all headers | View raw


On Fri, May 1, 2015 at 11:04 PM, Robin Becker <robin@reportlab.com> 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?

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: GAE environment differences Chris Angelico <rosuav@gmail.com> - 2015-05-01 23:22 +1000

csiph-web