sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #18792
[Bug 845744] Re: SCREEN.capture is broken (__builtin__ is not defined)
I hit a similar error in the latest Sikuli version. It appears that
"import __builtin__" exists in sikuli-script.jar/Lib/sikuli/Screen.py
but is commented out. Un-commenting the import statement appears to fix
it.
Sikuli Version: Sikuli IDE 1.0.0 Win64
OS: Windows 7 x64
Java: Java 6 x86 JRE
Script Name: template
Code:
Line 4: screen1 = Screen(0)
Line 5: bounds = screen1.getBounds()
Line 6: screenShot = screen1.capture(bounds)
Complete Error Message:
Exception in thread "Thread-8" java.lang.IllegalStateException: No match found
at java.util.regex.Matcher.group(Unknown Source)
at org.sikuli.ide.SikuliIDE$ButtonRun.findErrorSourceWalkTrace(Unknown Source)
at org.sikuli.ide.SikuliIDE$ButtonRun.findErrorSource(Unknown Source)
at org.sikuli.ide.SikuliIDE$ButtonRun.access$1500(Unknown Source)
at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(Unknown Source)
[error] script [ template ] stopped with error in line 6
[error] NameError ( global name '__builtin__' is not defined )
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/845744
Title:
SCREEN.capture is broken (__builtin__ is not defined)
Status in Sikuli:
Fix Released
Bug description:
Sikuli versions: r872 and X 1.0rc2
OS: Ubuntu Natty i686
When running a script in IDE I'm getting:
[info] Sikuli vision engine loaded.
[info] VDictProxy loaded.
[error] Stopped
[error] An error occurs at line 7
[error] Error message:
Traceback (most recent call last):
File "/tmp/sikuli-tmp612365182765918075.py", line 7, in
shutil.move( SCREEN.capture( SCREEN.getBounds() ),
File "/home/chatul/sikuli/Sikuli-r872-linux-i686/Sikuli-IDE/sikuli-script.jar/Lib/sikuli/Screen.py", line 61, in capture
NameError: global name '__builtin__' is not defined
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/845744/+subscriptions
References