error while importing module

Started by
1 comment, last by koka282 9 years, 4 months ago

hi all smile.png

i have little problem here smile.png


import pyHook , pythoncom ,sys , logging

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import pyHook , pythoncom ,sys , logging
  File "C:\Python27\lib\site-packages\pythoncom.py", line 2, in <module>
    import pywintypes
  File "C:\Python27\lib\site-packages\win32\lib\pywintypes.py", line 124, in <module>
    __import_pywin32_system_module__("pywintypes", globals())
  File "C:\Python27\lib\site-packages\win32\lib\pywintypes.py", line 64, in __import_pywin32_system_module__
    import _win32sysloader
ImportError: DLL load failed: %1 is not a valid Win32 application.

Thanks :)

Advertisement

This happens when you have an incompatible version of a package. Usually 32-bit vs 64-bit.

Google says the same.

When you get an error first thing you should do is search it.

i searched before and i saw some typed this for 64 bit then i got this error ! :)

Thanks :)

This topic is closed to new replies.

Advertisement