[Setup] Error: Couldn't install: zope.interface 4.0.1

Héctor Velarde hector.velarde at gmail.com
Fri Jun 15 18:40:07 UTC 2012


I'm writing a special buildout configuration to test a package under 
Plone 3.3.x that looks like this:

[buildout]
extends =
     http://svn.plone.org/svn/collective/buildout/plonetest/test-3.3.x.cfg

package-name = sc.contentrules.groupbydate
package-extras = [test]

[test]
defaults = ['-s', '${buildout:package-name}', '--auto-color', 
'--auto-progress']

[versions]
plone.app.testing = 3.0a1

but when I run it I got the following error message:

(python-2.4)# hvelarde at hvelarde-laptop (origin:master * u=) 
~/plone/sc.contentrules.groupbydate
# bin/buildout -c test-plone-3.3.x.cfg -vv
Installing 'zc.buildout', 'setuptools'.
We have the distribution that satisfies 'zc.buildout==1.4.4'.
We have the distribution that satisfies 'distribute==0.6.15'.
Develop: '/home/hvelarde/plone/sc.contentrules.groupbydate/.'
in: '/home/hvelarde/plone/sc.contentrules.groupbydate/.'
/tmp/tmpumxcFb develop -mxN -d 
/home/hvelarde/plone/sc.contentrules.groupbydate/develop-eggs/tmpkAh7z2build
running develop
Checking .pth file support in 
/home/hvelarde/plone/sc.contentrules.groupbydate/develop-eggs/tmpkAh7z2build
/usr/local/pythons/python-2.4/bin/python -E -c pass
running egg_info
writing requirements to sc.contentrules.groupbydate.egg-info/requires.txt
writing sc.contentrules.groupbydate.egg-info/PKG-INFO
writing namespace_packages to 
sc.contentrules.groupbydate.egg-info/namespace_packages.txt
writing top-level names to 
sc.contentrules.groupbydate.egg-info/top_level.txt
writing dependency_links to 
sc.contentrules.groupbydate.egg-info/dependency_links.txt
writing entry points to 
sc.contentrules.groupbydate.egg-info/entry_points.txt
reading manifest file 'sc.contentrules.groupbydate.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'sc.contentrules.groupbydate.egg-info/SOURCES.txt'
running build_ext
Creating 
/home/hvelarde/plone/sc.contentrules.groupbydate/develop-eggs/tmpkAh7z2build/sc.contentrules.groupbydate.egg-link 
(link to .)

Installed /home/hvelarde/plone/sc.contentrules.groupbydate

Because this distribution was installed --multi-version, before you can
import modules from this package in an application, you will need to
'import pkg_resources' and then use a 'require()' call similar to one of
these examples, in order to select the desired version:

     pkg_resources.require("sc.contentrules.groupbydate")  # latest 
installed version
     pkg_resources.require("sc.contentrules.groupbydate==1.3dev")  # 
this exact version
     pkg_resources.require("sc.contentrules.groupbydate>=1.3dev")  # 
this version or higher


Note also that the installation directory must be on sys.path at runtime for
this to work.  (e.g. by being the application's script directory, by 
being on
PYTHONPATH, or by being added to sys.path by your code.)

Installing 'plone.recipe.zope2install'.
We have the distribution that satisfies 'plone.recipe.zope2install==3.3'.
Installing 'plone.recipe.zope2instance'.
We have the distribution that satisfies 'plone.recipe.zope2instance==3.10'.
Getting required 'zc.recipe.egg==1.2.2'
We have the distribution that satisfies 'zc.recipe.egg==1.2.2'.
Getting required 'mailinglogger==3.3.3'
We have the distribution that satisfies 'mailinglogger==3.3.3'.
Installing 'zc.recipe.testrunner'.
We have the distribution that satisfies 'zc.recipe.testrunner==1.2.1'.
Getting required 'zope.testing==3.9.4'
We have the distribution that satisfies 'zope.testing==3.9.4'.
Getting required 'zope.interface'
   required by zope.testing 3.9.4.
Getting distribution for 'zope.interface'.
Running easy_install:
/usr/local/pythons/python-2.4/bin/python "-c" "from 
setuptools.command.easy_install import main; main()" "-mUNxd" 
"/home/hvelarde/.buildout/eggs/tmpTYrPil" "-Z" 
"/home/hvelarde/.buildout/downloads/dist/zope.interface-4.0.1.tar.gz"
path=/home/hvelarde/.buildout/eggs/distribute-0.6.15-py2.4.egg

