Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #89750 > unrolled thread
| Started by | Kev Dwyer <kevin.p.dwyer@gmail.com> |
|---|---|
| First post | 2015-05-02 10:14 +0100 |
| Last post | 2015-05-02 10:14 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: GAE environment differences Kev Dwyer <kevin.p.dwyer@gmail.com> - 2015-05-02 10:14 +0100
| From | Kev Dwyer <kevin.p.dwyer@gmail.com> |
|---|---|
| Date | 2015-05-02 10:14 +0100 |
| Subject | Re: GAE environment differences |
| Message-ID | <mailman.2.1430558069.12865.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web