Re: GAE environment differences

2015-05-05 Thread Robin Becker
On 02/05/2015 10:14, Kev Dwyer wrote: Robin Becker wrote: ``` 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 patchin

Re: GAE environment differences

2015-05-02 Thread Kev Dwyer
Robin Becker wrote: > On 01/05/2015 13:15, Chris Angelico wrote: >> On Fri, May 1, 2015 at 8:29 PM, Robin Becker wrote: >> >> >> Best thing to do is to ask the user to post the complete traceback. >> You might need to use "import os.path" but normally I would expect >> that not to be an issue. >

Re: GAE environment differences

2015-05-01 Thread Peter Otten
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

Re: GAE environment differences

2015-05-01 Thread Chris Angelico
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 > meani

Re: GAE environment differences

2015-05-01 Thread Robin Becker
On 01/05/2015 13:15, Chris Angelico wrote: On Fri, May 1, 2015 at 8:29 PM, Robin Becker wrote: Best thing to do is to ask the user to post the complete traceback. You might need to use "import os.path" but normally I would expect that not to be an issue. jamesbynd said: here's a tracebac

Re: GAE environment differences

2015-05-01 Thread Chris Angelico
On Fri, May 1, 2015 at 8:29 PM, Robin Becker wrote: > A user reports getting KeyError/ImportError when executing GAE dev/live code > looking like > > > import os > ... > fn = os.path.expanduser(os.path.join('~','.reportlab_settings')) > .. > > This works fine in cpython; so I assume that t

GAE environment differences

2015-05-01 Thread Robin Becker
A user reports getting KeyError/ImportError when executing GAE dev/live code looking like import os ... fn = os.path.expanduser(os.path.join('~','.reportlab_settings')) .. This works fine in cpython; so I assume that the GAE environment must be doing module resolution differently. I