GO Browser should work when computer is offline. It should use the local and previously loaded information files, or, if these are not available for given organism, the widget should issue an error.
The widget crashes when computer is offline.
Exception: | requests.exceptions.ConnectionError: HTTPConnectionPool(host='orange.biolab.si', port=80): Max retries exceeded with url: /serverfiles-bio2/__INFO__ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x1881d3860>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',))
-- | --
Module: | requests.adapters:513
Widget Name: | GO Browser
Widget Module: | orangecontrib.bioinformatics.widgets.OWGOBrowser:326
Widget Scheme: | /var/folders/xs/sz7rs6w902g8gvtvhyt68w640000gn/T/ows-xlkov6mh.ows.xml
Version: | 3.16.0
Environment: | Python 3.6.1 on Darwin 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64
Installed Packages: | AnyQt==0.0.8, Bottleneck==1.2.0, CommonMark==0.7.3, Genesis-PyAPI==1.2.1, Orange3-Bioinformatics==3.2.0, Orange3-SingleCell==0.8.1, Orange3==3.16.0, PyQt5==5.9, astropy==3.0.4, certifi==2018.8.24, chardet==3.0.4, cycler==0.10.0, decorator==4.3.0, dill==0.2.6, docutils==0.13.1, fastdtw==0.3.2, future==0.16.0, h5py==2.8.0, idna==2.7, joblib==0.11, keyring==10.3.1, keyrings.alt==2.2, kiwisolver==1.0.1, loompy==2.0.12, matplotlib==3.0.0, networkx==2.1, numpy==1.12.1, pandas==0.23.4, pip==9.0.1, pyparsing==2.2.1, pyqtgraph==0.10.0, python-dateutil==2.7.3, python-louvain==0.11, pytz==2018.5, requests-cache==0.4.13, requests==2.19.1, scikit-learn==0.18.2, scipy==0.19.1, serverfiles==0.2.1, setuptools==40.4.1, sip==4.19.3, six==1.10.0, slumber==0.7.1, typing==3.6.6, urllib3==1.23, wheel==0.31.1, xlrd==1.0.0
Machine ID: | 154505275726980
Stack Trace: | Traceback (most recent call last): File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connection.py", line 171, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw) File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/connection.py", line 56, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socket.py", line 743, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags):socket.gaierror: [Errno 8] nodename nor servname provided, or not knownDuring handling of the above exception, another exception occurred:Traceback (most recent call last): File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen chunked=chunked) File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 354, in _make_request conn.request(method, url, **httplib_request_kw) File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1239, in request self._send_request(method, url, body, headers, encode_chunked) File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1285, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1234, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1026, in _send_output self.send(msg) File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 964, in send self.connect() File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connection.py", line 196, in connect conn = self._new_conn() File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connection.py", line 180, in _new_conn self, "Failed to establish a new connection: %s" % e)urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x1881d3860>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not knownDuring handling of the above exception, another exception occurred:Traceback (most recent call last): File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 445, in send timeout=timeout File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 667, in urlopen **response_kw) File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 667, in urlopen **response_kw) File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 638, in urlopen _stacktrace=sys.exc_info()[2]) File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/retry.py", line 398, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause))urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='orange.biolab.si', port=80): Max retries exceeded with url: /serverfiles-bio2/__INFO__ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x1881d3860>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',))During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/Orange/canvas/scheme/widgetsscheme.py", line 573, in create_widget_instance widget.__init__() File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/orangecontrib/bioinformatics/widgets/OWGOBrowser.py", line 326, in __init__ for _, annotation_file in set(serverfiles.ServerFiles().listfiles(DOMAIN) + serverfiles.listfiles(DOMAIN)) File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/serverfiles/__init__.py", line 188, in listfiles self._download_server_info() File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/serverfiles/__init__.py", line 179, in _download_server_info t = self._open("__INFO__") File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/serverfiles/__init__.py", line 294, in _open return self._server_request(self.server, *args) File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/serverfiles/__init__.py", line 291, in _server_request return self.req.get(root+"/".join(path), auth=auth, verify=False, timeout=TIMEOUT, stream=True) File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 525, in get return self.request('GET', url, **kwargs) File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 512, in request resp = self.send(prep, **send_kwargs) File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 622, in send r = adapter.send(request, **kwargs) File "/Applications/scOrange.app/Contents/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 513, in send raise ConnectionError(e, request=request)requests.exceptions.ConnectionError: HTTPConnectionPool(host='orange.biolab.si', port=80): Max retries exceeded with url: /serverfiles-bio2/__INFO__ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x1881d3860>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',))
Local Variables: | OrderedDict([('cert', None), ('chunked', False), ('conn', <urllib3.connectionpool.HTTPConnectionPool object at 0x1881c8320>), ('proxies', OrderedDict()), ('request', <PreparedRequest [GET]>), ('self', <requests.adapters.HTTPAdapter object at 0x1881c8390>), ('stream', True), ('timeout', <urllib3.util.timeout.Timeout object at 0x1881c81d0>), ('url', '/serverfiles-bio2/__INFO__'), ('verify', False)])