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


Groups > comp.lang.python > #89750

Re: GAE environment differences

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed2.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.014
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'skip:e 50': 0.05; 'importerror:': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'encountered.': 0.16; 'filesystem,': 0.16; 'keyerror': 0.16; 'module?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'traceback.': 0.16; 'wrote:': 0.18; 'module': 0.19; 'normally': 0.19; 'import': 0.22; 'issue.': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; "i've": 0.25; 'skip:" 30': 0.26; 'post': 0.26; 'skip:" 20': 0.27; 'skip:_ 20': 0.27; 'header:X-Complaints-To:1': 0.27; 'chris': 0.29; 'apparently': 0.31; 'file': 0.32; 'stuff': 0.32; 'fri,': 0.33; 'guess': 0.33; 'skip:_ 10': 0.34; 'but': 0.35; 'there': 0.35; 'thanks': 0.36; "i'll": 0.36; 'skip:o 20': 0.38; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'expect': 0.39; 'pdf': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'received:org': 0.40; 'users': 0.40; 'even': 0.60; 'simple': 0.61; 'complete': 0.62; 'header:Reply-To:1': 0.67; 'said:': 0.68; 'reply-to:no real name:2**0': 0.71; 'reply-to:addr:gmail.com': 0.80; '2015': 0.84; 'missing.': 0.84; 'worth,': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Kev Dwyer <kevin.p.dwyer@gmail.com>
Subject Re: GAE environment differences
Date Sat, 02 May 2015 10:14 +0100
References <55435578.50003@chamonix.reportlab.co.uk> <CAPTjJmqUeu7AXm6MAiBPwabFv+GRgFOV7B1BUpeLLO7GhiXRvw@mail.gmail.com> <554379D3.1080202@chamonix.reportlab.co.uk>
Reply-To kevin.p.dwyer@gmail.com
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Gmane-NNTP-Posting-Host cpc5-hari13-2-0-cust222.20-2.cable.virginm.net
Mail-Copies-To kevin.p.dwyer@gmail.com
User-Agent KNode/4.14.6
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.2.1430558069.12865.python-list@python.org> (permalink)
Lines 60
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1430558069 news.xs4all.nl 2914 [2001:888:2000:d::a6]:59257
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:89750

Show key headers only | View raw


Robin Becker wrote:

> On 01/05/2015 13:15, Chris Angelico wrote:
>> On Fri, May 1, 2015 at 8:29 PM, Robin Becker <robin@reportlab.com> 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 traceback:
>>
>> ```
>> #!python
>>
>> ImportError: No module named pwd
>> (12 additional frame(s) were not displayed)
>> ...
>>   File
>>   "/base/data/home/apps/e~yt-maggi-2015-
eu/testing.383971015313322618/vendor/xhtml2pdf/context.py",
>>   line 5, in <module>
>>     from reportlab.lib.styles import ParagraphStyle
>>   File
>>   "/base/data/home/apps/e~yt-maggi-2015-
eu/testing.383971015313322618/vendor/reportlab/lib/styles.py",
>>   line 28, in <module>
>>     from reportlab.rl_config import canvas_basefontname as _baseFontName,
>>     baseUnderlineProportion as _baseUnderlineProportion
>>   File
>>   "/base/data/home/apps/e~yt-maggi-2015-
eu/testing.383971015313322618/vendor/reportlab/rl_config.py",
>>   line 131, in <mod
>>  ule>
>>     _startUp()
>>   File
>>   "/base/data/home/apps/e~yt-maggi-2015-
eu/testing.383971015313322618/vendor/reportlab/rl_config.py",
>>   line 99, in _startUp
>>     d = os.path.expanduser(d)   #appengine fails with KeyError
>>   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.

For what it's worth, we use reportlab on GAE to generate a simple pdf
and the above error is the only one that I've encountered.  For us it was 
enough to trap the ImportError.

Thanks for all your work on reportlab,

Kev

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


Thread

Re: GAE environment differences Kev Dwyer <kevin.p.dwyer@gmail.com> - 2015-05-02 10:14 +0100

csiph-web