HaveF / idapython

Automatically exported from code.google.com/p/idapython
Other
2 stars 0 forks source link

Idapython cannot load _igraph.pyd module in python-igraph correctly. #98

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I install the python-igraph on windows xpsp3, the version is 
   python-igraph-0.6.5.win32-py2.6.msi (md5)
2. I try to import igraph using idapython in idapro6.2

What is the expected output? What do you see instead?

I should work when i import igraph like "import igraph". However, it shows the 
error as following:
****************************
Python>import _igraph
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: DLL load failed: A dynamic link library (DLL) initialization 
routine failed.
******************************

I also try to import igraph using python2.6, it works. I really do not know why 
it failed in idapython. 

What version of the product are you using? On what operating system?
I use Python 2.6.5, IDAPython v1.5.3 final (serial 0), IDA pro 6.2

Please provide any additional information below.
I searched some information about this error, they mentioned that this is 
because idapro uses msvcr100.dll which is conflicted with msvcr90.dll used in 
_igraph.pyd in python-igraph. However, i found _ctypes.dll also use 
msvcr90.dll, but it can be loaded correctly.

Thank very much.

Original issue reported on code.google.com by qianfeng...@gmail.com on 14 Jan 2015 at 12:53