Novice in Sikulix and Jython
I just downloaded Sikulix 2.0.4 and Jython 2.7.1 and installed them.
I tried a script with this:
--
discount = 0
amount = input("Enter Amount")
if amount>1000:
discount = amount*0.10
elif amount>500:
discount = amount*0.05
else:
discount = 0
print 'Discount = ',discount
print 'Net amount = ',amount-discount
--
Only an error occurs when run:
---
Exception in thread "Thread-39" Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\
from Sikuli import *
File "C:\Users\
from __future__ import with_statement
ImportError: No module named __future__
---
Is the problem here? My name is Bjørnar (with a norwegian letter ø )
This seems to be translated til \xf8
How do I check that my installation is OK?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Sikuli Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- masuo
- Solved:
- 2021-01-10
- Last query:
- 2021-01-10
- Last reply:
- 2021-01-05
Bjørnar Hallset (tiooso) said : | #1 |
Version: 2.0.4-2020-
|
#2 |
I think the cause of the error is the user name you are using.
Try following steps.
(1)Create new user whose name do not contain non-ASCII characters.
(2)Sign in with your new username.
(3)Setup SikuliX and run script.
Bjørnar Hallset (tiooso) said : | #3 |
Thanks masuo, that solved my question.