{"thread":{"id":"22866","subject":"error when installing 1.7.0.1: \"ImportError: No module named distutils.core\"","startedAt":"2010-03-01T14:40:00Z","lastAt":"2010-03-01T18:32:24Z","messageCount":6,"participants":["Oliver Kullmann","Tay Ray Chuan","Sverre Rabbelier","Todd Zullinger","Julian Phillips"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"135946","messageId":"20100301144000.GA17135@cs-wsok.swansea.ac.uk","threadId":"22866","inReplyTo":null,"subject":"error when installing 1.7.0.1: \"ImportError: No module named distutils.core\"","fromName":"Oliver Kullmann","fromEmail":"o.kullmann@swansea.ac.uk","sentAt":"2010-03-01T14:40:00Z","receivedAt":"2010-03-01T14:40:00Z","isPatch":false,"sender":{"key":"o.kullmann@swansea.ac.uk","avatar":null},"body":"Hello,\n\nI've installed 1.6.6.2, but now when\ninstalling 1.7.0.1 (same machine) I get\n\nmake[3]: Leaving directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/perl'\nmake[2]: Leaving directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/perl'\nmake[2]: Entering directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/git_remote_helpers'\nTraceback (most recent call last):\n  File \"setup.py\", line 5, in ?\n    from distutils.core import setup\nImportError: No module named distutils.core\n\n\nI'm using\n\nmake configure\nsh ./configure --prefix=InstallDir\nmake all\n\nI've checked the README and INSTALL file, but I don't see that there are new\nrequirements? (That is not regarding doc.)\n\nOliver\n"},{"id":"135947","messageId":"be6fef0d1003010715l31d7b49bs36ee69685e1684e8@mail.gmail.com","threadId":"22866","inReplyTo":"20100301144000.GA17135@cs-wsok.swansea.ac.uk","subject":"Re: error when installing 1.7.0.1: \"ImportError: No module named distutils.core\"","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2010-03-01T15:15:20Z","receivedAt":"2010-03-01T15:15:20Z","isPatch":false,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"Hi,\n\nOn Mon, Mar 1, 2010 at 10:40 PM, Oliver Kullmann\n<O.Kullmann@swansea.ac.uk> wrote:\n> make[3]: Leaving directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/perl'\n> make[2]: Leaving directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/perl'\n> make[2]: Entering directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/git_remote_helpers'\n> Traceback (most recent call last):\n>  File \"setup.py\", line 5, in ?\n>    from distutils.core import setup\n> ImportError: No module named distutils.core\n\n(adding Sverre to the Cc list, perhaps he has something to add)\n\nyou need to install setuptools from python, or pass NO_PYTHON to make/configure.\n\n> I've checked the README and INSTALL file, but I don't see that there are new\n> requirements? (That is not regarding doc.)\n\nI guess we should improve on this.\n\n-- \nCheers,\nRay Chuan\n"},{"id":"135948","messageId":"fabb9a1e1003010724g7c4d2517v1515b846e288713a@mail.gmail.com","threadId":"22866","inReplyTo":"be6fef0d1003010715l31d7b49bs36ee69685e1684e8@mail.gmail.com","subject":"Re: error when installing 1.7.0.1: \"ImportError: No module named distutils.core\"","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2010-03-01T15:24:30Z","receivedAt":"2010-03-01T15:24:30Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Mon, Mar 1, 2010 at 16:15, Tay Ray Chuan <rctay89@gmail.com> wrote:\n> (adding Sverre to the Cc list, perhaps he has something to add)\n\nThis is Johan's code, but IIRC setup.py is pretty much generic setuptools code.\n\n> you need to install setuptools from python, or pass NO_PYTHON to make/configure.\n\nCorrect.\n\n>> I've checked the README and INSTALL file, but I don't see that there are new\n>> requirements? (That is not regarding doc.)\n>\n> I guess we should improve on this.\n\nAye, at the very least we need to document this requirement, but it\nwould probably be even better to test for the existence of setuptools\nand give a useful error message if it's not found?\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"135950","messageId":"20100301161541.GM29188@inocybe.localdomain","threadId":"22866","inReplyTo":"20100301144000.GA17135@cs-wsok.swansea.ac.uk","subject":"Re: error when installing 1.7.0.1: \"ImportError: No module named distutils.core\"","fromName":"Todd Zullinger","fromEmail":"tmz@pobox.com","sentAt":"2010-03-01T16:15:41Z","receivedAt":"2010-03-01T16:15:41Z","isPatch":false,"sender":{"key":"tmz@pobox.com","avatar":"https://avatars.githubusercontent.com/u/806319?v=4"},"body":"Oliver Kullmann wrote:\n> I've installed 1.6.6.2, but now when\n> installing 1.7.0.1 (same machine) I get\n>\n> make[3]: Leaving directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/perl'\n> make[2]: Leaving directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/perl'\n> make[2]: Entering directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/git_remote_helpers'\n> Traceback (most recent call last):\n>   File \"setup.py\", line 5, in ?\n>     from distutils.core import setup\n> ImportError: No module named distutils.core\n>\n>\n> I'm using\n>\n> make configure\n> sh ./configure --prefix=InstallDir\n> make all\n\nIf you have no need for the git_remote_helpers (and unless you are\nworking on adding a git remote helper in python, I don't think you\ndo), you can pass --without-python to configure.  I think that's the\nright way using configure, I use make directly and pass NO_PYTHON = 1\nfor the time being.\n\n-- \nTodd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nThere are no differences but differences of degree between different\ndegrees of difference and no difference.\n    -- William James, under nitrous oxide; 1882\n\n"},{"id":"135963","messageId":"bb49d06f73fe23be76e16089ce8b251c@212.159.54.234","threadId":"22866","inReplyTo":"fabb9a1e1003010724g7c4d2517v1515b846e288713a@mail.gmail.com","subject":"Re: error when installing 1.7.0.1: \"ImportError: No module named distutils.core\"","fromName":"Julian Phillips","fromEmail":"julian@quantumfyre.co.uk","sentAt":"2010-03-01T18:21:52Z","receivedAt":"2010-03-01T18:21:52Z","isPatch":false,"sender":{"key":"julian@quantumfyre.co.uk","avatar":"https://avatars.githubusercontent.com/u/948888?v=4"},"body":"On Mon, 1 Mar 2010 16:24:30 +0100, Sverre Rabbelier <srabbelier@gmail.com>\nwrote:\n> Heya,\n> \n> On Mon, Mar 1, 2010 at 16:15, Tay Ray Chuan <rctay89@gmail.com> wrote:\n>> (adding Sverre to the Cc list, perhaps he has something to add)\n> \n> This is Johan's code, but IIRC setup.py is pretty much generic\nsetuptools\n> code.\n> \n>> you need to install setuptools from python, or pass NO_PYTHON to\n>> make/configure.\n> \n> Correct.\n> \n>>> I've checked the README and INSTALL file, but I don't see that there\n>>> are new\n>>> requirements? (That is not regarding doc.)\n>>\n>> I guess we should improve on this.\n> \n> Aye, at the very least we need to document this requirement, but it\n> would probably be even better to test for the existence of setuptools\n> and give a useful error message if it's not found?\n\nSomething like the following in the Makefile perhaps?\n\n  Python_distutils = $(shell sh -c \"$(PYTHON_PATH) -c 'import distutils'\n2>/dev/null || echo not\")\n\n  ifeq ($(Python_distutils),not)\n          $(warning \"Disabling Python: please install setuptools to\nenable\")\n          NO_PYTHON=SadlyYes\n  endif\n\n-- \nJulian\n"},{"id":"135964","messageId":"fabb9a1e1003011032r61577a2cr21a1fa61154c2d76@mail.gmail.com","threadId":"22866","inReplyTo":"bb49d06f73fe23be76e16089ce8b251c@212.159.54.234","subject":"Re: error when installing 1.7.0.1: \"ImportError: No module named distutils.core\"","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2010-03-01T18:32:24Z","receivedAt":"2010-03-01T18:32:24Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Mon, Mar 1, 2010 at 19:21, Julian Phillips <julian@quantumfyre.co.uk> wrote:\n> Something like the following in the Makefile perhaps?\n\nIndeed, I reckon there's some style issues there, but something along\nthose lines yes :).\n\n-- \nCheers,\n\nSverre Rabbelier\n"}]}