[PEAK] Installing PEAK
Richard Jennings
zaphod.beeblebrox at freesurf.ch
Fri May 18 07:43:27 EDT 2007
On Tuesday 15 May 2007 16:38, you wrote:
> At 10:37 AM 5/15/2007 +0200, Richard Jennings wrote:
> >Installing RuleDispatch results in the .egg being placed in site-packages,
> >then it processes dependencies and fails as follows:
> >
> >--- snipped traceback ---
> >File
> >"/usr/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources
> >.py",
> >
> >line 1113, in _get
> > return self.loader.get_data(path)
> >zipimport.ZipImportError: bad local file header
> >in
> >/usr/lib/python2.4/site-packages/RuleDispatch-0.5a0.dev-py2.4-linux-i686.e
> >gg
>
> Delete that file, and re-install RuleDispatch.
I now have PEAK installed. For any other newcomer to PEAK, this what I had to
do to get this far:
Go to http://svn dot eby-sarna dot com/ and download and unpack the following
into a local directory: PEAK.tar.gz, RuleDipatch.tar.gz &
PyProtocols.tar.gz, noting the release numbers.
Edit the setup.py files for RuleDispatch and PyProtocols so that the declared
version includes the correct release tag i.e: for RuleDispatch
version="0.5a0" becomes version="0.5a0-r2306"
Now 'su' and run 'python setup.py install ' in the PyProtocols, RuleDispatch
and PEAK directories, in that order. Alternatively use easy_install in the
parent directory. That worked for me.
However, when I ran 'peak test', it failed as follows:
--- snipped traceback ---
File "build/bdist.linux-i686/egg/peak/util/_doctest.py", line 2422, in
DocFileSuite
File "build/bdist.linux-i686/egg/peak/util/_doctest.py", line 2354, in
DocFileTest
IOError: [Errno 20] Not a
directory: '/usr/lib/python2.4/site-packages/PEAK-0.5a4.dev_r2287-py2.4-linux-i686.egg/peak/binding/attributes.txt'
--- end ---
its not lying - attributes.txt is not a directory! But Mr Eby, why is 'peak
test' failing?
More information about the PEAK
mailing list