pythonpydbg

pydbg can't import pydasm - Python 2.7


Here is a snippets from my python shell, i can't understand what is wrong there, if somebody has any suggestion i would be glad to hear.

>>> import pydbg
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\pydbg\__init__.py", line 47, in <module>
    from pydbg                   import *
  File "C:\Python27\lib\pydbg\pydbg.py", line 32, in <module>
    import pydasm
ImportError: DLL load failed: The specified module could not be found.
>>> import pydasm
>>>

how come that i can't import pydbg since there it can't import pydasm, and i can import pydasm directly ?


Solution

  • Move your pydbg directory from C:\Python27\lib\ to C:\Python27\lib\site-packages\, the standard installation location for 3rd party packages. Alternatively, try the unofficial pydbg binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pydbg.