DLL Fails to load Windows 8.1 64bit

Create issue
Issue #17 duplicate
Former user created an issue

Hi

Facing an issue on my windows 8.1 64 bit install. I've installed pythong 2.7.9 64 bit, and pip install netifaces works fine, however:

import netifaces Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: DLL load failed: The specified module could not be found.

C:\OctoPrint>python --version Python 2.7.9

C:\OctoPrint>python -c "import platform; print(platform.architecture())" ('64bit', 'WindowsPE')

Any help appreciated

Comments (8)

  1. Former user Account Deleted reporter

    C:>pip install -v netifaces Downloading/unpacking netifaces Using version 0.10.4 (newest of versions: 0.10.4, 0.10.4, 0.10.3, 0.10.2, 0.10 .1, 0.10.0, 0.8) Downloading netifaces-0.10.4-cp27-none-win_amd64.whl Downloading from URL https://pypi.python.org/packages/2.7/n/netifaces/netiface s-0.10.4-cp27-none-win_amd64.whl#md5=fa59bf552090a106a0818c4390abbc77 (from http s://pypi.python.org/simple/netifaces/) Installing collected packages: netifaces Successfully installed netifaces Cleaning up... Removing temporary dir c:\users\thomas\appdata\local\temp\pip_build_Thomas...

    C:>

  2. Former user Account Deleted reporter

    I also tried the MSI installer version...

    I got:

    import netifaces Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: DLL load failed: %1 is not a valid Win32 application.

  3. opalmer

    Thomas, could you unzip the wheel file and run the pyd file through dependency walker? That should hopefully give us a little more about which DLL(s) are a problem. Both pyds and wheel files are supposed to include external dependencies so either the release is broken or there's something Python can't find on the system. Hopefully, dependency walker should give us a little more insight.

  4. Former user Account Deleted reporter

    Sorry only just seen this! Need to update my bitbucket email address. I'll give this a go this evening and let you know!

    Thanks

  5. Anthony Ng

    Opalmer, I got the same problem as Thomas with netifaces in Windows Server 2012 R2.

    PS C:\Users\w1-1\Documents\conn-mgr> python --version Python 2.7.10 PS C:\Users\w1-1\Documents\conn-mgr> python -c "import platform; print(platform.architecture())" ('64bit', 'WindowsPE')

    When running dependency walker, I got the following: MSVCR100.DLL Error opening file. The system cannot find the file specified (2). PYTHON27.DLL Error opening file. The system cannot find the file specified (2). API-MS-WIN-SERVICE-PRIVATE-L1-1-1.DLL Error opening file. The system cannot find the file specified (2).

    Error: At least one required implicit or forwarded dependency was not found. Error: Modules with different CPU types were found. Warning: At least one delay-load dependency module was not found.

  6. Anthony Ng

    Installation log...

    PS C:\users\w1-1\Documents\conn-mgr> pip install -v netifaces Starting new HTTPS connection (1): pypi.python.org "GET /pypi/pip/json HTTP/1.1" 200 43886 You are using pip version 7.0.1, however version 7.1.0 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Collecting netifaces Getting page https://pypi.python.org/simple/netifaces/ Starting new HTTPS connection (1): pypi.python.org "GET /simple/netifaces/ HTTP/1.1" 200 2158 1 location(s) to search for versions of netifaces: * https://pypi.python.org/simple/netifaces/ Getting page https://pypi.python.org/simple/netifaces/ Analyzing links from page https://pypi.python.org/simple/netifaces/ Skipping link https://pypi.python.org/packages/2.6/n/netifaces/netifaces-0.10.1-cp26-none-win32.whl#md5=7965d5a882ea ebf74ffcd043e697dc2f (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/2.6/n/netifaces/netifaces-0.10.1-py2.6-win32.egg#md5=c8c5f7e4a403dd41 6b435ad8eddefed1 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/2.6/n/netifaces/netifaces-0.10.1.win32-py2.6.exe#md5=bf229517b6b3d40a d0991fc6b504043d (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .exe Skipping link https://pypi.python.org/packages/2.6/n/netifaces/netifaces-0.10.2-cp26-none-win32.whl#md5=65bd395ec039 61a37cff14d54df22f10 (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/2.6/n/netifaces/netifaces-0.10.2-py2.6-win32.egg#md5=07fb22d2408bf296 9c18cfa1711bd5d6 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/2.6/n/netifaces/netifaces-0.10.2.win32-py2.6.exe#md5=e55e5fd188e4e6fd a21942b665a2fca3 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .exe Skipping link https://pypi.python.org/packages/2.6/n/netifaces/netifaces-0.10.3-cp26-none-win32.whl#md5=1343657ab8cd 29bafd643da20f3aefd5 (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/2.6/n/netifaces/netifaces-0.10.3-py2.6-win32.egg#md5=1b0c3b5a76bd543d 45ec4d6fa50f29f4 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/2.6/n/netifaces/netifaces-0.10.3.win32-py2.6.exe#md5=da9e984985970d7c ed4dd69314ac0e14 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .exe Skipping link https://pypi.python.org/packages/2.6/n/netifaces/netifaces-0.10.4-cp26-none-win32.whl#md5=c1e5b4b7e052 5893402ccd5192187601 (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/2.6/n/netifaces/netifaces-0.10.4-cp26-none-win_amd64.whl#md5=f5674145 20b40fb7e931b5efb6a27b5a (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/2.6/n/netifaces/netifaces-0.10.4-py2.6-win32.egg#md5=9ae37cabc4574c87 4a3053678b857aa1 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/2.6/n/netifaces/netifaces-0.10.4.win32-py2.6.exe#md5=4b92944c24aa2556 7a056245df0ced5d (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .exe Skipping link https://pypi.python.org/packages/2.7/n/netifaces/netifaces-0.10.0-py2.7-linux-x86_64.egg#md5=4bf3f4a83 c84d7c7fab7f50958948c2f (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/2.7/n/netifaces/netifaces-0.10.0-py2.7-macosx-10.9-intel.egg#md5=c1f8 0786a62a088a0d882a7291fc0003 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/2.7/n/netifaces/netifaces-0.10.0-py2.7-win32.egg#md5=5dc7c3e416371423 ac966fcb152272ff (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/2.7/n/netifaces/netifaces-0.10.1-cp27-none-win32.whl#md5=b42a29695f57 5f2893be1daed2b2dca3 (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/2.7/n/netifaces/netifaces-0.10.1-py2.7-win32.egg#md5=0295b17dc388d2cb 5ac73a50dbd2e6e4 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/2.7/n/netifaces/netifaces-0.10.1.win32-py2.7.exe#md5=b1584b3a9db0c763 c94511f4e508f4fe (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .exe Skipping link https://pypi.python.org/packages/2.7/n/netifaces/netifaces-0.10.2-cp27-none-win32.whl#md5=1392d3cebd37 be760c9db8bbf8a1f3cf (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/2.7/n/netifaces/netifaces-0.10.2-py2.7-win32.egg#md5=cd06faf5faccc13f 71bad4bde03de3c1 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/2.7/n/netifaces/netifaces-0.10.2.win32-py2.7.exe#md5=9b2e1fb6a8c4a432 5e33884fafeb7882 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .exe Skipping link https://pypi.python.org/packages/2.7/n/netifaces/netifaces-0.10.3-cp27-none-win32.whl#md5=131b62392622 c64c2ae2c7ad0a2522f7 (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/2.7/n/netifaces/netifaces-0.10.3-py2.7-win32.egg#md5=aacaa28c603070e4 347630d76e5a5df9 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/2.7/n/netifaces/netifaces-0.10.3.win32-py2.7.exe#md5=78647c9bade6880b 99c7462a46648bc5 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .exe Skipping link https://pypi.python.org/packages/2.7/n/netifaces/netifaces-0.10.4-cp27-none-win32.whl#md5=ac3b5700ce8f e0448758cd32e6a23df9 (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python

    Found link https://pypi.python.org/packages/2.7/n/netifaces/netifaces-0.10.4-cp27-none-win_amd64.whl#md5=fa59bf55209
    

    0a106a0818c4390abbc77 (from https://pypi.python.org/simple/netifaces/), version: 0.10.4

    Skipping link https://pypi.python.org/packages/2.7/n/netifaces/netifaces-0.10.4-py2.7-win32.egg#md5=69c36401814f5f3c
    

    fd190ea203edc0be (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/2.7/n/netifaces/netifaces-0.10.4.win32-py2.7.exe#md5=5cddb5bb19389485 85d15f90f5e22b9d (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .exe Skipping link https://pypi.python.org/packages/3.3/n/netifaces/netifaces-0.10.1-cp33-none-win32.whl#md5=bc6f84a67ece 48d829f51e95afbf6fb7 (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/3.3/n/netifaces/netifaces-0.10.1-py3.3-win32.egg#md5=f10939775f4ec480 6e0d43582f090925 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/3.3/n/netifaces/netifaces-0.10.1.win32-py3.3.exe#md5=11b6f9f84eb42f53 d574dfd9f1326164 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .exe Skipping link https://pypi.python.org/packages/3.3/n/netifaces/netifaces-0.10.2-cp33-none-win32.whl#md5=8d7c654aa186 0ddd82c1fcba45504f19 (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/3.3/n/netifaces/netifaces-0.10.2-py3.3-win32.egg#md5=1a0b71b320246eae d195bd61c4dce4e1 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/3.3/n/netifaces/netifaces-0.10.2.win32-py3.3.exe#md5=d2738c8bf7401f86 0a813a9e20ab168d (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .exe Skipping link https://pypi.python.org/packages/3.3/n/netifaces/netifaces-0.10.3-cp33-none-win32.whl#md5=0e46cbfc3480 903e95c3b4ae8da1130f (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/3.3/n/netifaces/netifaces-0.10.3-py3.3-win32.egg#md5=95a1732bd403d7af b1ab02ca230cc40c (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/3.3/n/netifaces/netifaces-0.10.3.win32-py3.3.exe#md5=68f654fe15512642 a708e40f5dc0b5b0 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .exe Skipping link https://pypi.python.org/packages/3.3/n/netifaces/netifaces-0.10.4-cp33-none-win32.whl#md5=f4a0d94330bd 9368643dfbadd2cfeccd (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/3.3/n/netifaces/netifaces-0.10.4-cp33-none-win_amd64.whl#md5=a627c492 3b53a5bcc408130d99aeaf1d (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/3.3/n/netifaces/netifaces-0.10.4-py3.3-win32.egg#md5=1d04bd53a60e4c7c 8bdb857dc0716789 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/3.3/n/netifaces/netifaces-0.10.4.win32-py3.3.exe#md5=58b03cb0fef45382 a7085855aeb3cad6 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .exe Skipping link https://pypi.python.org/packages/3.4/n/netifaces/netifaces-0.10.0-py3.4-linux-x86_64.egg#md5=a0653891e 193ab87e33f6688c229e2e8 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/3.4/n/netifaces/netifaces-0.10.0-py3.4-macosx-10.6-intel.egg#md5=12fe 125c18eb1103efa1b5b24d8eafb6 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/3.4/n/netifaces/netifaces-0.10.0-py3.4-win32.egg#md5=1c96ff8e56893e2a 87292481c9a1e385 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/3.4/n/netifaces/netifaces-0.10.1-cp34-none-win32.whl#md5=0affb7fa40d1 90e1d250e0b5ef4ba032 (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/3.4/n/netifaces/netifaces-0.10.1-py3.4-win32.egg#md5=7ccc760d873a547d 967876e180094f31 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/3.4/n/netifaces/netifaces-0.10.1.win32-py3.4.exe#md5=c191ecd57dd0d5d4 79a7d5b3607bd889 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .exe Skipping link https://pypi.python.org/packages/3.4/n/netifaces/netifaces-0.10.2-cp34-none-win32.whl#md5=adaf9e1b49e1 53fa1a0da9ade883f674 (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/3.4/n/netifaces/netifaces-0.10.2-py3.4-win32.egg#md5=d2aa751f68d96c3f 81a1065527a7bccf (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/3.4/n/netifaces/netifaces-0.10.2.win32-py3.4.exe#md5=911b9bd3621b6bee e6c7547051ecdf6f (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .exe Skipping link https://pypi.python.org/packages/3.4/n/netifaces/netifaces-0.10.3-cp34-none-win32.whl#md5=1507d8639c97 31472fa5162a103e1fcf (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/3.4/n/netifaces/netifaces-0.10.3-py3.4-win32.egg#md5=dcc30c3564308115 b86046bb45659ccb (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/3.4/n/netifaces/netifaces-0.10.3.win32-py3.4.exe#md5=d62ab19a1cc07bfa fcfb1a9f7660231b (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .exe Skipping link https://pypi.python.org/packages/3.4/n/netifaces/netifaces-0.10.4-cp34-none-win32.whl#md5=e5da587a36cd 07326b9fcadb73b660b9 (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/3.4/n/netifaces/netifaces-0.10.4-cp34-none-win_amd64.whl#md5=f8a88f70 738fc774ed54b24d06d63805 (from https://pypi.python.org/simple/netifaces/); it is not compatible with this Python Skipping link https://pypi.python.org/packages/3.4/n/netifaces/netifaces-0.10.4-py3.4-win32.egg#md5=9c60c5490a9edd58 a723220a59aa8000 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .egg Skipping link https://pypi.python.org/packages/3.4/n/netifaces/netifaces-0.10.4.win32-py3.4.exe#md5=efb919134a5e9059 134fc449b1e7a631 (from https://pypi.python.org/simple/netifaces/); unsupported archive format: .exe

    Found link https://pypi.python.org/packages/source/n/netifaces/netifaces-0.10.0.tar.gz#md5=bbe634bd373b3f05df5f4ac23
    

    bc92a8f (from https://pypi.python.org/simple/netifaces/), version: 0.10.0 Found link https://pypi.python.org/packages/source/n/netifaces/netifaces-0.10.1.tar.gz#md5=4f92ca84e8cb1ce547998e721 2ac313d (from https://pypi.python.org/simple/netifaces/), version: 0.10.1 Found link https://pypi.python.org/packages/source/n/netifaces/netifaces-0.10.2.tar.gz#md5=acb11ba95d892519825e170d8 14ee296 (from https://pypi.python.org/simple/netifaces/), version: 0.10.2 Found link https://pypi.python.org/packages/source/n/netifaces/netifaces-0.10.3.tar.gz#md5=b96913473e1dcc3c4a7c43bc1 5d10e26 (from https://pypi.python.org/simple/netifaces/), version: 0.10.3 Found link https://pypi.python.org/packages/source/n/netifaces/netifaces-0.10.4.tar.gz#md5=36da76e2cfadd24cc7510c2c0 012eb1e (from https://pypi.python.org/simple/netifaces/), version: 0.10.4 Found link https://pypi.python.org/packages/source/n/netifaces/netifaces-0.8.tar.gz#md5=e57e5983f4c286fac5f8068fbfc5 c873 (from https://pypi.python.org/simple/netifaces/), version: 0.8

    Skipping link http://alastairs-place.net/projects/netifaces/netifaces-0.8.tar.gz#md5=e57e5983f4c286fac5f8068fbfc5c87
    

    3 (from https://pypi.python.org/simple/netifaces/); it is externally hosted Using version 0.10.4 (newest of versions: 0.10.4, 0.10.4, 0.10.3, 0.10.2, 0.10.1, 0.10.0, 0.8) "GET /packages/2.7/n/netifaces/netifaces-0.10.4-cp27-none-win_amd64.whl HTTP/1.1" 200 17375 Downloading netifaces-0.10.4-cp27-none-win_amd64.whl Downloading from URL https://pypi.python.org/packages/2.7/n/netifaces/netifaces-0.10.4-cp27-none-win_amd64.whl#md5=fa5 9bf552090a106a0818c4390abbc77 (from https://pypi.python.org/simple/netifaces/) Installing collected packages: netifaces

    Successfully installed netifaces-0.10.4 Cleaning up...

  7. Anthony Ng

    After some further experiment, I find that win32 version works but not amd64 version. Basically, I uninstall python 2.7.10 (amd64.msi) from my Windows Server 2012 R2. And then install python 2.7.10 win32 version. After that, reinstall netifaces. With that, all work!

  8. Log in to comment