ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets
{'login': 'profsatwinder', 'id': 41314912, 'node_id': 'MDQ6VXNlcjQxMzE0OTEy', 'avatar_url': 'https://avatars.githubusercontent.com/u/41314912?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/profsatwinder', 'html_url': 'https://github.com/profsatwinder', 'followers_url': 'https://api.github.com/users/profsatwinder/followers', 'following_url': 'https://api.github.com/users/profsatwinder/following{/other_user}', 'gists_url': 'https://api.github.com/users/profsatwinder/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/profsatwinder/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/profsatwinder/subscriptions', 'organizations_url': 'https://api.github.com/users/profsatwinder/orgs', 'repos_url': 'https://api.github.com/users/profsatwinder/repos', 'events_url': 'https://api.github.com/users/profsatwinder/events{/privacy}', 'received_events_url': 'https://api.github.com/users/profsatwinder/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892857, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODU3', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/bug', 'name': 'bug', 'color': 'd73a4a', 'default': True, 'description': "Something isn't working"}]
[]
Hi @profsatwinder.

It looks like you are using an old version of `datasets`. Please update it with `pip install -U datasets` and indicate if the problem persists. @albertvillanova Thanks for the information. I updated it to 1.9.0 and the issue is resolved. Thanks again. 
Error traceback:
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-8-a7b592d3bca0> in <module>()
      1 from datasets import load_dataset, load_metric
      2 
----> 3 common_voice_train = load_dataset("common_voice", "pa-IN", split="train+validation")
      4 common_voice_test = load_dataset("common_voice", "pa-IN", split="test")

9 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/common_voice/078d412587e9efeb0ae2e574da99c31e18844c496008d53dc5c60f4159ed639b/common_voice.py in <module>()
     19 
     20 import datasets
---> 21 from datasets.tasks import AutomaticSpeechRecognition
     22 
     23 

ModuleNotFoundError: No module named 'datasets.tasks'
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/2595/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}