Import httplib failing with "cannot import name BlockingIOError"

Asked by TestMechanic on 2019-01-03

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
TestMechanic
Solved:
2019-01-10
Last query:
2019-01-10
Last reply:
2019-01-09
TestMechanic (ndinev) said : #1

Can we log this like bug?

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

TestMechanic (ndinev) said : #3

Thanks that fixed the problem!