Import httplib failing with "cannot import name BlockingIOError"

Asked by TestMechanic

note: this is working fine with Sikuli 1.2 and 1.3

Steps to reproduce:

-- Use latest 1.4 sikuli
-- java 1.8, jython 2.7.1
-- windows 10
-- open IDE
-- type one line "import httplib"
-- save and run

Error appear:
[error] script [ temp1 ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File "C:\work\temp1.sikuli\temp1.py", line 2, in <module> import httplib File "C:\Users\tester\AppData\Roaming\Sikulix\Lib\httplib.py", line 79, in <module> import mimetools File "C:\Users\tester\AppData\Roaming\Sikulix\Lib\mimetools.py", line 6, in <module> import tempfile File "C:\Users\tester\AppData\Roaming\Sikulix\Lib\tempfile.py", line 32, in <module> import io as _io File "C:\Users\tester\AppData\Roaming\Sikulix\Lib\io.py", line 70, in <module> from _jyio import (DEFAULT_BUFFER_SIZE, BlockingIOError, UnsupportedOperation, ImportError: cannot import name BlockingIOError

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
TestMechanic
Solved:
Last query:
Last reply:
Revision history for this message
TestMechanic (ndinev) said :
#1

Can we log this like bug?

Revision history for this message
RaiMan (raimund-hocke) said :
#2

Just tested on my Win 10: works.

delete this folder (seems to be old stuff):
C:\Users\tester\AppData\Roaming\Sikulix\Lib

and try again

Revision history for this message
TestMechanic (ndinev) said :
#3

Thanks that fixed the problem!

Revision history for this message
TestMechanic (ndinev) said :
#4

Just for MAC reference: You need to delete
~/Library/Application Support/Sikuli/Lib