X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0	tests=BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=google.com; s=20120113;        h=mime-version:x-received:date:message-id:subject:from:to         :content-type:x-gm-message-state;        bh=79tnrQcxFbJHNrlCfpkJ+Ks+pkM+Gdb+hMvMZCD4TCc=;        b=ilccpROO4Wj9+HlXk7rBNhQFBRPAN5aCWbsjZwT2gPIBowHjIIXl0lR0n0mTKq+BUK         h8Y+1If2bBeCQmySunogpvPZyJXXPBI6GK8bJ0To8jmgBJL80MBaiAtmx2dIarhLccBr         ymkZh8uRt0tR5lSsPXduFUsEiSxpyUwi7YmxAezfsC6dozS3Sn/NOypChJbmLz/vVIr7         wMXf8NmFlWOTBpHyuUY/wvbbG5WdLWp5Y2HoCC9vbrqYTHiur47V/OF0xPpsuKKjfWiR         ah9bLLcIzlcfU4LLgRW9I+fdKpPMQCzsknzPtLO0GBTRVDNxxEPmIWOz31+u0nGys3s4         cvjA==
MIME-Version: 1.0
X-Received: by 10.180.24.229 with SMTP id x5mr35691086wif.17.1361394510841; Wed, 20 Feb 2013 13:08:30 -0800 (PST)
Date: Wed, 20 Feb 2013 21:08:30 +0000
Message-ID: <CAOUKz28vUdoMGkQHuQ2yd6NY3BuMfttPYD=ZfpDYexiLZ40SDQ@mail.gmail.com>
Subject: Mercurial problems with Python 2.7
From: Graham Borland <graham.borland@gramboid.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-Gm-Message-State: ALoCoQlMQ+3yH3MbO7ll54GebPPmISDjdPOgB9WRvAIIrgfdXhc0SbS+gDLNHsdAy9yqb9aUKPoy
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Cygwin has recently updated the Python version to 2.7.3-1. Since
accepting this upgrade, Mercurial no longer works. Mercurial is at
version 2.4.2-1.

It looks as if Mercurial has hardwired references to Python 2.6, or
something. This is what I get:

graham@teapot /cygdrive/c/Users/graham
$ which hg
/usr/local/bin/hg

graham@teapot /cygdrive/c/Users/graham
$ hg --version
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/usr/local/lib/python2.6/site-packages/mercurial/dispatch.py",
line 27,                                                   in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/usr/local/lib/python2.6/site-packages/mercurial/dispatch.py",
line 40,                                                   in dispatch
    req.ui = uimod.ui()
  File "/usr/local/lib/python2.6/site-packages/mercurial/ui.py", line
43, in __i                                                  nit__
    for f in scmutil.rcpath():
  File "/usr/local/lib/python2.6/site-packages/mercurial/scmutil.py",
line 430,                                                   in rcpath
    _rcpath = osrcpath()
  File "/usr/local/lib/python2.6/site-packages/mercurial/scmutil.py",
line 402,                                                   in
osrcpath
    path = systemrcpath()
  File "/usr/local/lib/python2.6/site-packages/mercurial/scmutil.py",
line 455,                                                   in
systemrcpath
    path.extend(rcfiles(os.path.join(p, root)))
  File "/usr/local/lib/python2.6/site-packages/mercurial/scmutil.py",
line 440,                                                   in rcfiles
    for f, kind in osutil.listdir(rcdir)
  File "/usr/local/lib/python2.6/site-packages/mercurial/demandimport.py",
line                                                   86, in
__getattribute__
    self._load()
  File "/usr/local/lib/python2.6/site-packages/mercurial/demandimport.py",
line                                                   58, in _load
    mod = _origimport(head, globals, locals)
ImportError: No such file or directory


How can I get Mercurial up and running again quickly?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

