New submission from Andreas Richter: Having the following problem. 1. Download 2.7.8 64-bit windows msi 2. Install it 3. Run python ... says it's 2.7.6 4. Execute import hmac 5. Error
Output: C:\prototype>python Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import hmac Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\prototype\Tools\python27\lib\hmac.py", line 8, in <module> from operator import _compare_digest as compare_digest ImportError: cannot import name _compare_digest I saw some posts out there indicating it had something to do with django or something related, but when I run python -v I can see that it's only involving local python libraries (in fact no site-packages at all) The problem is that the builtin version of the operator module (which incidentally is not loaded from a pyd or pyc file (meaning it's inside of either python27.dll or python.exe doesn't contain _compare_digest.) Most of the time to get things to run you can just delete the import line if you can make sure not to call hmac.compare_digest. ---------- components: Installation messages: 224821 nosy: Andreas.Richter priority: normal severity: normal status: open title: python windows 2.7.8 64-bit wrong binary version type: crash versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22139> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com