← Back to team overview

sikuli-driver team mailing list archive

[Bug 845744] Re: SCREEN.capture is broken (__builtin__ is not defined)

 

Confirmed, but the solution should be different.

This again shows, that there is a problem with the class names between
the Python and the Java level.

Thanks for pointing out.

in your case 
screenShot = capture(screen1)

or even
screenShot = capture(SCREEN)

would have worked without problems, since SCREEN is the "constant"
object Screen(0), that is used, when you use function undotted.

** Changed in: sikuli
       Status: Fix Released => Confirmed

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: x1.0-rc3 => 1.1.0

** Summary changed:

- SCREEN.capture is broken (__builtin__ is not defined)
+ [1.0] SCREEN.capture() is broken (__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:
  [1.0] SCREEN.capture() is broken (__builtin__ is not defined)

Status in Sikuli:
  Confirmed

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