Processing zope.interface-4.0.1.tar.gz
Running zope.interface-4.0.1/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-fpvLCE/zope.interface-4.0.1/egg-dist-tmp-8HRzM0
Traceback (most recent call last):
   File "<string>", line 1, in ?
   File 
"/home/hvelarde/.buildout/eggs/distribute-0.6.15-py2.4.egg/setuptools/command/easy_install.py", 
line 1858, in main
     with_ei_usage(lambda:
   File 
"/home/hvelarde/.buildout/eggs/distribute-0.6.15-py2.4.egg/setuptools/command/easy_install.py", 
line 1839, in with_ei_usage
     return f()
   File 
"/home/hvelarde/.buildout/eggs/distribute-0.6.15-py2.4.egg/setuptools/command/easy_install.py", 
line 1862, in <lambda>
     distclass=DistributionWithoutHelpCommands, **kw
   File "/usr/local/pythons/parts/opt/lib/python2.4/distutils/core.py", 
line 149, in setup
     dist.run_commands()
   File "/usr/local/pythons/parts/opt/lib/python2.4/distutils/dist.py", 
line 946, in run_commands
     self.run_command(cmd)
   File "/usr/local/pythons/parts/opt/lib/python2.4/distutils/dist.py", 
line 966, in run_command
     cmd_obj.run()
   File 
"/home/hvelarde/.buildout/eggs/distribute-0.6.15-py2.4.egg/setuptools/command/easy_install.py", 
line 344, in run
     self.easy_install(spec, not self.no_deps)
   File 
"/home/hvelarde/.buildout/eggs/distribute-0.6.15-py2.4.egg/setuptools/command/easy_install.py", 
line 564, in easy_install
     return self.install_item(None, spec, tmpdir, deps, True)
   File 
"/home/hvelarde/.buildout/eggs/distribute-0.6.15-py2.4.egg/setuptools/command/easy_install.py", 
line 614, in install_item
     dists = self.install_eggs(spec, download, tmpdir)
   File 
"/home/hvelarde/.buildout/eggs/distribute-0.6.15-py2.4.egg/setuptools/command/easy_install.py", 
line 804, in install_eggs
     return self.build_and_install(setup_script, setup_base)
   File 
"/home/hvelarde/.buildout/eggs/distribute-0.6.15-py2.4.egg/setuptools/command/easy_install.py", 
line 1081, in build_and_install
     self.run_setup(setup_script, setup_base, args)
   File 
"/home/hvelarde/.buildout/eggs/distribute-0.6.15-py2.4.egg/setuptools/command/easy_install.py", 
line 1070, in run_setup
     run_setup(setup_script, args)
   File 
"/home/hvelarde/.buildout/eggs/distribute-0.6.15-py2.4.egg/setuptools/sandbox.py", 
line 28, in run_setup
     DirectorySandbox(setup_dir).run(
   File 
"/home/hvelarde/.buildout/eggs/distribute-0.6.15-py2.4.egg/setuptools/sandbox.py", 
line 70, in run
     return func()
   File 
"/home/hvelarde/.buildout/eggs/distribute-0.6.15-py2.4.egg/setuptools/sandbox.py", 
line 31, in <lambda>
     {'__file__':setup_script, '__name__':'__main__'}
   File "setup.py", line 42
     except DistutilsPlatformError as e:
                                    ^
SyntaxError: invalid syntax
An error occured when trying to install zope.interface 4.0.1. Look above 
this message for any errors that were output by easy_install.
Could't load zc.buildout entry point default
from zc.recipe.testrunner:
Couldn't install: zope.interface 4.0.1.
While:
   Installing.
   Getting section test.
   Initializing section test.
   Installing recipe zc.recipe.testrunner.
   Getting distribution for 'zope.interface'.
Error: Couldn't install: zope.interface 4.0.1

I already tried adding the following with no luck:

[zope2]
fake-zope-eggs = true
additional-fake-eggs =
     zope.interface = 4.0.1

any hint?

best regards
-- 
Héctor Velarde
cel: +55 (11) 9270 1111
cel: +52 (1) 55 5409 1090

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4939 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.plone.org/pipermail/plone-setup/attachments/20120615/8db68601/attachment.p7s>


More information about the Setup mailing list