OpenRCE / paimei

A reverse engineering framework written in Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot import pydbg with Python 2.7.2

ciphor opened this issue · comments

I installed pydbg with the following steps: (OS is WinXP, python 2.7.2)

  1. Download pydasm from
  2. Unzip pydasm, and enter the dir of pydasm
    python build_ext --compiler=mingw32
    python install
  3. Download paimei&pydbg from github
  4. Unzip paimei&pydbg, and copy the files of pydbg to the pydbg/ sub directory of paimei
  5. Enter the dir of paimei,
    python build
    python install

All above steps finished successfully, but when I try to import pydbg module, failure occurs:

import pydbg

Traceback (most recent call last):
File "<pyshell#2>", line 1, in
import pydbg
File "C:\Python27\lib\site-packages\", line 47, in
from pydbg import *
File "C:\Python27\lib\site-packages\pydbg\", line 32, in
import pydasm
ImportError: Module use of python26.dll conflicts with this version of Python.

Does this mean that pydbg can only work with python 2.6?

This occurs because the compiled version of the pydasm extension they're using is for python 2.6. To fix this, just compile libdasm and build the extension with your version of Python. If you don't have a compiler on hand or don't know how to do this, I have some compiled binaries I can send you.