load_dataset from local squad.py, raise error: TypeError: 'NoneType' object is not callable 
MEMBER
Hi !
Thanks for reporting.
It looks like no object inherits from `datasets.GeneratorBasedBuilder` (or more generally from `datasets.DatasetBuilder`) in your script.

Could you check that there exist at least one dataset builder class ?
2020-09-23T09:07:34Z
https://github.com/huggingface/datasets/issues/664#issuecomment-697236524
https://api.github.com/repos/huggingface/datasets/issues/664
MDEyOklzc3VlQ29tbWVudDY5NzIzNjUyNA==
https://api.github.com/repos/huggingface/datasets/issues/comments/697236524/reactions
2020-09-23T09:07:34Z
https://api.github.com/repos/huggingface/datasets/issues/comments/697236524
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
MEMBER
Hi @xixiaoyao did you manage to fix your issue ?
2020-10-05T16:34:40Z
https://github.com/huggingface/datasets/issues/664#issuecomment-703746414
https://api.github.com/repos/huggingface/datasets/issues/664
MDEyOklzc3VlQ29tbWVudDcwMzc0NjQxNA==
https://api.github.com/repos/huggingface/datasets/issues/comments/703746414/reactions
2020-10-05T16:34:40Z
https://api.github.com/repos/huggingface/datasets/issues/comments/703746414
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
MEMBER
No activity, closing
2020-10-20T09:06:13Z
https://github.com/huggingface/datasets/issues/664#issuecomment-712707371
https://api.github.com/repos/huggingface/datasets/issues/664
MDEyOklzc3VlQ29tbWVudDcxMjcwNzM3MQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/712707371/reactions
2020-10-20T09:06:13Z
https://api.github.com/repos/huggingface/datasets/issues/comments/712707371
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
NONE
It happened when try to change the old project which use 'nlp' to new project which use 'datasets'. You should check you old 'my_squad.py' file, change the inherit class from `nlp.xxx` to `datasets.xxx`. Otherwise datasets - load.py - import_main_class() `if inspect.isclass(obj) and issubclass(obj, main_cls_type):` can not find the main_cls.
2023-04-17T09:31:20Z
https://github.com/huggingface/datasets/issues/664#issuecomment-1511010992
https://api.github.com/repos/huggingface/datasets/issues/664
IC_kwDODunzps5aEDKw
https://api.github.com/repos/huggingface/datasets/issues/comments/1511010992/reactions
2023-04-17T09:31:20Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1511010992
https://avatars.githubusercontent.com/u/28996581?v=4
https://api.github.com/users/ailian8025/events{/privacy}
https://api.github.com/users/ailian8025/followers
https://api.github.com/users/ailian8025/following{/other_user}
https://api.github.com/users/ailian8025/gists{/gist_id}
https://github.com/ailian8025
ailian8025
MDQ6VXNlcjI4OTk2NTgx
https://api.github.com/users/ailian8025/orgs
https://api.github.com/users/ailian8025/received_events
https://api.github.com/users/ailian8025/repos
https://api.github.com/users/ailian8025/starred{/owner}{/repo}
https://api.github.com/users/ailian8025/subscriptions
User
https://api.github.com/users/ailian8025
public

version: 1.0.2

```
train_dataset  = datasets.load_dataset('squad') 
```

The above code can works. However, when I download the squad.py from your server, and saved as `my_squad.py` to local. I run followings raise errors.
```
train_dataset  = datasets.load_dataset('./my_squad.py')                                                                                                
```
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-28-25a84b4d1581> in <module>
----> 1 train_dataset  = nlp.load_dataset('./my_squad.py')

/opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, script_version, **config_kwargs)
    602         hash=hash,
    603         features=features,
--> 604         **config_kwargs,
    605     )
    606 

TypeError: 'NoneType' object is not callable
