The urllib service doesnot work anymore.
In later version works.

Sample code:

import urllib, urllib2, re, time
www_tekst =

I get this now:

------Traceback (most recent call last):  File string, line 2, in module  File C:\Myrobotlab\myrobotlab\myrobotlab.jar\Lib\, line 86, in urlopen  File C:\Myrobotlab\myrobotlab\myrobotlab.jar\Lib\, line 207, in open  File C:\Myrobotlab\myrobotlab\myrobotlab.jar\Lib\, line 344, in open_http  File C:\Myrobotlab\myrobotlab\myrobotlab.jar\Lib\, line 997, in endheaders  File C:\Myrobotlab\myrobotlab\myrobotlab.jar\Lib\, line 850, in _send_output  File C:\Myrobotlab\myrobotlab\myrobotlab.jar\Lib\, line 812, in send  File C:\Myrobotlab\myrobotlab\myrobotlab.jar\Lib\, line 792, in connect  File C:\Myrobotlab\myrobotlab\myrobotlab.jar\Lib\, line 1505, in create_connectionIOError: [Errno socket error] error(-1, uUnmapped exception: java.util.concurrent.RejectedExecutionException: event executor terminated) at org.python.core.PyException.doRaise( at org.python.core.Py.makeException( at urllib$$14(C:\Myrobotlab\myrobotlab\myrobotlab.jar\Lib\ at urllib$py.call_function(C:\Myrobotlab\myrobotlab\myrobotlab.jar\Lib\ at at at at org.python.core.PyFunction.__call__( at org.python.core.PyMethod.__call__( at urllib$py.urlopen$3(C:\Myrobotlab\myrobotlab\myrobotlab.jar\Lib\ at urllib$py.call_function(C:\Myrobotlab\myrobotlab\myrobotlab.jar\Lib\ at at at at org.python.core.PyFunction.__call__( at org.python.pycode._pyx74.f$0(string:3) at org.python.pycode._pyx74.call_function(string) at at at org.python.core.Py.runCode( at org.python.core.Py.exec( at org.python.util.PythonInterpreter.exec( at org.myrobotlab.service.Python$



5 years 11 months ago

The root cause is the site you are visiting - 

www = urllib.urlopen('')

This redirects to a https site - and my system is not happy with it either ...

General SSLEngine problem ( General SSLEngine problem

Could possibly have to do with the root CA is not trusted (on my machine at least)

For example, if I go to a non HTTPS site it appears to work fine...  There is probably a HTTP weather site out there somewhere.


5 years 11 months ago

You are right, the http: works, https not work. This might be the problem. Leter version of the site I'm working with is http , now its https. Ok, I must look for http site. Thank You.