paradigm-data-portal icon indicating copy to clipboard operation
paradigm-data-portal copied to clipboard

pdp download quits unexpectedly

Open sotashinokomata42 opened this issue 1 year ago • 3 comments

$ pdp download ethereum_contracts  
Downloading dataset: ethereum_contracts
downloading 2 files

using output_dir /Users/sotashi/Downloads/pdp

downloading https://datasets.paradigm.xyz/datasets/ethereum_contracts/README.md
2

The process exits immediately with this "2" written to stdout, with exit code 1. Tried with other datasets and got the same result.

sotashinokomata42 avatar Jun 18 '23 04:06 sotashinokomata42

I am also seeing this issue.

charlieyou avatar Jun 20 '23 19:06 charlieyou

I don't have time to open an MR but fixed it with the following diff in file_utils.py:

56c56,60
<     os.makedirs(os.path.dirname(output_path), exist_ok=True)
---
> 
>     dirname=os.path.dirname(output_path)
>     if dirname != '':
>         os.makedirs(dirname, exist_ok=True)
>

dnanar avatar Aug 04 '23 03:08 dnanar

workaround worked me, thank you!

tadhglooram avatar Sep 15 '23 17:09 tadhglooram