delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/12/19/17:39:25

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.9 required=5.0 tests=AWL,BAYES_00,BOTNET,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Message-id: <50D241EB.6020301@cygwin.com>
Date: Wed, 19 Dec 2012 17:38:35 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: python2.6 appears to be missing _md5 module?
References: <CAMOQK=NwgNm3ZbobgMDZy2ZT08X3fVCNbWXDU7sK=vfUpdR74g AT mail DOT gmail DOT com>
In-reply-to: <CAMOQK=NwgNm3ZbobgMDZy2ZT08X3fVCNbWXDU7sK=vfUpdR74g@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 12/19/2012 4:56 PM, Paul Fredrickson wrote:
> Hi cygwin developers,
>
> Today I went to install the mercurial package, which depended on
> python. It installed version 2.6.8-2 of python, but when I tried to
> run "hg clone" it failed with a message "abort: no module named
> _md5!". And indeed, if I simply started up python and tried things
> like "import md5", "from hashlib import md5" or "import _md5" they all
> fail with the same import error "No module named _md5".
>
> If I install python 2.7.3-1, then the md5 issue goes away. That is, I
> can import md5 in any of the ways I mention above (well, except as
> "import _md5", but "import md5; m = md5.md5(); m.update('a');
> m.hexdigest()" is functional.)
>
> However, mercurial still fails. It appears to have hard-coded
> references to the python2.6 versions.  (In /usr/bin/hg, it sets libdir
> to "../lib/python2.6/site-packages"), and when I run "hg clone
> http://hg.python.org/cpython" it fails with:
>
> Fatal Python error: Interpreter not initialized (version mismatch?)
> Aborted (core dumped)
>
> Also, cygwin's setup now recommends that I "upgrade" my 2.7 back to
> 2.6, which works, but just returns me to the problem of a missing
> _md5.  (It does have a hashlib.py and md5.py, but no _md5.*)

I don't have any insight into the python problems you're seeing but
I can explain why "setup.exe" asks you to upgrade to 2.6 when you're
at 2.7.  2.7 is, apparently, an experimental package.  While "setup.exe"
allows you to install this, when it does dependency checking, experimental
versions are considered inferior to normal versions.  So despite the fact
that the version number for python is greater in the experimental package,
you'll always be asked to upgrade to the normal released version.  Like
it or not (and of course you love it ;-) ), this is expected behavior for
"setup.exe".


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019