Skip to content
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

pdp download quits unexpectedly #4

Open
sotashinokomata42 opened this issue Jun 18, 2023 · 3 comments
Open

pdp download quits unexpectedly #4

sotashinokomata42 opened this issue Jun 18, 2023 · 3 comments

Comments

@sotashinokomata42
Copy link

$ 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.

@charlieyou
Copy link

I am also seeing this issue.

@dnanar
Copy link

dnanar commented Aug 4, 2023

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

@tadhglooram
Copy link

workaround worked me, thank you!

hiasr added a commit to hiasr/paradigm-data-portal that referenced this issue Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants