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


Groups > comp.lang.python > #89726

Re: GAE environment differences

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

Show all headers | View raw


On Fri, May 1, 2015 at 8:29 PM, Robin Becker <robin@reportlab.com> 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 the GAE environment must be
> doing module resolution differently.
>
> Is that the case or is it that os.path or os.path.expanduser doesn't exist?

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.

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 22:15 +1000

csiph-web