* error when installing 1.7.0.1: "ImportError: No module named distutils.core"
@ 2010-03-01 14:40 Oliver Kullmann
2010-03-01 15:15 ` Tay Ray Chuan
2010-03-01 16:15 ` Todd Zullinger
0 siblings, 2 replies; 8+ messages in thread
From: Oliver Kullmann @ 2010-03-01 14:40 UTC (permalink / raw)
To: git
Hello,
I've installed 1.6.6.2, but now when
installing 1.7.0.1 (same machine) I get
make[3]: Leaving directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/perl'
make[2]: Leaving directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/perl'
make[2]: Entering directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/git_remote_helpers'
Traceback (most recent call last):
File "setup.py", line 5, in ?
from distutils.core import setup
ImportError: No module named distutils.core
I'm using
make configure
sh ./configure --prefix=InstallDir
make all
I've checked the README and INSTALL file, but I don't see that there are new
requirements? (That is not regarding doc.)
Oliver
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: error when installing 1.7.0.1: "ImportError: No module named distutils.core"
2010-03-01 14:40 error when installing 1.7.0.1: "ImportError: No module named distutils.core" Oliver Kullmann
@ 2010-03-01 15:15 ` Tay Ray Chuan
2010-03-01 15:24 ` Sverre Rabbelier
2010-03-01 16:15 ` Todd Zullinger
1 sibling, 1 reply; 8+ messages in thread
From: Tay Ray Chuan @ 2010-03-01 15:15 UTC (permalink / raw)
To: Oliver Kullmann; +Cc: git, Sverre Rabbelier
Hi,
On Mon, Mar 1, 2010 at 10:40 PM, Oliver Kullmann
<O.Kullmann@swansea.ac.uk> wrote:
> make[3]: Leaving directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/perl'
> make[2]: Leaving directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/perl'
> make[2]: Entering directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/git_remote_helpers'
> Traceback (most recent call last):
> File "setup.py", line 5, in ?
> from distutils.core import setup
> ImportError: No module named distutils.core
(adding Sverre to the Cc list, perhaps he has something to add)
you need to install setuptools from python, or pass NO_PYTHON to make/configure.
> I've checked the README and INSTALL file, but I don't see that there are new
> requirements? (That is not regarding doc.)
I guess we should improve on this.
--
Cheers,
Ray Chuan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: error when installing 1.7.0.1: "ImportError: No module named distutils.core"
2010-03-01 15:15 ` Tay Ray Chuan
@ 2010-03-01 15:24 ` Sverre Rabbelier
2010-03-01 18:21 ` Julian Phillips
0 siblings, 1 reply; 8+ messages in thread
From: Sverre Rabbelier @ 2010-03-01 15:24 UTC (permalink / raw)
To: Tay Ray Chuan, Johan Herland; +Cc: Oliver Kullmann, git
Heya,
On Mon, Mar 1, 2010 at 16:15, Tay Ray Chuan <rctay89@gmail.com> wrote:
> (adding Sverre to the Cc list, perhaps he has something to add)
This is Johan's code, but IIRC setup.py is pretty much generic setuptools code.
> you need to install setuptools from python, or pass NO_PYTHON to make/configure.
Correct.
>> I've checked the README and INSTALL file, but I don't see that there are new
>> requirements? (That is not regarding doc.)
>
> I guess we should improve on this.
Aye, at the very least we need to document this requirement, but it
would probably be even better to test for the existence of setuptools
and give a useful error message if it's not found?
--
Cheers,
Sverre Rabbelier
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: error when installing 1.7.0.1: "ImportError: No module named distutils.core"
2010-03-01 15:24 ` Sverre Rabbelier
@ 2010-03-01 18:21 ` Julian Phillips
2010-03-01 18:32 ` Sverre Rabbelier
0 siblings, 1 reply; 8+ messages in thread
From: Julian Phillips @ 2010-03-01 18:21 UTC (permalink / raw)
To: Sverre Rabbelier; +Cc: Tay Ray Chuan, Johan Herland, Oliver Kullmann, git
On Mon, 1 Mar 2010 16:24:30 +0100, Sverre Rabbelier <srabbelier@gmail.com>
wrote:
> Heya,
>
> On Mon, Mar 1, 2010 at 16:15, Tay Ray Chuan <rctay89@gmail.com> wrote:
>> (adding Sverre to the Cc list, perhaps he has something to add)
>
> This is Johan's code, but IIRC setup.py is pretty much generic
setuptools
> code.
>
>> you need to install setuptools from python, or pass NO_PYTHON to
>> make/configure.
>
> Correct.
>
>>> I've checked the README and INSTALL file, but I don't see that there
>>> are new
>>> requirements? (That is not regarding doc.)
>>
>> I guess we should improve on this.
>
> Aye, at the very least we need to document this requirement, but it
> would probably be even better to test for the existence of setuptools
> and give a useful error message if it's not found?
Something like the following in the Makefile perhaps?
Python_distutils = $(shell sh -c "$(PYTHON_PATH) -c 'import distutils'
2>/dev/null || echo not")
ifeq ($(Python_distutils),not)
$(warning "Disabling Python: please install setuptools to
enable")
NO_PYTHON=SadlyYes
endif
--
Julian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: error when installing 1.7.0.1: "ImportError: No module named distutils.core"
2010-03-01 18:21 ` Julian Phillips
@ 2010-03-01 18:32 ` Sverre Rabbelier
0 siblings, 0 replies; 8+ messages in thread
From: Sverre Rabbelier @ 2010-03-01 18:32 UTC (permalink / raw)
To: Julian Phillips; +Cc: Tay Ray Chuan, Johan Herland, Oliver Kullmann, git
Heya,
On Mon, Mar 1, 2010 at 19:21, Julian Phillips <julian@quantumfyre.co.uk> wrote:
> Something like the following in the Makefile perhaps?
Indeed, I reckon there's some style issues there, but something along
those lines yes :).
--
Cheers,
Sverre Rabbelier
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: error when installing 1.7.0.1: "ImportError: No module named distutils.core"
2010-03-01 14:40 error when installing 1.7.0.1: "ImportError: No module named distutils.core" Oliver Kullmann
2010-03-01 15:15 ` Tay Ray Chuan
@ 2010-03-01 16:15 ` Todd Zullinger
1 sibling, 0 replies; 8+ messages in thread
From: Todd Zullinger @ 2010-03-01 16:15 UTC (permalink / raw)
To: Oliver Kullmann; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 1343 bytes --]
Oliver Kullmann wrote:
> I've installed 1.6.6.2, but now when
> installing 1.7.0.1 (same machine) I get
>
> make[3]: Leaving directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/perl'
> make[2]: Leaving directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/perl'
> make[2]: Entering directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/git_remote_helpers'
> Traceback (most recent call last):
> File "setup.py", line 5, in ?
> from distutils.core import setup
> ImportError: No module named distutils.core
>
>
> I'm using
>
> make configure
> sh ./configure --prefix=InstallDir
> make all
If you have no need for the git_remote_helpers (and unless you are
working on adding a git remote helper in python, I don't think you
do), you can pass --without-python to configure. I think that's the
right way using configure, I use make directly and pass NO_PYTHON = 1
for the time being.
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There are no differences but differences of degree between different
degrees of difference and no difference.
-- William James, under nitrous oxide; 1882
[-- Attachment #2: Type: application/pgp-signature, Size: 542 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: error when installing 1.7.0.1: "ImportError: No module named distutils.core"
@ 2010-03-01 17:04 Oliver Kullmann
2010-03-01 17:26 ` Sverre Rabbelier
0 siblings, 1 reply; 8+ messages in thread
From: Oliver Kullmann @ 2010-03-01 17:04 UTC (permalink / raw)
To: git
Okay, with --without-python it works now.
If it's not needed for most people, wouldn't it be
better that this would be the default?
Thanks!
Oliver
On Mon, Mar 01, 2010 at 11:15:41AM -0500, Todd Zullinger wrote:
> Oliver Kullmann wrote:
> > I've installed 1.6.6.2, but now when
> > installing 1.7.0.1 (same machine) I get
> >
> > make[3]: Leaving directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/perl'
> > make[2]: Leaving directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/perl'
> > make[2]: Entering directory `/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Git/git-1.7.0.1/git_remote_helpers'
> > Traceback (most recent call last):
> > File "setup.py", line 5, in ?
> > from distutils.core import setup
> > ImportError: No module named distutils.core
> >
> >
> > I'm using
> >
> > make configure
> > sh ./configure --prefix=InstallDir
> > make all
>
> If you have no need for the git_remote_helpers (and unless you are
> working on adding a git remote helper in python, I don't think you
> do), you can pass --without-python to configure. I think that's the
> right way using configure, I use make directly and pass NO_PYTHON = 1
> for the time being.
>
> --
> Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> There are no differences but differences of degree between different
> degrees of difference and no difference.
> -- William James, under nitrous oxide; 1882
>
--
Dr. Oliver Kullmann
Computer Science Department
Swansea University
Faraday Building, Singleton Park
Swansea SA2 8PP, UK
http://cs.swan.ac.uk/~csoliver/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: error when installing 1.7.0.1: "ImportError: No module named distutils.core"
2010-03-01 17:04 Oliver Kullmann
@ 2010-03-01 17:26 ` Sverre Rabbelier
0 siblings, 0 replies; 8+ messages in thread
From: Sverre Rabbelier @ 2010-03-01 17:26 UTC (permalink / raw)
To: Oliver Kullmann; +Cc: git
Heya,
[please don't cull the cc list]
On Mon, Mar 1, 2010 at 18:04, Oliver Kullmann <O.Kullmann@swansea.ac.uk> wrote:
> Okay, with --without-python it works now.
> If it's not needed for most people, wouldn't it be
> better that this would be the default?
I don't think that's a good idea, I'd rather give it some exposure and
catch bugs like these, and then when we start using it (hopefully
soon) we won't run into any unexpected build troubles.
--
Cheers,
Sverre Rabbelier
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-03-01 18:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-01 14:40 error when installing 1.7.0.1: "ImportError: No module named distutils.core" Oliver Kullmann
2010-03-01 15:15 ` Tay Ray Chuan
2010-03-01 15:24 ` Sverre Rabbelier
2010-03-01 18:21 ` Julian Phillips
2010-03-01 18:32 ` Sverre Rabbelier
2010-03-01 16:15 ` Todd Zullinger
-- strict thread matches above, loose matches on Subject: below --
2010-03-01 17:04 Oliver Kullmann
2010-03-01 17:26 ` Sverre Rabbelier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).