ImportError: DLL load failed: %1 is not a valid Win32 application for _imaging module

RachJain

I am trying to extract features from an image using Grey Level Co-occurrence Matrix in Python 2.7.9 I found the code given below in some other answer. When I run this code I get:

ImportError: The _imaging C module is not installed.

Then I installed PIL module and when I try to import its _imaging package, it gives another piece of error:

ImportError: DLL load failed: %1 is not a valid Win32 application.

I have already researched a lot on the internet but no solution given really seems to work, like uninstalling PIL and installing PILLOW and checking the compatibility of the version of python and the modules.

import skimage.io
import skimage.feature

im = skimage.io.imread('python.jpg', as_grey=True)

im = skimage.img_as_ubyte(im)
im /= 32

g = skimage.feature.greycomatrix(im, [1], [0], levels=8, symmetric=False, normed=True)

print skimage.feature.greycoprops(g, 'contrast')[0][0]
print skimage.feature.greycoprops(g, 'energy')[0][0]
print skimage.feature.greycoprops(g, 'homogeneity')[0][0]
print skimage.feature.greycoprops(g, 'correlation')[0][0]
RachJain

The problem was solved by installing a 64 bit PILLOW module Pillow‑2.8.2‑cp34‑none‑win_amd64.whl from here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL's are there

From Dev

python cython ImportError: DLL load failed: %1 is not a valid Win32 application

From Dev

cx-freeze "ImportError: DLL load failed: %1 is not a valid Win32 application"

From Dev

DLL load failed: %1 is not a valid Win32 application - Appcelerator

From Dev

Python: DLL load failed: %1 is not a valid Win32 application

From Dev

DLL load failed - not a valid Win32 application - with NumPy

From Java

Solving "DLL load failed: %1 is not a valid Win32 application." for Pygame

From Dev

PHP load error: %1 is not a valid Win32 application.

From Dev

Node js, %1 is not a valid Win32 application, js-bson: failed to load c++ bson extension, windows

From Dev

Unable to load dynamic library php_sqlsrv_7_nts.dll is not a valid Win32 application

From Dev

Unable to load rJava.dll - not a valid Win32 application - while installing ReporteRsjars

From Dev

Error: %1 is not a valid Win32 application

From Dev

psexec %1 is not a valid Win32 application

From Java

JNI C++ DLL - 'UnsatisfiedLinkError: %1 is not a valid Win32 application'

From Dev

OSError: [WinError 193] %1 is not a valid Win32 application while reading custim DLL in python with CTypes

From Dev

Pycharm with Electron - runnerw.exe: CreateProcess failed with error 193: %1 is not a valid Win32 application

From Dev

import win32service, win32api, win32con, winerror ImportError: DLL load failed: The specified module could not be found

From Dev

Python ctypes DLL is "not a valid Win32 application"

From Java

Error loading DLL in python, not a valid win32 application

From Dev

The '_imaging' module for the PIL could not be imported: DLL load failed: The specified module could not be found

From Dev

ImportError: DLL load failed: The specified module could not be found for numpy

From Dev

pyodbc ImportError: DLL load failed: The specified module could > not be found

From Dev

Python: ImportError: DLL load failed: The specified module could not be found

From Java

ImportError: DLL load failed: The specified module could not be found

From Java

ImportError: DLL load failed: The specified module could not be found

From Dev

Pyjnius. ImportError: DLL load failed: The specified module was not found

From Dev

NLTK ImportError: DLL load failed: The specified module could not be found

From Dev

Scipy ImportError: DLL load failed: The specified module could not be found

From Dev

Pyinstaller ImportError: DLL load failed: The specified module could not be found

Related Related

  1. 1

    ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL's are there

  2. 2

    python cython ImportError: DLL load failed: %1 is not a valid Win32 application

  3. 3

    cx-freeze "ImportError: DLL load failed: %1 is not a valid Win32 application"

  4. 4

    DLL load failed: %1 is not a valid Win32 application - Appcelerator

  5. 5

    Python: DLL load failed: %1 is not a valid Win32 application

  6. 6

    DLL load failed - not a valid Win32 application - with NumPy

  7. 7

    Solving "DLL load failed: %1 is not a valid Win32 application." for Pygame

  8. 8

    PHP load error: %1 is not a valid Win32 application.

  9. 9

    Node js, %1 is not a valid Win32 application, js-bson: failed to load c++ bson extension, windows

  10. 10

    Unable to load dynamic library php_sqlsrv_7_nts.dll is not a valid Win32 application

  11. 11

    Unable to load rJava.dll - not a valid Win32 application - while installing ReporteRsjars

  12. 12

    Error: %1 is not a valid Win32 application

  13. 13

    psexec %1 is not a valid Win32 application

  14. 14

    JNI C++ DLL - 'UnsatisfiedLinkError: %1 is not a valid Win32 application'

  15. 15

    OSError: [WinError 193] %1 is not a valid Win32 application while reading custim DLL in python with CTypes

  16. 16

    Pycharm with Electron - runnerw.exe: CreateProcess failed with error 193: %1 is not a valid Win32 application

  17. 17

    import win32service, win32api, win32con, winerror ImportError: DLL load failed: The specified module could not be found

  18. 18

    Python ctypes DLL is "not a valid Win32 application"

  19. 19

    Error loading DLL in python, not a valid win32 application

  20. 20

    The '_imaging' module for the PIL could not be imported: DLL load failed: The specified module could not be found

  21. 21

    ImportError: DLL load failed: The specified module could not be found for numpy

  22. 22

    pyodbc ImportError: DLL load failed: The specified module could > not be found

  23. 23

    Python: ImportError: DLL load failed: The specified module could not be found

  24. 24

    ImportError: DLL load failed: The specified module could not be found

  25. 25

    ImportError: DLL load failed: The specified module could not be found

  26. 26

    Pyjnius. ImportError: DLL load failed: The specified module was not found

  27. 27

    NLTK ImportError: DLL load failed: The specified module could not be found

  28. 28

    Scipy ImportError: DLL load failed: The specified module could not be found

  29. 29

    Pyinstaller ImportError: DLL load failed: The specified module could not be found

HotTag

Archive