Question #699200 on SikuliX changed: https://answers.launchpad.net/sikuli/+question/699200
Summary changed to: [2.0.5] IDE: second scripture in same session: urllib.urlopen() crashes --- workaround Description changed to: -------------------- workaround add the following snippet to your script, so that it is run before any usage of urllib import _socket if _socket.NIO_GROUP.isShutdown(): _socket.NIO_GROUP = _socket.NioEventLoopGroup(2, _socket.DaemonThreadFactory("PyScan-Netty-Client-%s")) sys.registerCloser(_socket._shutdown_threadpool) The workaround is taken from https://docs.roguewave.com/en/klocwork/2018/javautilconcurrentrejectedexecutionexception Thanks @ Chetan (comment #1) ------------------------------------------------------------------------------------------------- Hi! I have a problem with SIKULIX IDE 2.0.5. Im trying to make a get request to a webservice. I've already tried the urllib and urllib2 python libs to accomplish this and the IDE is returning me this error: [error] java.util.concurrent.RejectedExecutionException ( java.util.concurrent.RejectedExecutionException: event executor terminated ) I dont know what to do, should i try a java lib instead? heres a example code to accomplish this: import urllib f = urllib.urlopen("http://www.testapi.com") print(f.read()) -- You received this question notification because your team Sikuli Drivers is an answer contact for SikuliX. _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp