`urllib3.exceptions.IncompleteRead: IncompleteRead` when downloading dataset
#17
by
tylerjthomas9
- opened
I get the following error whenever I tried to load the dataset via datasets
:
IncompleteRead Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/urllib3/response.py in _error_catcher(self)
709 try:
--> 710 yield
711
26 frames
IncompleteRead: IncompleteRead(17694720 bytes read, 546735452 more expected)
The above exception was the direct cause of the following exception:
ProtocolError Traceback (most recent call last)
ProtocolError: ('Connection broken: IncompleteRead(17694720 bytes read, 546735452 more expected)', IncompleteRead(17694720 bytes read, 546735452 more expected))
During handling of the above exception, another exception occurred:
ChunkedEncodingError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/requests/models.py in generate()
820 yield from self.raw.stream(chunk_size, decode_content=True)
821 except ProtocolError as e:
--> 822 raise ChunkedEncodingError(e)
823 except DecodeError as e:
824 raise ContentDecodingError(e)
ChunkedEncodingError: ('Connection broken: IncompleteRead(17694720 bytes read, 546735452 more expected)', IncompleteRead(17694720 bytes read, 546735452 more expected))
Here is my code to replicate the error in google colab:
!pip install datasets==2.20.0
from datasets import load_dataset
ds = load_dataset("pmc/open_access", trust_remote_code=True)