* non-trivial merge failures
@ 2005-11-20 21:49 David S. Miller
2005-11-20 21:51 ` Ismail Donmez
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: David S. Miller @ 2005-11-20 21:49 UTC (permalink / raw)
To: git
Every time I try to do a non-trivial merge, I always
get this:
davem@sunset:~/src/GIT/net-2.6$ git pull git://git.skbuff.net/gitroot/yoshfuji/linux-2.6.14+advapi-fix/
Unpacking 21 objects
100% (21/21) done
Trying really trivial in-index merge...
fatal: Merge requires file-level merging
Nope.
Traceback (most recent call last):
File "/home/davem/bin/git-merge-recursive", line 13, in ?
from gitMergeCommon import *
File "/home/davem/share/git-core/python/gitMergeCommon.py", line 18, in ?
import subprocess
ImportError: No module named subprocess
Automatic merge failed/prevented; fix up by hand
davem@sunset:~/src/GIT/net-2.6$
(one can reproduce this exact tree state by cloning:
master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6.git
then executing the above pull command)
Maybe something is wrong with my python installation or
something like that?
It looks like it's failing to import some python module called
"subprocess", and I aparently don't have that installed.
/usr/bin/python on this Debian box is aparently python-2.3, do
I need to be using python-2.4 for this merge stuff to work?
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: non-trivial merge failures
2005-11-20 21:49 non-trivial merge failures David S. Miller
@ 2005-11-20 21:51 ` Ismail Donmez
2005-11-20 23:39 ` Johannes Schindelin
2005-11-21 4:15 ` David S. Miller
2005-11-20 23:07 ` Ryan Anderson
[not found] ` <20051120221922.GB29291@mail.com>
2 siblings, 2 replies; 9+ messages in thread
From: Ismail Donmez @ 2005-11-20 21:51 UTC (permalink / raw)
To: git
Sunday 20 November 2005 23:49 tarihinde şunları yazmıştınız:
> ImportError: No module named subprocess
You need Python 2.4.x, subprocess is a new module in Python 2.4
Regards,
ismail
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: non-trivial merge failures
2005-11-20 21:51 ` Ismail Donmez
@ 2005-11-20 23:39 ` Johannes Schindelin
2005-11-21 4:15 ` David S. Miller
1 sibling, 0 replies; 9+ messages in thread
From: Johannes Schindelin @ 2005-11-20 23:39 UTC (permalink / raw)
To: Ismail Donmez; +Cc: git
[-- Attachment #1: Type: TEXT/PLAIN, Size: 477 bytes --]
Hi,
On Sun, 20 Nov 2005, Ismail Donmez wrote:
> Sunday 20 November 2005 23:49 tarihinde ÿÿunlarÿÿ yazmÿÿÿÿtÿÿnÿÿz:
> > ImportError: No module named subprocess
>
> You need Python 2.4.x, subprocess is a new module in Python 2.4
No, you don't need 2.4, but at least 2.3. If you don't install git, but
run it from where you compile it, be sure to set GIT_PYTHON_PATH in your
config.mak. In any case, you need to set WITH_OWN_SUBPROCESS_PY for 2.3
Hth,
Dscho
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: non-trivial merge failures
2005-11-20 21:51 ` Ismail Donmez
2005-11-20 23:39 ` Johannes Schindelin
@ 2005-11-21 4:15 ` David S. Miller
1 sibling, 0 replies; 9+ messages in thread
From: David S. Miller @ 2005-11-21 4:15 UTC (permalink / raw)
To: ismail; +Cc: git
From: Ismail Donmez <ismail@uludag.org.tr>
Date: Sun, 20 Nov 2005 23:51:42 +0200
> Sunday 20 November 2005 23:49 tarihinde ^[$,1 \x7f^[(Bunlar^[$,1 Q^[(B yazm^[$,1 Q \x7f^[(Bt^[$,1 Q^[(Bn^[$,1 Q^[(Bz:
> > ImportError: No module named subprocess
>
> You need Python 2.4.x, subprocess is a new module in Python 2.4
It's amazing that "make test" passes in the presence of Python 2.3 :-)
Maybe at least a trivial version check can be added to GIT somewhere?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: non-trivial merge failures
2005-11-20 21:49 non-trivial merge failures David S. Miller
2005-11-20 21:51 ` Ismail Donmez
@ 2005-11-20 23:07 ` Ryan Anderson
2005-11-21 4:20 ` David S. Miller
[not found] ` <20051120221922.GB29291@mail.com>
2 siblings, 1 reply; 9+ messages in thread
From: Ryan Anderson @ 2005-11-20 23:07 UTC (permalink / raw)
To: David S. Miller; +Cc: git
On Sun, Nov 20, 2005 at 01:49:45PM -0800, David S. Miller wrote:
>
> Every time I try to do a non-trivial merge, I always
> get this:
git-merge-recursive became the default merge tool recently, and Debian
uses Python 2.3 as the default, which lacks "subprocess.py". Luckily,
git ships a backport, so you can do:
make WITH_OWN_SUBPROCESS_PY=YesPlease all doc test install install-doc
or
make PYTHON_PATH=/usr/bin/python2.4 all doc test install install-doc
and fix things up (the second assuming, of course, you have python-2.4
installed)
Alternatively, you can build your own Debian packages with "make deb"
and just install them.
--
Ryan Anderson
sometimes Pug Majere
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: non-trivial merge failures
2005-11-20 23:07 ` Ryan Anderson
@ 2005-11-21 4:20 ` David S. Miller
[not found] ` <11325498823557-git-send-email-ryan@michonline.com>
0 siblings, 1 reply; 9+ messages in thread
From: David S. Miller @ 2005-11-21 4:20 UTC (permalink / raw)
To: ryan; +Cc: git
From: Ryan Anderson <ryan@michonline.com>
Date: Sun, 20 Nov 2005 18:07:38 -0500
> On Sun, Nov 20, 2005 at 01:49:45PM -0800, David S. Miller wrote:
> >
> > Every time I try to do a non-trivial merge, I always
> > get this:
>
> git-merge-recursive became the default merge tool recently, and Debian
> uses Python 2.3 as the default, which lacks "subprocess.py". Luckily,
> git ships a backport, so you can do:
>
> make WITH_OWN_SUBPROCESS_PY=YesPlease all doc test install install-doc
> or
> make PYTHON_PATH=/usr/bin/python2.4 all doc test install install-doc
All these ways to make it work are nice, and in fact I have
no problem with upgrading to python2.4 on my system if that
makes it work.
I have a huge problem with the fact that "make test" passes %100
cleanly even if you have the wrong python version installed. It's
amazing that this is that possible if even the most non-trivial merge
needs this Python code :-)
^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <20051120221922.GB29291@mail.com>]
* Re: non-trivial merge failures
[not found] ` <20051120221922.GB29291@mail.com>
@ 2005-11-21 4:17 ` David S. Miller
0 siblings, 0 replies; 9+ messages in thread
From: David S. Miller @ 2005-11-21 4:17 UTC (permalink / raw)
To: rayl; +Cc: git
From: Ray Lehtiniemi <rayl@mail.com>
Date: Sun, 20 Nov 2005 15:19:22 -0700
> On Sun, Nov 20, 2005 at 01:49:45PM -0800, David S. Miller wrote:
> >
> > It looks like it's failing to import some python module called
> > "subprocess", and I aparently don't have that installed.
> > /usr/bin/python on this Debian box is aparently python-2.3, do
> > I need to be using python-2.4 for this merge stuff to work?
>
> Define WITH_OWN_SUBPROCESS_PY in Makefile to install a copy of
> this module.
How about a version check at build or "make test" time so we can get a
sensible failure diagnostic instead of a weird cryptic "subprocess
import failure" when Python is too old? :-)
At least some better behavior than what we have now, where "make test"
still passes when you have this problem.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-11-21 8:26 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-20 21:49 non-trivial merge failures David S. Miller
2005-11-20 21:51 ` Ismail Donmez
2005-11-20 23:39 ` Johannes Schindelin
2005-11-21 4:15 ` David S. Miller
2005-11-20 23:07 ` Ryan Anderson
2005-11-21 4:20 ` David S. Miller
[not found] ` <11325498823557-git-send-email-ryan@michonline.com>
2005-11-21 5:31 ` [PATCH] Add Python version checks to the Makefile to automatically set WITH_OWN_SUBPROCESS_PY David S. Miller
2005-11-21 8:26 ` Johannes Schindelin
[not found] ` <20051120221922.GB29291@mail.com>
2005-11-21 4:17 ` non-trivial merge failures David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox