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


Groups > comp.lang.python > #89719

GAE environment differences

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'differently.': 0.09; 'os.path': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'skip:o 50': 0.09; 'assume': 0.14; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'module': 0.19; 'import': 0.22; 'header:User-Agent:1': 0.23; 'fine': 0.24; 'environment': 0.24; 'header:X-Complaints-To:1': 0.27; 'resolution': 0.29; "doesn't": 0.30; 'code': 0.31; 'getting': 0.31; 'executing': 0.36; 'doing': 0.36; 'reports': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'received:109': 0.72
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Robin Becker <robin@reportlab.com>
Subject GAE environment differences
Date Fri, 01 May 2015 11:29:12 +0100
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 109.174.168.73
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.7.1430476161.3347.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1430476161 news.xs4all.nl 2877 [2001:888:2000:d::a6]:53346
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 2716
X-Received-Body-CRC 1795666955
Xref csiph.com comp.lang.python:89719

Show key headers only | View raw


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?
-- 
Robin Becker

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


Thread

GAE environment differences Robin Becker <robin@reportlab.com> - 2015-05-01 11:29 +0100

csiph-web