[reportlab-users] Can't get rlextra to run under OS-X or Solaris
Tony McDonald
reportlab-users@reportlab.com
Fri, 17 Jan 2003 15:16:09 +0000
Hi,
We're trying to get rlextra from
http://www.reportlab.com/ftp/RLExtra-1-17.tgz
to work on two machines and it's not working out.
Machine 1) OS-X 10.2.3 TiPB (it's important to see if we can get it working
under OS-X, because we're going to buy an xserve soon)
% python
Python 2.2 (#1, 07/14/02, 23:25:09)
[GCC Apple cpp-precomp 6.14] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import rlextra
1058145792
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.2/site-packages/rlextra/__init__.py", line 37, in ?
_rl__INIT__PYZ()
File "/usr/lib/python2.2/site-packages/rlextra/__init__.py", line 19, in
_rl__INIT__PYZ
toc=marshal.load(lib)
EOFError: EOF read where object expected
The number shown is from here
(offset,)=struct.unpack('=i', lib.read(4))
print offset
The size of the file is a lot smaller than that number though...
-rw-r--r-- 1 root wheel 400684 Jan 3 13:03 rlextra.pyz
Here's another option, python2.3a0 under OS-X using the Framework python
Python 2.3a0 (#4, Sep 3 2002, 00:47:19)
[GCC 3.1 20020420 (prerelease)]
Type "copyright", "credits" or "license" for more information.
MacPython IDE 1.0.1
>>> import rlextra
Traceback (most recent call last):
File "<input>", line 1, in ?
File
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packag
es/rlextra/__init__.py", line 36, in ?
_rl__INIT__PYZ()
File
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packag
es/rlextra/__init__.py", line 14, in _rl__INIT__PYZ
raise RuntimeError, fn+' has version mismatch to dll'
RuntimeError:
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-package
s/rlextra/rlextra.pyz has version mismatch to dll
>>>
Hmmm....
Machine 2) Solaris 8,
---------------------
% python
Python 2.1.3 (#3, May 3 2002, 16:46:21)
[GCC 2.95.3 20010315 (release)] on sunos5
Type "copyright", "credits" or "license" for more information.
Welcome to Lazy Python. Type "help LazyPython" for help.
>>> import rlextra
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.1/site-packages/rlextra/__init__.py", line
36, in ?
_rl__INIT__PYZ()
File "/usr/local/lib/python2.1/site-packages/rlextra/__init__.py", line
14, in _rl__INIT__PYZ
raise RuntimeError, fn+' has version mismatch to dll'
RuntimeError: /usr/local/lib/python2.1/site-packages/rlextra/rlextra.pyz has
version mismatch to dll
% python2.2
Python 2.2.1 (#1, May 12 2002, 14:31:48)
[GCC 2.95.3 20010315 (release)] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
Welcome to Lazy Python. Type "help LazyPython" for help.
>>> import rlextra
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "rlextra/__init__.py", line 36, in ?
_rl__INIT__PYZ()
File "rlextra/__init__.py", line 18, in _rl__INIT__PYZ
toc=marshal.load(lib)
EOFError: EOF read where object expected
My question is:
Is the demo rlextra only 'setup' for Linux machines with Python2.2? Or am I
doing something daft?
We'd also want to generate the PDFs from databases held in a Zope system -
can anyone say whether they've done that with the commercial (rlextra) parts
of ReportLab (we do it quite well with the free version - and are very happy
with it!)
Also, can someone from reportlab please let me know what the cost of these
commercial options are (and if you do edu discounts!!)
Cheers,
Tone.
--
Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/
The Medical School, Newcastle University Tel: +44 191 243 6140
A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope