Skip to content

Instantly share code, notes, and snippets.

@cointoss1973
Created April 16, 2012 15:14
Show Gist options
  • Save cointoss1973/2399390 to your computer and use it in GitHub Desktop.
Save cointoss1973/2399390 to your computer and use it in GitHub Desktop.
python DLL load failed on Windows 7 64-bit
$ python
Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>> import sys
>>>
>>> sys.path
['', 'c:\\Python26\\lib\\site-packages\\setuptools-0.6c11-py2.6.egg', 'c:\\Python26\\lib\\site-packages\\nose-0.11.0.dev-py2.6.egg', 'c:\\Python26\\lib\\site-packages\\coverage-3.5.1-py2.6-win32.egg', 'C:\\Windows\\system32\\python26.zip',
'c:\\Python26\\DLLs', 'c:\\Python26\\lib', 'c:\\Python26\\lib\\plat-win', 'c:\\Python26\\lib\\lib-tk', 'c:\\Python26', 'c:\\Python26\\lib\\site-packages']
>>>
>>> import mercurial
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named mercurial
>>>
>>> sys.path.append('C:\Program Files\TortoiseHg\library.zip')
>>>
>>> sys.path
['', 'c:\\Python26\\lib\\site-packages\\setuptools-0.6c11-py2.6.egg', 'c:\\Python26\\lib\\site-packages\\nose-0.11.0.dev-py2.6.egg', 'c:\\Python26\\lib\\site-packages\\coverage-3.5.1-py2.6-win32.egg', 'C:\\Windows\\system32\\python26.zip',
'c:\\Python26\\DLLs', 'c:\\Python26\\lib', 'c:\\Python26\\lib\\plat-win', 'c:\\Python26\\lib\\lib-tk', 'c:\\Python26', 'c:\\Python26\\lib\\site-packages', 'C:\\Program Files\\TortoiseHg\\library.zip']
>>>
>>> import mercurial
>>>
>>> import urllib
>>>
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment