[reportlab-users] RE: Python 2.3.2 compatibility
Henning von Bargen
reportlab-users@reportlab.com
Tue, 7 Oct 2003 13:30:24 +0200
Andy Robinson wrote:
> I am trying to catch up on this thread and understand
> exactly what the problems are with 2.3. Are people saying that
> (a) on Mac OS X we generate corrupt files?
> (b) on Windows we generate corrupt files?
> (c) if you have not run setup.py, and try to run it
> locally in the download directory, it appears to work
> but creates corrupt files?
> ...or something else?
Here's what I did:
Downloaded current.zip from www.reportlab.org
BTW is this really 1.18 or is some nightly build?
The name suggests a nightly build,
but since there is no other link on the download page
to explicitly download version 1.18 I guess
that current.zip is version 1.18.
Downloaded python-2.3.2.exe from www.python.org
Downloaded M. Hammonds win32all-157.exe from http://starship.python.net
Downloaded PIL-1.1.4-win32-py2.3.exe from www.pythonware.com
Installed Python to c:\python23
Installed win32all
Installed PIL
Unzipped current.zip to d:\
I also tried download the win32-dlls via the link on www.reportlab.org,
but the retrieved archive file was empty,
so I downloaded from ftp.reportlab.com,
but I didn't install them because I just don't know where to install.
I put a file reportlab.pth into c:\python23\lib\site-packages
with the content
d:\.
I tested PIL and availability of reportlab:
C:\>python
Python 2.3.2 (#49, Oct 2 2003, 20:02:00) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import PIL
>>> import _imaging
>>> import reportlab
>>> reportlab
<module 'reportlab' from 'd:\reportlab\__init__.pyc'>
>>>
I tested ReportLab:
D:\reportlab\test>python test_pdfgen_general.py
.
------------------------------------------------
Ran 1 tests in 1.282s
OK
Opening the generated file test_pdfgen_general.py
results in Acrobat Error popup:
Error opening document. The root object is missing or invalid.
Opening in GhostView results in error message
GSview 4.4 2003-04-04
AFPL Ghostscript 8.00 (2002-11-21)
Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Scanning PDF file
Error: /typecheck in --dict--
Operand stack:
PageNumbers 8.0
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1
3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval--
--nostringval-- --nostringval-- 2 %stopped_push --nostringval--
--nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1055/1123(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)--
--dict:100/127(ro)(G)-- --dict:230/230(ro)(G)-- --dict:17/24(L)--
Current allocation mode is local
Note:
I also tried running setup.py as Rasjid Wilcox suggested.
I called it without arguments, but it seems it needs some arguments
and I didn't know which ones.
BTW I replaced the deprecated keyword licence with license in setup.py.
Any help is welcome.
Henning