简体   繁体   English

从Python启动Sikuli返回错误

[英]Starting Sikuli from Python returns error

I want to run Sikuli for automating windows application using Python. 我想运行Sikuli以使用Python自动化Windows应用程序。 I am new to Sikuli. 我是Sikuli的新手。 Actually I have installed Sikuli by using pip install sikuli . 实际上我已经通过使用pip install sikuli And then I tried to import it in my Python file as given below: 然后,我尝试将其导入到我的Python文件中,如下所示:

from sikuli import *
print("Working")

but when i run it using 'python sikuliTest.py', I get the following error as given below: 但是当我使用“ python sikuliTest.py”运行它时,出现以下错误:

Traceback (most recent call last):
  File "sikuliTest.py", line 1, in <module>
    from sikuli import *
  File "c:\Python27\lib\site-packages\sikuli-0.1-py2.7-     win32.egg\sikuli\__init__
.py", line 1, in <module>
    from sikuli import *
  File "c:\Python27\lib\site-packages\sikuli-0.1-py2.7-     win32.egg\sikuli\sikuli.p
y", line 15, in <module>
    from jnius import autoclass
  File "d:\users\deepak-ra\appdata\local\temp\easy_install-4xytd2\jnius- 1.1.dev0
-py2.7-win32.egg.tmp\jnius\__init__.py", line 12, in <module>
  File "d:\users\deepak-ra\appdata\local\temp\easy_install-4xytd2\jnius-  1.1.dev0
-py2.7-win32.egg.tmp\jnius\jnius.py", line 7, in <module>
  File "d:\users\deepak-ra\appdata\local\temp\easy_install-4xytd2\jnius-1.1.dev0
-py2.7-win32.egg.tmp\jnius\jnius.py", line 6, in __bootstrap__
ImportError: DLL load failed: The specified module could not be found.

Am not sure whether I had installed it correctly or where I have done the mistake. 不知道我是否已正确安装它或在哪里做错了。 Please help me out with this. 这个你能帮我吗。

Sikuli is using Jython and cannot be run directly from Python. Sikuli正在使用Jython,不能直接从Python运行。 If you want to use Python syntax to create scripts using Sikuli start reading here . 如果要使用Python语法通过Sikuli创建脚本,请从这里开始阅读。 Have a look at section 3 "How do I set up SikuliX". 请参阅第3节“如何设置SikuliX”。

For any specific questions/issues use the Sikuli Launchpad . 对于任何特定问题/问题,请使用Sikuli Launchpad

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM