paradigmxyz/paradigm-data-portal

pdp download quits unexpectedly

Opened this issue · 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.

I am also seeing this issue.

dnanar commented

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)
>

workaround worked me, thank you!