installing - dll load failed

Asked by taylor burrows

Hey, I'm running windows 7 and python 2.7. After installing igraph as well as PyCairo (followed the instructions in http://www.cs.rhul.ac.uk/home/tamas/development/igraph/tutorial/install.html)

On step 2 of (http://igraph.wikidot.com/python-tutorial), when I start shell.py i get this error:

C:\Users\x\Desktop\>python27 c:\users\x\downloads\python27\lib\site-packages\igraph\app\shell.py
Traceback (most recent call last):
  File "c:\users\x\downloads\python27\lib\site-packages\igraph\app\shell.py", line 24, in <module>
    from igraph import __version__, set_progress_handler, set_status_handler
  File "C:\Users\x\Downloads\python27\lib\site-packages\igraph\__init__.py", line 34, in <module>
    from igraph._igraph import *
ImportError: DLL load failed: %1 is not a valid Win32 application.

When I try to import Igraph through the python on windows cmd.exe, I get the same error:
>>> import igraph
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\x\Downloads\python27\lib\site-packages\igraph\__init__.py", line 34, in <module>
    from igraph._igraph import *
ImportError: DLL load failed: %1 is not a valid Win32 application.

A good guess would be there was a problem while installing, but I have reinstalled following the instructions to the t. Any suggestions on how to get Igraph working?

Question information

Language:
English Edit question
Status:
Needs information
For:
igraph Edit question
Assignee:
Tamás Nepusz Edit question
Last query:
Last reply:
Revision history for this message
Tamás Nepusz (ntamas) said :
#1

Is your OS and your Python a 32-bit version or a 64-bit one? The igraph installer in the Python Package Index is meant for 32-bit versions only; if yours is a 64-bit version, then you either have to compile everything by yourself (we cannot provide 64-bit installers as we don't have access to 64-bit Windows machines), or install a 32-bit Python.

Revision history for this message
Tamás Nepusz (ntamas) said :
#2

I have found a few unofficial installers for python-igraph here:

http://www.lfd.uci.edu/~gohlke/pythonlibs/#python-igraph

Please try these as well and let me know if they work for you.

Can you help with this problem?

Provide an answer of your own, or ask taylor burrows for more information if necessary.

To post a message you must log in.