← Back to team overview

sikuli-driver team mailing list archive

[Question #694791]: Novice in Sikulix and Jython

 

New question #694791 on Sikuli:
https://answers.launchpad.net/sikuli/+question/694791

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\Bj\xf8rnar\AppData\Roaming\Sikulix\Lib\sikuli\__init__.py", line 3, in <module>
    from Sikuli import *
  File "C:\Users\Bj\xf8rnar\AppData\Roaming\Sikulix\Lib\sikuli\Sikuli.py", line 3, in <module>
    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?


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