GAE environment differences

Chris Angelico rosuav at gmail.com
Fri May 1 09:22:02 EDT 2015


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



More information about the Python-list mailing list