# Using cach\_dir throws an error

**URL:** <https://discuss.huggingface.co/t/using-cach-dir-throws-an-error/67378>\
**Category:** 🤗Datasets\
**Created:** [December 29, 2023, 10:21am UTC](https://discuss.huggingface.co/t/using-cach-dir-throws-an-error/67378 "2023-12-29T10:21:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vdw](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/vdw/32/22539_2.png) [@vdw](https://discuss.huggingface.co/u/vdw)\
**Post date:** [December 29, 2023, 10:21am UTC](https://discuss.huggingface.co/t/using-cach-dir-throws-an-error/67378/1 "2023-12-29T10:21:45Z")

</div>

I’m trying to load the [Go Emotions](https://huggingface.co/datasets/go_emotions) dataset. When I run

```auto
from datasets import load_dataset

go_emotions_dataset = load_dataset("go_emotions", trust_remote_code=True)

```

all seems to work fine. However, when I try to set the `cache_dir` argument, e.g.:

```auto
go_emotions_dataset = load_dataset("go_emotions", trust_remote_code=True, cache_dir='./data/')

```

I get the following error message (the ‘./data/’ folder does exist!):

```auto
FileNotFoundError: Couldn't find file at https://huggingface.co/datasets/go_emotions/resolve/main/./data/downloads/1f201742641ead09e18cf849d7154a72e08b5839b84cb159c73607612618ad24

```

However, when I actually look into the `cache_dir`, then there is something there. It actually downloads at least something, the directory the looks like:

```auto
./data
--- downloads
------ 1f201742641ead09e18cf849d7154a72e08b5839b84cb159c73607612618ad24
------ 1f201742641ead09e18cf849d7154a72e08b5839b84cb159c73607612618ad24.json
------ 1f201742641ead09e18cf849d7154a72e08b5839b84cb159c73607612618ad24.lock
--- go_emotions
------ simplified
--------- 0.0.0
------------ 2637cfdd4e64d30249c3ed2150fa2b9d279766bfcd6a809b9f085c61a90d776d_builder.lock
--- data_go_emotions_simplified_0.0.0_2637cfdd4e64d30249c3ed2150fa2b9d279766bfcd6a809b9f085c61a90d776d.lock

```

I’m sure this code was working in the past, so maybe there’s an issues with the latest version of `datasets` that would require me to change my code. My the current docs and example still look the same.

---

<div class="post-metadata">

**Author:** ![mariosasko](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mariosasko/32/31548_2.png) [@mariosasko](https://discuss.huggingface.co/u/mariosasko)\
**Post date:** [January 15, 2024, 7:30pm UTC](https://discuss.huggingface.co/t/using-cach-dir-throws-an-error/67378/2 "2024-01-15T19:30:58Z")

</div>

Unfortunately, I cannot reproduce this error with the latest release of `datasets`.
