# Custom Parser Model loading error

**URL:** https://support.prodi.gy/t/custom-parser-model-loading-error/3680
**Category:** Uncategorized
**Tags:** usage, spacy
**Created:** [November 30, 2020, 11:02am UTC](https://support.prodi.gy/t/custom-parser-model-loading-error/3680 "2020-11-30T11:02:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Srijha09](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/srijha09/32/1778_2.png) [@Srijha09](https://support.prodi.gy/u/Srijha09)
#### Post date: [November 30, 2020, 11:02am UTC](https://support.prodi.gy/t/custom-parser-model-loading-error/3680/1 "2020-11-30T11:02:39Z")

</div>

Hi I tried loading a custom parsing model through spacy but I get a FileNotFoundError:/vocab/lexemes.bin.  
I even tried forcefully linking with the 'en' model using python -m spacy link en\_core\_web\_md en --force as given in the link [https://github.com/explosion/spaCy/issues/2406](https://github.com/explosion/spaCy/issues/2406), But nothing really seemed to work.  
The spacy version I am using is 2.3.4.  
Please help me out.  
Thanks

 ![error](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/2/27c8b818468b178f58a88a7824775a9608c9d7b0.png)

---

<div class="post-metadata">

### Author: ![adriane](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@adriane](https://support.prodi.gy/u/adriane)
#### Post date: [November 30, 2020, 11:51am UTC](https://support.prodi.gy/t/custom-parser-model-loading-error/3680/2 "2020-11-30T11:51:23Z")

</div>

What does `spacy. __version__ ` show in your environment?

From the error message it looks like you're trying to load a v2.3 model with spacy v2.2 (or earlier).

---

<div class="post-metadata">

### Author: ![Srijha09](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/srijha09/32/1778_2.png) [@Srijha09](https://support.prodi.gy/u/Srijha09)
#### Post date: [November 30, 2020, 12:41pm UTC](https://support.prodi.gy/t/custom-parser-model-loading-error/3680/3 "2020-11-30T12:41:42Z")

</div>

Hi, the spacy. **version** = 2.3.4 in my environment. I have also verified that all installed models are compatible with the _spaCy_ version I have

---

<div class="post-metadata">

### Author: ![adriane](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@adriane](https://support.prodi.gy/u/adriane)
#### Post date: [November 30, 2020, 1:17pm UTC](https://support.prodi.gy/t/custom-parser-model-loading-error/3680/5 "2020-11-30T13:17:53Z")

</div>

I'm very sure that spacy v2.3.4 won't try to open a file called `vocab/lexemes.bin`. Just to double-check can you add a cell to your notebook that runs `!python -m spacy info`?

Another possibility: if you upgraded spacy in this venv, it's also possible that some older files didn't get cleaned up correctly by `pip`, so if you're still stuck, try creating a brand new virtual environment and installing spacy again to test to make sure it's not something with the virtual environment.
