-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"AttributeError: __enter__" #190
Comments
Hi @sunnaa0423 |
I am having the same error with v5.0.2. Any help will be very much appreciated!
|
Hi @CsabaHalmagyi |
Hi @sunnaa0423 |
The original version I used was 3.4.1, which I encountered an md5 mismatch during the download process.
Then I tried the 4.0.5 version according to your suggestion.The following problems were encountered:
####################################
[2023-02-13 21:35:24 +0800]
[2023-02-13 21:35:24 +0800] pyEGA3 - EGA python client version 4.0.5 (https://github.com/EGA-archive/ega-download-client)
[2023-02-13 21:35:24 +0800] Parts of this software are derived from pyEGA (https://github.com/blachlylab/pyega) by James Blachly
[2023-02-13 21:35:24 +0800] Python version : 3.10.9
[2023-02-13 21:35:24 +0800] OS version : Linux #1 SMP Thu Nov 8 23:39:32 UTC 2018
[2023-02-13 21:35:25 +0800] Server URL: https://ega.ebi.ac.uk:8052/elixir/data
[2023-02-13 21:35:25 +0800] Session-Id: 3372878956
[2023-02-13 21:35:27 +0800]
[2023-02-13 21:35:27 +0800] Authentication success for user '[email protected]'
[2023-02-13 21:36:18 +0800] File Id: 'EGAF00002027575'(8005749946 bytes).
[2023-02-13 21:36:18 +0800] Total space : 1056510.90 GiB
[2023-02-13 21:36:18 +0800] Used space : 421053.17 GiB
[2023-02-13 21:36:18 +0800] Free space : 582183.98 GiB
[2023-02-13 21:36:18 +0800] Download starting [using 1 connection(s), file size 8005749930 and chunk length 104857600]...
Status: 429 Problem with the request.
#########################################
Then it was updated to the latest version, 3.5.0, and there were new issues
#########################################
Status: 429 Problem with the request.
0%| | 0.00/8.01G [01:02<?, ?B/s]
[2023-02-13 21:35:07 +0800] enter
Traceback (most recent call last):
File "/xxx/.conda/envs/EBI/lib/python3.6/site-packages/pyega3/libs/data_file.py", line 326, in download_file_retry
self.download_file(output_file, num_connections, max_slice_size)
File "/xxx/.conda/envs/EBI/lib/python3.6/site-packages/pyega3/libs/data_file.py", line 159, in download_file
for part_file_name in executor.map(self.download_file_slice_, params):
File "/xxx/.conda/envs/EBI/lib/python3.6/concurrent/futures/_base.py", line 556, in result_iterator
yield future.result()
File "/xxx/.conda/envs/EBI/lib/python3.6/concurrent/futures/_base.py", line 405, in result
return self.__get_result()
File "/xxx/.conda/envs/EBI/lib/python3.6/concurrent/futures/_base.py", line 357, in __get_result
raise self.exception
File "/xxx/.conda/envs/EBI/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/xxx/.conda/envs/EBI/lib/python3.6/site-packages/pyega3/libs/data_file.py", line 189, in download_file_slice
return self.download_file_slice(*args)
File "/xxx/.conda/envs/EBI/lib/python3.6/site-packages/pyega3/libs/data_file.py", line 224, in download_file_slice
with self.data_client.get_stream(path, extra_headers) as r:
File "/xxx/.conda/envs/EBI/lib/python3.6/contextlib.py", line 82, in enter
return next(self.gen)
File "/xxx/.conda/envs/EBI/lib/python3.6/site-packages/pyega3/libs/data_client.py", line 76, in get_stream
with self.session.get(url, headers=headers, stream=True, timeout=request_timeout_in_sec) as r:
AttributeError: enter
#####################################
what should I do ? Can you help me with that? I have successfully downloaded almost half of the dataset.
The text was updated successfully, but these errors were encountered: