← Back to team overview

sikuli-driver team mailing list archive

[Bug 1665372] [NEW] Similar error

 

Public bug reported:

1.1.1(2015-11-26_01:00nightly)/Mac10.12.3/Java8(64)1.8.0_25-b17


trying to use similar i pattern matching and failed
So I did a search and found an example which I changed to include an image on screen :
( example - http://doc.sikuli.org/match.html )

the Example with my image in : -

m = find("1487256669914.png".similar(0.5).targetOffset(100,0))
print m # message area: Match[10,0 30x22] score=1.00, target=(105,11)

Result
[error] script [ Crap ] stopped with error in line 13
[error] AttributeError ( 'str' object has no attribute 'similar' )


This the same error message that I am getting from my exists test
    if exists("1487245533829.png".similar(0.95)):    
[error] ...... stopped with error in line 289
[error] AttributeError ( 'str' object has no attribute 'similar' )

** Affects: sikuli
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1665372

Title:
  Similar error

Status in Sikuli:
  New

Bug description:
  1.1.1(2015-11-26_01:00nightly)/Mac10.12.3/Java8(64)1.8.0_25-b17

  
  trying to use similar i pattern matching and failed
  So I did a search and found an example which I changed to include an image on screen :
  ( example - http://doc.sikuli.org/match.html )

  the Example with my image in : -

  m = find("1487256669914.png".similar(0.5).targetOffset(100,0))
  print m # message area: Match[10,0 30x22] score=1.00, target=(105,11)

  Result
  [error] script [ Crap ] stopped with error in line 13
  [error] AttributeError ( 'str' object has no attribute 'similar' )

  
  This the same error message that I am getting from my exists test
      if exists("1487245533829.png".similar(0.95)):    
  [error] ...... stopped with error in line 289
  [error] AttributeError ( 'str' object has no attribute 'similar' )

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1665372/+subscriptions


Follow ups