SavinaRoja / PyUserInput

A module for cross-platform control of the mouse and keyboard in python that is simple to install and use.
GNU General Public License v3.0
1.07k stars 244 forks source link

ImportError:DLL load failed #106

Open Formartha opened 6 years ago

Formartha commented 6 years ago

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.

ipsBruno commented 6 years ago

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