# Error in downloading private dataset

**URL:** <https://discuss.huggingface.co/t/error-in-downloading-private-dataset/125836>\
**Category:** Beginners\
**Created:** [November 19, 2024, 3:09am UTC](https://discuss.huggingface.co/t/error-in-downloading-private-dataset/125836 "2024-11-19T03:09:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anjwl-72](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@anjwl-72](https://discuss.huggingface.co/u/anjwl-72)\
**Post date:** [November 19, 2024, 3:09am UTC](https://discuss.huggingface.co/t/error-in-downloading-private-dataset/125836/1 "2024-11-19T03:09:30Z")

</div>

And I’m the admin of the group so I don’t need a permission.  
But I have a trouble with accessing a private dataset. What should I do?

 ![스크린샷 2024-11-19 오후 12.06.28](https://us1.discourse-cdn.com/hellohellohello/original/3X/9/2/9265f1ee6a28ca100a6e05cc9caa38827917efdb.png)

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [November 19, 2024, 3:13am UTC](https://discuss.huggingface.co/t/error-in-downloading-private-dataset/125836/2 "2024-11-19T03:13:57Z")

</div>

Try like this.

```py
dataset = load_dataset("author/dataset", token=access_token)

```

> **[Loading methods](https://huggingface.co/docs/datasets/v3.1.0/en/package_reference/loading_methods#datasets.load_dataset)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<div class="post-metadata">

**Author:** ![anjwl-72](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@anjwl-72](https://discuss.huggingface.co/u/anjwl-72)\
**Post date:** [November 19, 2024, 3:41am UTC](https://discuss.huggingface.co/t/error-in-downloading-private-dataset/125836/3 "2024-11-19T03:41:00Z")

</div>

Thanks, but same issue again, When I changed it to public dataset, I can load dataset,  
And I also have checked my tokens settings when I used dataset as private.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [November 19, 2024, 4:37am UTC](https://discuss.huggingface.co/t/error-in-downloading-private-dataset/125836/4 "2024-11-19T04:37:41Z")

</div>

It seems that the fact that it can be loaded if it is public means that it is not a problem with the library version, so it is strange…🤔 Only the token is not being passed correctly.  
It seems that there have been similar cases in the past.  
There have been a lot of questions about authentication in the past few days, so there may be a bug on the HF side.

> [@Colab cannot find HuggingFace dataset](https://discuss.huggingface.co/t/colab-cannot-find-huggingface-dataset/63448):
>
> When I try to run the following code to load a dataset from Hugging Face hub to google Colab, I get an error! ! pip install transformers datasets from datasets import load\_dataset cv\_13 = load\_dataset("mozilla-foundation/common\_voice\_13\_0", "en", split="train") \<ipython-input-9-4d772f75be89\> in \<cell line: 3\>() 1 from datasets import load\_dataset 2 ----\> 3 cv\_13 = load\_dataset("mozilla-foundation/common\_voice\_13\_0", "en", split="train") 2 frames /usr/local/lib/python3.10/dist-pac…

> <https://github.com/huggingface/datasets/issues/6958>
>
> \### Describe the bug
> 
> 
> \`\`\`
> File "/root/miniconda3/envs/gino\_conda/lib/pyth…on3.9/site-packages/datasets/load.py", line 1852, in dataset\_module\_factory
> raise DatasetNotFoundError(msg + f" at revision '{revision}'" if revision else msg)
> datasets.exceptions.DatasetNotFoundError: Dataset 'xxx' doesn't exist on the Hub or cannot be accessed
> \>\>\> dataset = load\_dataset("xxxx", token=True)
> 
> 404 error 404 Client Error. (Request ID: Root=xxxx)
> 
> Repository Not Found for url: https://huggingface.co/api/datasets/xxx/xxx.
> Please make sure you specified the correct \`repo\_id\` and \`repo\_type\`.
> If you are trying to access a private or gated repo, make sure you are authenticated.
> Traceback (most recent call last):
> File "\<stdin\>", line 1, in \<module\>
> File "/root/miniconda3/envs/gino\_conda/lib/python3.9/site-packages/datasets/load.py", line 2593, in load\_dataset
> builder\_instance = load\_dataset\_builder(
> File "/root/miniconda3/envs/gino\_conda/lib/python3.9/site-packages/datasets/load.py", line 2265, in load\_dataset\_builder
> dataset\_module = dataset\_module\_factory(
> File "/root/miniconda3/envs/gino\_conda/lib/python3.9/site-packages/datasets/load.py", line 1910, in dataset\_module\_factory
> raise e1 from None
> File "/root/miniconda3/envs/gino\_conda/lib/python3.9/site-packages/datasets/load.py", line 1852, in dataset\_module\_factory
> raise DatasetNotFoundError(msg + f" at revision '{revision}'" if revision else msg)
> datasets.exceptions.DatasetNotFoundError: Dataset 'xxx' doesn't exist on the Hub or cannot be accessed
> \`\`\`
> 
> \### Steps to reproduce the bug
> 
> 123
> 
> \### Expected behavior
> 
> 123
> 
> \### Environment info
> 
> 123

---

<div class="post-metadata">

**Author:** ![anjwl-72](https://avatars.discourse-cdn.com/v4/letter/a/aca169/32.png) [@anjwl-72](https://discuss.huggingface.co/u/anjwl-72)\
**Post date:** [November 19, 2024, 5:30am UTC](https://discuss.huggingface.co/t/error-in-downloading-private-dataset/125836/5 "2024-11-19T05:30:33Z")

</div>

🥲🥲oh…okay thanks for your help
