[Sikuli-driver] [Question #271407]: the Sikuli IDE cann't Import xlrd or xlwt module

2015-09-15 Thread can
New question #271407 on Sikuli:
https://answers.launchpad.net/sikuli/+question/271407

I tried it on this way(faq #2208).

When Sikuli IDE first starts, and then type "import xlrd/import xlwt" and run. 
It reports error lisk this.
~
[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.

[info] VDictProxy loaded.

[error] 被停止
[error] 第1行发生错误
[error] 错误信息: Traceback (most recent call last):
 File "C:\Users\kkk\AppData\Local\Temp\sikuli-tmp531252314093970137.py", line 
1, in 
 import xlrd
SyntaxError: ('no viable alternative at input \'"PK\\x03\\x04"\'', 
('D:\\Program Files\\Sikuli X\\Lib\\xlrd\\__init__.py', 397, 16, ' if peek == 
b"PK\\x03\\x04": # a ZIP file\n'))
~

~
[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.

[info] VDictProxy loaded.

[error] 被停止
[error] 第1行发生错误
[error] 错误信息: Traceback (most recent call last):
 File "C:\Users\kkk\AppData\Local\Temp\sikuli-tmp7169738656168094645.py", line 
1, in 
 import xlwt
SyntaxError: ("'import *' not allowed with 'from .'", ('D:\\Program 
Files\\Sikuli X\\Lib\\xlwt\\__init__.py', 9, 0, ''))
~

But run again, Sikuli IDE doesn't report error.It works well.

Here are the versions I tried:
Sikuli 1.0rc3(930)
windows 7 64bit
xlrd-0.7.9
xlwt-1.0.0


I downloaded the Sikuli-1.1.0-20150914.231031-164 and tried to import xlwt or 
xlrd module, but has failed to import.

~
[error] script [ 1232 ] stopped with error in line 1
[error] SyntaxError ( ('no viable alternative at input \'"PK\\x03\\x04"\'', 
('D:\\Program Files\\Sikuli_1.1.0\\sikulix.jar\\Lib\\xlrd\\__init__.py', 397, 
16, ' if peek == b"PK\\x03\\x04": # a ZIP file\n')) )
~

Any idea where I did wrong? Thanks!


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #271407]: the Sikuli IDE cann't Import xlrd or xlwt module

2015-09-15 Thread RaiMan
Question #271407 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271407

Status: Open => Answered

RaiMan proposed the following answer:
switch to version 1.1.0 (http://sikulix.com)

... it has xldd and xlwt bundled already

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp