[PEAK] PEAK tests don't run after easy_install
Erik Rose
psucorp at grinchcentral.com
Thu Aug 11 12:17:41 EDT 2005
I tried to install the latest PEAK via easy_install, but "peak test"
yields a traceback:
First, I deleted all traces of PEAK and its dependencies from my
system. PYTHONPATH at this point is .:/Users/whatever/UNIXRoot/usr/
local/egenix/lib/python:/Users/whatever/UNIXRoot/usr/local/psycopg:/
Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4
Then, I installed Easy Install:
[12:09:01 ~/Desktop]% /Users/whatever/UNIXRoot/usr/local/python24/bin/
python /Users/whatever/Desktop/Downloads/ez_setup.py
Used Easy Install to install PEAK:
[12:10:27 ~/Desktop]% /Users/whatever/UNIXRoot/usr/local/python24/bin/
python /Users/whatever/UNIXRoot/usr/local/python24/bin/
easy_install.py -fhttp://peak.telecommunity.com/snapshots/ PEAK
And tried running "peak test":
[12:11:27 ~/Desktop]% /Users/whatever/UNIXRoot/usr/local/python24/bin/
peak test
Traceback (most recent call last): File "/Users/whatever/UNIXRoot/
usr/local/python24/bin/peak", line 4, in ?
pkg_resources.run_script('PEAK==0.5a4', 'peak')
File "/Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4/
site-packages/setuptools-0.5a13-py2.4.egg/pkg_resources.py", line
111, in run_script
require(dist_spec)[0].metadata.run_script(script_name, ns)
File "/Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4/
site-packages/setuptools-0.5a13-py2.4.egg/pkg_resources.py", line
633, in run_script
execfile(script_filename, namespace, namespace)
File "/Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4/
site-packages/PEAK-0.5a4-py2.4-darwin-8.2.0-Power_Macintosh.egg/EGG-
INFO/scripts/peak", line 4, in ?
commands.runMain( commands.Bootstrap )
File "/Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4/
site-packages/PEAK-0.5a4-py2.4-darwin-8.2.0-Power_Macintosh.egg/peak/
running/commands.py", line 70, in runMain
result = factory().run()
File "/Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4/
site-packages/PEAK-0.5a4-py2.4-darwin-8.2.0-Power_Macintosh.egg/peak/
running/commands.py", line 229, in run
return self._run() or 0
File "/Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4/
site-packages/PEAK-0.5a4-py2.4-darwin-8.2.0-Power_Macintosh.egg/peak/
running/commands.py", line 468, in _run
return self.invoke()
File "/Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4/
site-packages/PEAK-0.5a4-py2.4-darwin-8.2.0-Power_Macintosh.egg/peak/
running/commands.py", line 587, in invoke
defaultTest = self.defaultTest
File "/Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4/
unittest.py", line 757, in __init__
self.parseArgs(argv)
File "/Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4/
unittest.py", line 784, in parseArgs
self.createTests()
File "/Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4/
unittest.py", line 790, in createTests
self.module)
File "/Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4/
unittest.py", line 555, in loadTestsFromNames
suites = [self.loadTestsFromName(name, module) for name in names]
File "/Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4/
unittest.py", line 543, in loadTestsFromName
test = obj()
File "/Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4/
site-packages/PEAK-0.5a4-py2.4-darwin-8.2.0-Power_Macintosh.egg/peak/
tests/__init__.py", line 19, in test_suite
return importSuite(allSuites)
File "/Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4/
site-packages/PEAK-0.5a4-py2.4-darwin-8.2.0-Power_Macintosh.egg/peak/
util/imports.py", line 22, in importSuite
return TestSuite(
File "build/bdist.darwin-8.2.0-Power_Macintosh/egg/dispatch/tests/
__init__.py", line 7, in test_suite
File "build/bdist.darwin-8.2.0-Power_Macintosh/egg/dispatch/tests/
test_dispatch.py", line 1406, in test_suite
File "build/bdist.darwin-8.2.0-Power_Macintosh/egg/dispatch/tests/
test_dispatch.py", line 1401, in test_combiners
File "/Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4/
doctest.py", line 2422, in DocFileSuite
Converts text with examples to a Python script. Example input is
File "/Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4/
doctest.py", line 2354, in DocFileTest
"module_relative".
IOError: [Errno 20] Not a directory: '/Users/whatever/UNIXRoot/usr/
local/python24/lib/python2.4/site-packages/RuleDispatch-0.5a0-py2.4-
darwin-8.2.0-Power_Macintosh.egg/dispatch/combiners.txt'
Any ideas?
FWIW, /Users/whatever/UNIXRoot/usr/local/python24/lib/python2.4/site-
packages/RuleDispatch-0.5a0-py2.4-darwin-8.2.0-Power_Macintosh.egg is
indeed a zip-formatted egg, not a directory.
Erik
More information about the PEAK
mailing list