Using external python module using json
Hello,
I want to use an external python module that uses json internally.
I took a look at this post "https:/
I understand that json isn't part of Jython, and that I can workaround this using simplejson.
I downloaded and integrated simplejson in the Lib folder, inside my Sikuli installation.
I realised after that simplejson seems to be already part of Sikuli 1.0.1 and that Jython version :)
So, back to my json problem... when I import my external module and uses the function from this module, I always get :
[error] NameError ( global name 'json' is not defined )
I tried things like : import simplejson as json
But I can't find a way to make my script work. I always come back to this error :(
Here's an example of a non-working code, written directly in my Sikuli script:
client = APIClient(
client.user = 'some_user'
client.password = 'some_password'
result = client.
The module is using a APIClient class internally... is this conflicting with an APIClient class already existing in Jython? Is is the same class?
I'm afraid I might have to adapt this external module... (I'll do it if I have no choice)
I'm a bit loss trying to get this external module to work in Sikuli :(
Thanks for the help.
Michael
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- MicMarcil
- Solved:
- Last query:
- Last reply: