PyUserInput icon indicating copy to clipboard operation
PyUserInput copied to clipboard

ImportError:DLL load failed

Open Formartha opened this issue 7 years ago • 1 comments

Hi, We are using your package and for some reason it failed to work with raising the error listed bellow - care to assist?

ImportError while importing test module 'C:\automation_framework\new\playgr Hint: make sure your test modules/packages have valid Python names. Traceback: playground\dina\test_ui1.py:1: in from core_framework.selenium_interface import SeleniumInterface core_framework\selenium_interface.py:7: in from utilities.keyboard_util import KeyBoardUtil, k utilities\keyboard_util.py:1: in from pykeyboard import PyKeyboard C:\Python27\lib\site-packages\pykeyboard_init_.py:34: in from .windows import PyKeyboard, PyKeyboardEvent C:\Python27\lib\site-packages\pykeyboard\windows.py:17: in import win32api E ImportError: DLL load failed: The specified module could not be found.

Formartha avatar Feb 12 '18 14:02 Formartha

pip uninstall pywin32 pip uninstall pyhook

Install it from: https://github.com/mhammond/pywin32/releases

Now: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyhook

Download this pyHook for your operating system

Example in Python 2.7 with 64 bits:

pip install pyHook‑1.5.1‑cp27‑cp27m‑win_amd64.whl

ipsBruno avatar Feb 20 '18 12:02 ipsBruno