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

load_dataset: error "No schema supplied", maybe missing --id ? #17

Open
MatthieuStigler opened this issue Aug 15, 2024 · 1 comment
Open

Comments

@MatthieuStigler
Copy link

Hi

Thank you for making all the code so readily accessible!!

I tried the basic example from galaxy, and ran into the error message:

Invalid URL '1pDLQesPhbH5fSZW1m4aWC-wnJWnp1rGV': No schema supplied

I wonder whether when you call gdown, you should not add the --id argument first? With my version of gdown at least (4.3.1 on Ubuntu), gdown 1pDLQesPhbH5fSZW1m4aWC-wnJWnp1rGV won't work, while gdown --id 1pDLQesPhbH5fSZW1m4aWC-wnJWnp1rGV will!?

Reproducible code:

import os, sys
sys.path.append(os.path.abspath(os.path.join(os.getcwd(), os.pardir)))
import numpy as np
import pandas as pd

from ppi_py.datasets import load_dataset
dataset_folder = "./data/"
data = load_dataset(dataset_folder, "galaxies")

Thanks!

@aangelopoulos
Copy link
Owner

aangelopoulos commented Sep 23, 2024

Hey Matthieu! Unfortunately, this depends on your version of gdown... with a more recent version, you won't get this bad behavior.

If you'd like, maybe you can edit README.md to point out that this is a known bug, and can be fixed by pip install -U gdown or generally updating gdown?

Feel free to send a PR :)

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

2 participants