Hello, I installed scTM using pip, but I could not import it, it seems caused by unavailable of this website: http://www.immunesinglecell.org/api/vishuo/getToolkitUrl
here's part of my stderr:
File /usr/local/python3/python3.8.10/lib/python3.8/site-packages/discotoolkit/GlobalVariable.py:20
17 timeout = 600
19 # Define package-level variable
---> 20 response = requests.get("http://www.immunesinglecell.org/api/vishuo/getToolkitUrl")
22 if response.status_code == 200:
23 prefix_disco_url = json.loads(response.text)["url"]
File /usr/local/python3/python3.8.10/lib/python3.8/site-packages/requests/api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:Request object.
(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File /usr/local/python3/python3.8.10/lib/python3.8/site-packages/requests/api.py:59, in request(method, url, **kwargs)
55 # By using the 'with' statement we are sure the session is closed, thus we
56 # avoid leaving sockets open which can trigger a ResourceWarning in some
57 # cases, and look like a memory leak in others.
58 with sessions.Session() as session:
---> 59 return session.request(method=method, url=url, **kwargs)
File /usr/local/python3/python3.8.10/lib/python3.8/site-packages/requests/sessions.py:589, in Session.request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
584 send_kwargs = {
585 "timeout": timeout,
586 "allow_redirects": allow_redirects,
587 }
588 send_kwargs.update(settings)
--> 589 resp = self.send(prep, **send_kwargs)
591 return resp
File /usr/local/python3/python3.8.10/lib/python3.8/site-packages/requests/sessions.py:703, in Session.send(self, request, **kwargs)
700 start = preferred_clock()
702 # Send the request
--> 703 r = adapter.send(request, **kwargs)
705 # Total elapsed time of the request (approximately)
706 elapsed = preferred_clock() - start
File /usr/local/python3/python3.8.10/lib/python3.8/site-packages/requests/adapters.py:519, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
515 if isinstance(e.reason, _SSLError):
516 # This branch is for urllib3 v1.22 and later.
517 raise SSLError(e, request=request)
--> 519 raise ConnectionError(e, request=request)
521 except ClosedPoolError as e:
522 raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='www.immunesinglecell.org', port=80): Max retries exceeded with url: /api/vishuo/getToolkitUrl (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faff19912b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
I'm not sure if this is the reason, could you pls help me?
Hello, I installed scTM using pip, but I could not import it, it seems caused by unavailable of this website: http://www.immunesinglecell.org/api/vishuo/getToolkitUrl
here's part of my stderr:
File /usr/local/python3/python3.8.10/lib/python3.8/site-packages/discotoolkit/GlobalVariable.py:20
17 timeout = 600
19 # Define package-level variable
---> 20 response = requests.get("http://www.immunesinglecell.org/api/vishuo/getToolkitUrl")
22 if response.status_code == 200:
23 prefix_disco_url = json.loads(response.text)["url"]
File /usr/local/python3/python3.8.10/lib/python3.8/site-packages/requests/api.py:73, in get(url, params, **kwargs)
62 def get(url, params=None, **kwargs):
63 r"""Sends a GET request.
64
65 :param url: URL for the new :class:
Requestobject.(...)
70 :rtype: requests.Response
71 """
---> 73 return request("get", url, params=params, **kwargs)
File /usr/local/python3/python3.8.10/lib/python3.8/site-packages/requests/api.py:59, in request(method, url, **kwargs)
55 # By using the 'with' statement we are sure the session is closed, thus we
56 # avoid leaving sockets open which can trigger a ResourceWarning in some
57 # cases, and look like a memory leak in others.
58 with sessions.Session() as session:
---> 59 return session.request(method=method, url=url, **kwargs)
File /usr/local/python3/python3.8.10/lib/python3.8/site-packages/requests/sessions.py:589, in Session.request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
584 send_kwargs = {
585 "timeout": timeout,
586 "allow_redirects": allow_redirects,
587 }
588 send_kwargs.update(settings)
--> 589 resp = self.send(prep, **send_kwargs)
591 return resp
File /usr/local/python3/python3.8.10/lib/python3.8/site-packages/requests/sessions.py:703, in Session.send(self, request, **kwargs)
700 start = preferred_clock()
702 # Send the request
--> 703 r = adapter.send(request, **kwargs)
705 # Total elapsed time of the request (approximately)
706 elapsed = preferred_clock() - start
File /usr/local/python3/python3.8.10/lib/python3.8/site-packages/requests/adapters.py:519, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
515 if isinstance(e.reason, _SSLError):
516 # This branch is for urllib3 v1.22 and later.
517 raise SSLError(e, request=request)
--> 519 raise ConnectionError(e, request=request)
521 except ClosedPoolError as e:
522 raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='www.immunesinglecell.org', port=80): Max retries exceeded with url: /api/vishuo/getToolkitUrl (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7faff19912b0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
I'm not sure if this is the reason, could you pls help me?