KarchinLab / open-cravat

A modular annotation tool for genomic variants
MIT License
110 stars 27 forks source link

trouble to install system module #197

Closed bingfang closed 4 months ago

bingfang commented 7 months ago

After using openCravat for a few years, it broke, I tried uninstalled and reinstall with pip. Following the instruction. I tried to install missing system module and got the following error message. I tried 2.29 and 2.4.2 versions.

OpenCRAVAT is served at localhost:8080 (To quit: Press Ctrl-C or Ctrl-Break if run on a Terminal or Windows, or click "Cancel" and then "Quit" if run through OpenCRAVAT app on Mac OS) Traceback (most recent call last): File "/Users/xubr/anaconda3/lib/python3.11/site-packages/urllib3/connectionpool.py", line 715, in urlopen httplib_response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/Users/xubr/anaconda3/lib/python3.11/site-packages/urllib3/connectionpool.py", line 404, in _make_request self._validate_conn(conn) File "/Users/xubr/anaconda3/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1058, in _validate_conn conn.connect() File "/Users/xubr/anaconda3/lib/python3.11/site-packages/urllib3/connection.py", line 419, in connect self.sock = ssl_wrapsocket( ^^^^^^^^^^^^^^^^ File "/Users/xubr/anaconda3/lib/python3.11/site-packages/urllib3/util/ssl.py", line 449, in ssl_wrap_socket ssl_sock = _ssl_wrap_socketimpl( ^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xubr/anaconda3/lib/python3.11/site-packages/urllib3/util/ssl.py", line 493, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock, server_hostname=server_hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xubr/anaconda3/lib/python3.11/ssl.py", line 517, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xubr/anaconda3/lib/python3.11/ssl.py", line 1108, in _create self.do_handshake() File "/Users/xubr/anaconda3/lib/python3.11/ssl.py", line 1379, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1006)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/xubr/anaconda3/lib/python3.11/site-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "/Users/xubr/anaconda3/lib/python3.11/site-packages/urllib3/connectionpool.py", line 799, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/Users/xubr/anaconda3/lib/python3.11/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='store.opencravat.org', port=443): Max retries exceeded with url: /manifest-2.4.2.yml (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1006)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/xubr/anaconda3/lib/python3.11/site-packages/cravat/webstore/webstore.py", line 108, in get_remote_manifest content['data'] = au.get_remote_manifest() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xubr/anaconda3/lib/python3.11/site-packages/cravat/admin_util.py", line 837, in get_remote_manifest mic.update_remote() File "/Users/xubr/anaconda3/lib/python3.11/site-packages/cravat/admin_util.py", line 281, in update_remote manifest_str = su.get_file_to_string(self._remote_url) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xubr/anaconda3/lib/python3.11/site-packages/cravat/store_utils.py", line 196, in get_file_to_string r = requests.get(url, timeout=(3, None)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xubr/anaconda3/lib/python3.11/site-packages/requests/api.py", line 73, in get return request("get", url, params=params, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xubr/anaconda3/lib/python3.11/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xubr/anaconda3/lib/python3.11/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xubr/anaconda3/lib/python3.11/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/xubr/anaconda3/lib/python3.11/site-packages/requests/adapters.py", line 517, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='store.opencravat.org', port=443): Max retries exceeded with url: /manifest-2.4.2.yml (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1006)')))

bingfang commented 7 months ago

The installation didn't work when I used the NCI network. But when I installed the system module in a net work without proxy server, it worked.

kmoad commented 7 months ago

We'll have to look into if it's possible to download modules with an http proxy. It may not be, but I'll leave this issue open for now.

kmoad commented 4 months ago

Closing the issue pending more requests for HTTP proxy support.