# My model can't be loaded ("Cannot load file containing pickled data")

**URL:** https://support.prodi.gy/t/my-model-cant-be-loaded-cannot-load-file-containing-pickled-data/6831
**Category:** Uncategorized
**Tags:** ner
**Created:** [October 8, 2023, 11:56am UTC](https://support.prodi.gy/t/my-model-cant-be-loaded-cannot-load-file-containing-pickled-data/6831 "2023-10-08T11:56:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Rashid](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Rashid](https://support.prodi.gy/u/Rashid)
#### Post date: [October 8, 2023, 11:56am UTC](https://support.prodi.gy/t/my-model-cant-be-loaded-cannot-load-file-containing-pickled-data/6831/1 "2023-10-08T11:56:56Z")

</div>

Hello,

before a while I trained an NER prodigy model and exported it to a directory. previously, I dragged and drop the model to another project directory and then I dragged it back to the original project directory (where prodigy saved it)  
Another step what I did (I don/t know if it is worth mention it) I changed the project and directory name..

since these steps, I can't use the model and I am getting this error:

```python
File "spacy/vectors.pyx", line 605, in spacy.vectors.Vectors.from_disk.load_vectors
  File "./XnowledgeToOnto/venv/lib/python3.10/site-packages/numpy/lib/npyio.py", line 438, in load
    raise ValueError("Cannot load file containing pickled data "
ValueError: Cannot load file containing pickled data when allow_pickle=False

```

Please help me, I have to fix it as soon as possible ☹ for my university project.  
Note: I have no more access to prodigy because my 3 month free license has ended..

---

<div class="post-metadata">

### Author: ![ryanwesslen](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ryanwesslen/32/2969_2.png) [@ryanwesslen](https://support.prodi.gy/u/ryanwesslen)
#### Post date: [October 8, 2023, 11:02pm UTC](https://support.prodi.gy/t/my-model-cant-be-loaded-cannot-load-file-containing-pickled-data/6831/2 "2023-10-08T23:02:01Z")

</div>

hi @Rashid,

I'm sorry you're having issues.

> [@Rashid](#):
>
> before a while I trained an NER prodigy model and exported it to a directory. previously, I dragged and drop the model to another project directory and then I dragged it back to the original project directory (where prodigy saved it)  
> Another step what I did (I don/t know if it is worth mention it) I changed the project and directory name..

So it sounds like you accidentally dragged and perhaps messed up files in your model, is that right?

Why can't you rebuild your model using your original code?

> [@Rashid](#):
>
> Please help me, I have to fix it as soon as possible ☹ for my university project.  
> Note: I have no more access to prodigy because my 3 month free license has ended..

Sorry for the confusion, but you can still keep using Prodigy after 3 months with the 3 month research license. The 3 months is just how many months of updates (i.e., newer versions) of Prodigy you can receive for free. So if you received your research license in May and received [v1.11.14](https://prodi.gy/docs/changelog#v1.11.14) at that time, you can still keep using v1.11.14 for however long. In fact, you can now even install up to v1.13.3 as it was released within 3 months.

I just used your email address to lookup your license and double checked that it still works through pypi.

So can you try to reinstall Prodigy with pypi and try to rerun your model?

If you lost your license key, you can use this [form](https://transactions.sendowl.com/order_recoveries/new?merchant_id=33429) to email it back to yourself. You can then [install Prodigy through pypi](https://prodi.gy/docs/install#pip) or go to [https://download.prodi.gy](https://download.prodi.gy), put in your license key as the Username, and you can download the wheel file for any Prodigy version your eligible to receive. You may want to hold onto that wheel file so you can keep using that version of Prodigy in the future.

Hope this helps!

---

<div class="post-metadata">

### Author: ![Rashid](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Rashid](https://support.prodi.gy/u/Rashid)
#### Post date: [October 10, 2023, 6:58pm UTC](https://support.prodi.gy/t/my-model-cant-be-loaded-cannot-load-file-containing-pickled-data/6831/3 "2023-10-10T18:58:37Z")

</div>

> [@ryanwesslen](#):
>
> Sorry for the confusion, but you can still keep using Prodigy after 3 months with the 3 month research license. The 3 months is just how many months of updates (i.e., newer versions) of Prodigy you can receive for free. So if you received your research license in May and received [v1.11.14](https://prodi.gy/docs/changelog#v1.11.14) at that time, you can still keep using v1.11.14 for however long. In fact, you can now even install up to v1.13.3 as it was released within 3 months.

Thank you a lot! 🙂  
You are right, after going through this trauma I thought that I had to try to retrain my model and check if prodigy still works (because the database of annotated texts was still there) and it happily worked! 🙂

I appreciate your reply.
