/ programming

Quick fix - zc.buildout, setuptools and virtualenv

Error.

$ ./bin/buildout 
Getting distribution for 'zc.buildout>=2.2.5'.
Got zc.buildout 2.3.1.
While:
Installing.
Checking for upgrades.
Error: There is a version conflict.
We already have: setuptools 7.0
but zc.buildout 2.3.1 requires 'setuptools>=8.0'

Reason:

Virtualenv will never download packages

Virtualenv creates environment with bundled packages.

Quick fix.

pip install -U setuptools

You can use also --extra-search-dir parameter.

Read more:

// Edit: 2014-01-13 09:50

The second way (suggested by Radek Jankiewicz) - you can specify buildout version if you can't change setuptools to the latest version - http://stackoverflow.com/questions/20050710/zc-buildout-requirements-error-when-1-7-0-is-installed-globally#answer-20050899