← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #663046]: importing twilio in sikuliX

 

Question #663046 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/663046

    Status: Open => Answered

TestMechanic proposed the following answer:
You should be aware that Sikuli uses jython not python

I would suggest 2 possible approaches:

1. Write a simple command line python tool that uses twilio in the way
you need and then to drive it via Sikuli system commands

2. You may try to use twilio lib directly 
  - open Sikuli IDE and create empty sikuli script twilio_test.sikuli - a .py file will appear inside this directory .
  - on the top line type 'import twilio'
  - download tgz file form https://pypi.python.org/pypi/twilio and unpack it in some temp folder
  - from within twilio-6.10.0 folder copy twilio folder inside twilio_test.sikuli folder so you will end up with structure like this

twilio_test.sikuli 
   twilio_test.py 
   twilio 

Now twilio_test.sikuli script will compile ok from within SikuliIDE. But
you need to go and test if this will work for you

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