← Back to team overview

sikuli-driver team mailing list archive

[Question #677297]: ClassCastException: class org.python.core.PyObjectDerived cannot be cast to class org.python.core.PyString

 

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

Hi,

I am between upgrades from 1.1.0 to 1.1.4 were I treated the screenshots as following:

ci = Screen(0).capture(Screen(0).getBounds())
with open(ci, 'rb') as file:
    encoded_string = base64.b64encode(file.read())

However, now getting the following error when doing this cast:

ClassCastException: java.lang.ClassCastException: class org.python.core.PyObjectDerived cannot be cast to class org.python.core.PyString (org.python.core.PyObjectDerived and org.python.core.PyString are in unnamed module of loader 'app')


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