Error while loading: no loading script

#1
by albertvillanova HF staff - opened

This dataset does not load because there is no Python script named as the repo, that is "sefaria.py"

FileNotFoundError: Couldn't find a dataset script at /src/services/worker/mehdie/sefaria/sefaria.py or any data file in the same directory. Couldn't find 'mehdie/sefaria' on the Hugging Face Hub either: FileNotFoundError: Unable to resolve any data file that matches ['test[-._ 0-9/]**', '**[-._ 0-9/]test[-._ 0-9/]**', 'testing[-._ 0-9/]**', '**[-._ 0-9/]testing[-._ 0-9/]**', 'eval[-._ 0-9/]**', '**[-._ 0-9/]eval[-._ 0-9/]**', 'evaluation[-._ 0-9/]**', '**[-._ 0-9/]evaluation[-._ 0-9/]**'] in dataset repository mehdie/sefaria with any supported extension ['csv', 'tsv', 'json', 'jsonl', 'parquet', 'txt', 'blp', 'bmp', 'dib', 'bufr', 'cur', 'pcx', 'dcx', 'dds', 'ps', 'eps', 'fit', 'fits', 'fli', 'flc', 'ftc', 'ftu', 'gbr', 'gif', 'grib', 'h5', 'hdf', 'png', 'apng', 'jp2', 'j2k', 'jpc', 'jpf', 'jpx', 'j2c', 'icns', 'ico', 'im', 'iim', 'tif', 'tiff', 'jfif', 'jpe', 'jpg', 'jpeg', 'mpg', 'mpeg', 'msp', 'pcd', 'pxr', 'pbm', 'pgm', 'ppm', 'pnm', 'psd', 'bw', 'rgb', 'rgba', 'sgi', 'ras', 'tga', 'icb', 'vda', 'vst', 'webp', 'wmf', 'emf', 'xbm', 'xpm', 'BLP', 'BMP', 'DIB', 'BUFR', 'CUR', 'PCX', 'DCX', 'DDS', 'PS', 'EPS', 'FIT', 'FITS', 'FLI', 'FLC', 'FTC', 'FTU', 'GBR', 'GIF', 'GRIB', 'H5', 'HDF', 'PNG', 'APNG', 'JP2', 'J2K', 'JPC', 'JPF', 'JPX', 'J2C', 'ICNS', 'ICO', 'IM', 'IIM', 'TIF', 'TIFF', 'JFIF', 'JPE', 'JPG', 'JPEG', 'MPG', 'MPEG', 'MSP', 'PCD', 'PXR', 'PBM', 'PGM', 'PPM', 'PNM', 'PSD', 'BW', 'RGB', 'RGBA', 'SGI', 'RAS', 'TGA', 'ICB', 'VDA', 'VST', 'WEBP', 'WMF', 'EMF', 'XBM', 'XPM', 'aiff', 'au', 'avr', 'caf', 'flac', 'htk', 'svx', 'mat4', 'mat5', 'mpc2k', 'ogg', 'paf', 'pvf', 'raw', 'rf64', 'sd2', 'sds', 'ircam', 'voc', 'w64', 'wav', 'nist', 'wavex', 'wve', 'xi', 'mp3', 'opus', 'AIFF', 'AU', 'AVR', 'CAF', 'FLAC', 'HTK', 'SVX', 'MAT4', 'MAT5', 'MPC2K', 'OGG', 'PAF', 'PVF', 'RAW', 'RF64', 'SD2', 'SDS', 'IRCAM', 'VOC', 'W64', 'WAV', 'NIST', 'WAVEX', 'WVE', 'XI', 'MP3', 'OPUS', 'zip']

I think you should rename "dataset_script_sefaria_backup.py" to "sefaria.py" and test locally that the loading script works as expected:

from datasets import load_dataset

ds = load_dataset("path/to/your/local/sefaria.py")
MEHDIE org

Hi, I did not manage to use the script load method, so I thought to switch over to the simple method where you just put the files in a data folder. Can I not do that?

Yes, you can just put the data files. For that, you should remove all your .py files (specifically your test_scraper.py file).

On the other hand, I do managed to make your Python script work:

filepaths = dl_manager.download(self.DATA_URLS[self.config.name])
return [

Sign up or log in to comment