Attempting to bootstrap and getting weird errors

I'm on a new computer(mac 10.9.2) and I am attempting to bootstrap my companies project, but setuptools is failing.

I can run python bootstrap.py, which creates the ./bin/buildout, but when I run the buildout, it returns the following error:

Traceback (most recent call last): File "./bin/buildout", line 17, in <module> import zc.buildout.buildout File "/Users/miah/Documents/realmassive/joson/eggs/zc.buildout-1.7.1-py2.7. egg/zc/buildout/buildout.py", line 40, in <module> import zc.buildout.download File "/Users/miah/Documents/realmassive/joson/eggs/zc.buildout-1.7.1-py2.7. egg/zc/buildout/download.py", line 20, in <module> from zc.buildout.easy_install import realpath File "/Users/miah/Documents/realmassive/joson/eggs/zc.buildout-1.7.1-py2.7. egg/zc/buildout/easy_install.py", line 29, in <module> import setuptools.archive_util File "build/bdist.macosx-10.9-intel/egg/setuptools/archive_util.py", line 15, in <module>
ImportError: cannot import name ContextualZipFile

I've attempted installing it via and homebrew.

1 Answer

I'm having a similar problem on a Debian system. It seems that something is broken in the latest version of setuptools (4.0.1) which was probably the version of setuptools you pulled down for a fresh install. I was able to get things working by cleaning out the bad install and forcing use of 3.8 with pip install setuptools==3.8

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like