# Auto Train Error

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauto-train-error%2F82839%3E%5C
**Category:** 🤗AutoTrain\
**Created:** [April 21, 2024, 12:30am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauto-train-error%2F82839 "2024-04-21T00:30:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adilmar](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/adilmar/32/52970_2.png) [@Adilmar](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FAdilmar)%5C
**Post date:** [April 21, 2024, 12:30am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauto-train-error%2F82839%2F1 "2024-04-21T00:30:40Z")

</div>

My training was interrupted today, and now I can’t start a new one, it always gives me the error, since nothing was changed at the base, would it be possible to restart where the training left off?

```
 data_path = dset.prepare()

```

File “/app/env/lib/python3.10/site-packages/autotrain/dataset.py”, line 275, in prepare  
return preprocessor.prepare()  
File “/app/env/lib/python3.10/site-packages/autotrain/preprocessor/text.py”, line 83, in prepare  
train\_df[:, “autotrain\_label”] = train\_df[“autotrain\_label”].astype(str)  
File “/app/env/lib/python3.10/site-packages/pandas/core/frame.py”, line 4311, in **setitem**  
self.\_set\_item(key, value)  
File “/app/env/lib/python3.10/site-packages/pandas/core/frame.py”, line 4527, in \_set\_item  
key in self.columns  
File “/app/env/lib/python3.10/site-packages/pandas/core/indexes/base.py”, line 5358, in **contains**  
hash(key)  
TypeError: nailable type: ‘slice’

---

<div class="post-metadata">

**Author:** ![baptle](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@baptle](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fbaptle)%5C
**Post date:** [April 22, 2024, 8:09am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauto-train-error%2F82839%2F2 "2024-04-22T08:09:10Z")

</div>

Hi,

I have kind of the same error with this message:

> File “/app/env/lib/python3.10/site-packages/autotrain/preprocessor/text.py”, line 83, in prepare  
> train\_df[:, “autotrain\_label”] = train\_df[“autotrain\_label”].astype(str)  
> File “/app/env/lib/python3.10/site-packages/pandas/core/frame.py”, line 4311, in **setitem**  
> self.\_set\_item(key, value)  
> File “/app/env/lib/python3.10/site-packages/pandas/core/frame.py”, line 4527, in \_set\_item  
> key in self.columns  
> File “/app/env/lib/python3.10/site-packages/pandas/core/indexes/base.py”, line 5358, in **contains**  
> hash(key)  
> TypeError: unhashable type: ‘slice’

Have you find a solution?

---

<div class="post-metadata">

**Author:** ![Adilmar](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/adilmar/32/52970_2.png) [@Adilmar](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FAdilmar)%5C
**Post date:** [April 22, 2024, 2:49pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fauto-train-error%2F82839%2F3 "2024-04-22T14:49:21Z")

</div>

Not yet, I’m still having problems.
