← Back to team overview

schooltool-developers team mailing list archive

Re: VersionConflict with setuptools

 

I have a hunch that you have to find something like "setuptools =
0.6c9" in your versions.cfg or buildout.cfg file and remove it.

Ok. Looked now:

http://ftp.schooltool.org/schooltool/1.2/versions.cfg

has setuptools = 0.6c9 in it.

you will have to override it in buildout.cfg by adding:

[versions]
setuptools = 0.6c11

buildout always tries to get the latest version of setuptools, and
when they do - they load it. After that - buildout can't install the
older setuptools version because of a version conflict.

Hope that helps.

Ignas

On Wed, Nov 11, 2009 at 03:50, Douglas Cerna <douglascerna@xxxxxxxxx> wrote:
> Gediminas:
>
> I just branched lp:schooltool and when I run make I get the traceback below.
>
> It looks like some conflict between setuptools-0.6c11 and setuptools-0.6c9. If I run "make" again after the error, everything works just fine.
>
> Do I have to specify or change something in setup.py or buildout.cfg after branching in order to avoid this?
>
> Thanks, Douglas
>
> "... allí­ es cuando te das cuenta que las cosas malas pueden resultar bastante buenas..." - Lionel Messi
>
> Por favor, evite enviarme adjuntos de Word, Excel o PowerPoint.
> Vea http://www.gnu.org/philosophy/no-word-attachments.es.html
>
> --------%<---------
>
> elbixio@system76:~/opt/sandboxes/schooltool_trunk/schooltool$ make
> test -f bin/buildout || make BOOTSTRAP_PYTHON=python2.5 bootstrap
> make[1]: se ingresa al directorio `/home/elbixio/opt/sandboxes/schooltool_trunk/schooltool'
> python2.5 bootstrap.py
> Creating python
> Creating python/lib/python2.5
> Creating python/lib/python2.5/site-packages
> Creating python/include/python2.5
> Creating python/bin
> Copying /usr/bin/python2.5 to python/bin
> Downloading http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c11-py2.5.egg
> Creating directory '/home/elbixio/opt/sandboxes/schooltool_trunk/schooltool/bin'.
> Creating directory '/home/elbixio/opt/sandboxes/schooltool_trunk/schooltool/parts'.
> Creating directory '/home/elbixio/opt/sandboxes/schooltool_trunk/schooltool/eggs'.
> Creating directory '/home/elbixio/opt/sandboxes/schooltool_trunk/schooltool/develop-eggs'.
> Generated script '/home/elbixio/opt/sandboxes/schooltool_trunk/schooltool/bin/buildout'.
> make[1]: se sale del directorio `/home/elbixio/opt/sandboxes/schooltool_trunk/schooltool'
> test -f bin/test || make buildout
> make[1]: se ingresa al directorio `/home/elbixio/opt/sandboxes/schooltool_trunk/schooltool'
> bin/buildout
> Develop: '/home/elbixio/opt/sandboxes/schooltool_trunk/schooltool/.'
> warning: no files found matching '*.mo' under directory 'src'
> warning: no files found matching '*.xpdl' under directory 'src'
> warning: no files found matching 'version.txt'
> Getting distribution for 'zc.recipe.egg==1.0.0'.
> Getting distribution for 'setuptools==0.6c9'.
> While:
>  Installing.
>  Getting section schooltool.
>  Initializing section schooltool.
>  Installing recipe zc.recipe.egg.
>  Getting distribution for 'zc.recipe.egg==1.0.0'.
>  Getting distribution for 'setuptools==0.6c9'.
>
> An internal error occured due to a bug in either zc.buildout or in a
> recipe being used:
> Traceback (most recent call last):
>  File "/tmp/tmp8pbq-4/zc.buildout-1.4.2-py2.5.egg/zc/buildout/buildout.py", line 1660, in main
>  File "/tmp/tmp8pbq-4/zc.buildout-1.4.2-py2.5.egg/zc/buildout/buildout.py", line 416, in install
>  File "/tmp/tmp8pbq-4/zc.buildout-1.4.2-py2.5.egg/zc/buildout/buildout.py", line 964, in __getitem__
>  File "/tmp/tmp8pbq-4/zc.buildout-1.4.2-py2.5.egg/zc/buildout/buildout.py", line 1048, in _initialize
>  File "/tmp/tmp8pbq-4/zc.buildout-1.4.2-py2.5.egg/zc/buildout/buildout.py", line 1004, in _install_and_load
>  File "/tmp/tmp8pbq-4/zc.buildout-1.4.2-py2.5.egg/zc/buildout/easy_install.py", line 800, in install
>  File "/tmp/tmp8pbq-4/zc.buildout-1.4.2-py2.5.egg/zc/buildout/easy_install.py", line 646, in install
>  File "/tmp/tmp8pbq-4/zc.buildout-1.4.2-py2.5.egg/zc/buildout/easy_install.py", line 543, in _get_dist
>  File "/tmp/tmp8pbq-4/zc.buildout-1.4.2-py2.5.egg/zc/buildout/easy_install.py", line 301, in _call_easy_install
>  File "/tmp/tmp8pbq-4/zc.buildout-1.4.2-py2.5.egg/zc/buildout/easy_install.py", line 552, in _get_dist
>  File "/home/elbixio/opt/sandboxes/schooltool_trunk/schooltool/eggs/setuptools-0.6c11-py2.5.egg/pkg_resources.py", line 793, in best_match
>    dist = working_set.find(req)
>  File "/home/elbixio/opt/sandboxes/schooltool_trunk/schooltool/eggs/setuptools-0.6c11-py2.5.egg/pkg_resources.py", line 464, in find
>    raise VersionConflict(dist,req)     # XXX add more info
> VersionConflict: (setuptools 0.6c11 (/home/elbixio/opt/sandboxes/schooltool_trunk/schooltool/eggs/setuptools-0.6c11-py2.5.egg), Requirement.parse('setuptools==0.6c9'))
> make[1]: *** [buildout] Error 1
> make[1]: se sale del directorio `/home/elbixio/opt/sandboxes/schooltool_trunk/schooltool'
> make: *** [build] Error 2
> elbixio@system76:~/opt/sandboxes/schooltool_trunk/schooltool$ make
> test -f bin/buildout || make BOOTSTRAP_PYTHON=python2.5 bootstrap
> test -f bin/test || make buildout
> make[1]: se ingresa al directorio `/home/elbixio/opt/sandboxes/schooltool_trunk/schooltool'
> bin/buildout
> Develop: '/home/elbixio/opt/sandboxes/schooltool_trunk/schooltool/.'
> warning: no files found matching '*.mo' under directory 'src'
> warning: no files found matching '*.xpdl' under directory 'src'
> warning: no files found matching 'version.txt'
> Getting distribution for 'zc.recipe.egg==1.0.0'.
> Got zc.recipe.egg 1.0.0.
> Getting distribution for 'zc.recipe.testrunner==1.0.0'.
> zip_safe flag not set; analyzing archive contents...
> Got zc.recipe.testrunner 1.0.0.
> Getting distribution for 'zope.testing'.
> Got zope.testing 3.8.3.
> Getting distribution for 'zope.interface==3.4.1'.
> Got zope.interface 3.4.1.
> Getting distribution for 'zope.exceptions==3.4.0'.
> Got zope.exceptions 3.4.0.
> Getting distribution for 'z3c.recipe.tag'.
> Got z3c.recipe.tag 0.3.0.
> Installing schooltool.
> Getting distribution for 'xlrd==0.6.1'.
> zip_safe flag not set; analyzing archive contents...
> Got xlrd 0.6.1.
> ...
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~schooltool-developers
> Post to     : schooltool-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~schooltool-developers
> More help   : https://help.launchpad.net/ListHelp
>



Follow ups

References