← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #189637]: exception when "import urllib2"

 

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

RaiMan proposed the following answer:
No, Sikuli uses Jython, which is built in and is version 2.5.2 (which is the Python language level 2.5) with the latest version of Sikuli.
Sikuli only uses Python language, which in turn is interpreted by the Java based Jython.

The relevant doc for urllib:
http://www.jython.org/docs/library/urllib.html

If the features of url lib are sufficient for you, just use it.

If you really need the features of urlib2
(http://www.jython.org/docs/library/urllib2.html) and you have to run
your script from command line, since a rerun in the IDE seems to have a
problem with the import of urllib2.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.