2009/11/11 Ignas Mikalajunas <[email protected]>: > The override will work until they release 0.6c12 and then you will get > a simmilar error and have to upgrade all the sandboxes again. > > So the solution still is - update it in the ftp, so that it would work > for everyone and do so after every setuptools release, or stop > hardcoding setuptools version. > > Case 1 - it will definitely break for everyone after setuptools > release, will get fixed soon and keep on working. Until the fix > everyone will have to run buildout twice (iirc that kind of works > around it) > Case 2 - it will break if setuptools make a buggy release (has > happened twice before). Sandboxes will stop working until someone adds > the fixed version back to the common versions.cfg and then you get to > the state of case 1 - run buildout twice to work around dependency > conflict. > > Ignas
Case 2 means I have to fix only when something breaks. So, I have set the following developer tools to use the latest version: setuptools = zc.buildout = zope.testing = The first two should solve bootstrap and buildout version problems. > > On Wed, Nov 11, 2009 at 05:46, Douglas Cerna <[email protected]> wrote: >> Ignas: >> >> Thanks! That fixed the problem. >> >> Maybe setuptools = 0.6c11 should be the default for development sandboxes :) >> >> 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 >> >> >> --- On Tue, 11/10/09, Ignas Mikalajunas <[email protected]> wrote: >> >>> From: Ignas Mikalajunas <[email protected]> >>> Subject: Re: [Schooltool-developers] VersionConflict with setuptools >>> To: "Douglas Cerna" <[email protected]> >>> Cc: "Gediminas Paulauskas" <[email protected]>, "SchoolTool Developers" >>> <[email protected]> >>> Date: Tuesday, November 10, 2009, 9:08 PM >>> 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 <[email protected]> >>> 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 >>> > >>> > --------%<--------- >>> > >>> > >>> elbi...@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 >>> > >>> elbi...@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 : [email protected] >>> > Unsubscribe : https://launchpad.net/~schooltool-developers >>> > More help : https://help.launchpad.net/ListHelp >>> > >>> >> >> >> >> > _______________________________________________ Mailing list: https://launchpad.net/~schooltool-developers Post to : [email protected] Unsubscribe : https://launchpad.net/~schooltool-developers More help : https://help.launchpad.net/ListHelp

