X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Wed, 19 Dec 2012 13:56:51 -0800 Message-ID: Subject: python2.6 appears to be missing _md5 module? From: Paul Fredrickson To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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.*) Anything else I can try or report? I am on a Win7-64bit system, using cygwin DLL version 1.7.17-1. Thanks for any help! --Paul -- 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