import rpa as r
r.init()
r.url('https://ca.yahoo.com')
r.type('search-box', 'github')
search_text = r.read('search-box')
print(search_text)
r.click('search-button')
r.wait(6.6)
r.snap('page', 'results.png')
r.snap('logo', 'logo.png')
r.url('https://duckduckgo.com')
r.type('search_form_input_homepage', 'The search engine that doesn't track you.')
r.snap('page', 'duckduckgo.png')
r.wait(4.4)
r.close()
THIS IS SAMPLE CODE FROM RPA library but on got some error like this

What can i fix this case?? because i declare init() before using url()
import rpa as r
r.init()
r.url('https://ca.yahoo.com')
r.type('search-box', 'github')
search_text = r.read('search-box')
print(search_text)
r.click('search-button')
r.wait(6.6)
r.snap('page', 'results.png')
r.snap('logo', 'logo.png')
r.url('https://duckduckgo.com')
r.type('search_form_input_homepage', 'The search engine that doesn't track you.')
r.snap('page', 'duckduckgo.png')
r.wait(4.4)
r.close()
THIS IS SAMPLE CODE FROM RPA library but on got some error like this

What can i fix this case?? because i declare init() before using url()