TypeError: xlistdir() missing 1 required positional argument: 'path' #1

by krishnagarg09 - opened

Hi,

I am running into this issue while using ldkp3k, whereas ldkp10k works fine:

Downloading and preparing dataset ldkp3k/large to /home/kgarg8/.cache/huggingface/datasets/midas___ldkp3k/large/1.1.0/0a3933f21b59c4a303726f9402123a5983313a07c54ba06edbdb6ef7b274b9c2...
Traceback (most recent call last):
  File "preprocess_script1.py", line 4, in <module>
    dataset = load_dataset("midas/ldkp3k", "large")
  File "/home/kgarg8/anaconda3/envs/CiteKP/lib/python3.6/site-packages/datasets/load.py", line 1751, in load_dataset
    use_auth_token=use_auth_token,
  File "/home/kgarg8/anaconda3/envs/CiteKP/lib/python3.6/site-packages/datasets/builder.py", line 705, in download_and_prepare
    dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
  File "/home/kgarg8/anaconda3/envs/CiteKP/lib/python3.6/site-packages/datasets/builder.py", line 1227, in _download_and_prepare
    super()._download_and_prepare(dl_manager, verify_infos, check_duplicate_keys=verify_infos)
  File "/home/kgarg8/anaconda3/envs/CiteKP/lib/python3.6/site-packages/datasets/builder.py", line 771, in _download_and_prepare
    split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
  File "/home/kgarg8/.cache/huggingface/modules/datasets_modules/datasets/midas--ldkp3k/0a3933f21b59c4a303726f9402123a5983313a07c54ba06edbdb6ef7b274b9c2/ldkp3k.py", line 81, in _split_generators
    print(os.listdir())
  File "/home/kgarg8/anaconda3/envs/CiteKP/lib/python3.6/site-packages/datasets/streaming.py", line 67, in wrapper
    return function(*args, use_auth_token=use_auth_token, **kwargs)
TypeError: xlistdir() missing 1 required positional argument: 'path'

Any suggestions here?

Any updates on this?

This error has been fixed.
Was able to replicate the error and was also able to fix it.

image.png

Thanks!

krishnagarg09 changed discussion status to closed