# Prodigy recipes no longer work after spacy upgrade

**URL:** <https://support.prodi.gy/t/prodigy-recipes-no-longer-work-after-spacy-upgrade/4867>\
**Category:** Uncategorized\
**Tags:** spacy, solved, windows\
**Created:** [October 28, 2021, 3:43pm UTC](https://support.prodi.gy/t/prodigy-recipes-no-longer-work-after-spacy-upgrade/4867 "2021-10-28T15:43:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmarino](https://avatars.discourse-cdn.com/v4/letter/r/f0a364/32.png) [@rmarino](https://support.prodi.gy/u/rmarino)\
**Post date:** [October 28, 2021, 3:43pm UTC](https://support.prodi.gy/t/prodigy-recipes-no-longer-work-after-spacy-upgrade/4867/1 "2021-10-28T15:43:39Z")

</div>

Hi all,

I'm using:  
Windows 10  
Python 3.8

I was running Prodigy on my machine but then I upgraded spaCy (3.1.2-\>3.1.3) and when I tried to run any Prodigy recipe I was met with:

```python
C:\Windows\system32>python -m prodigy stats -l
Traceback (most recent call last):
  File "C:\Users\RossMarino\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 185, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "C:\Users\RossMarino\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 144, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "C:\Users\RossMarino\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 111, in _get_module_details
    __import__ (pkg_name)
  File "C:\Users\RossMarino\AppData\Local\Programs\Python\Python38\lib\site-packages\prodigy\ __init__.py", line 1, in <module>
    from .util import init_package
  File "cython_src\prodigy\util.pyx", line 55, in init prodigy.util
  File "C:\Users\RossMarino\AppData\Local\Programs\Python\Python38\lib\pathlib.py", line 1391, in exists
    self.stat()
  File "C:\Users\RossMarino\AppData\Local\Programs\Python\Python38\lib\pathlib.py", line 1197, in stat
    return self._accessor.stat(self)
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'C:\\USERS\\RossMarino"'

```

Solutions I've tried:

- Reverting back to spaCy 3.1.2 (pip --force-reinstall).
- Creating a new environment in conda and installing prodigy there and ran into the same error. (python 3.8)
- Python versions 3.8, 3.9, 3.10
- Re-installing prodigy from .whl files (on fresh env)

I'm really not sure how to correct the filename syntax. I know this might be somewhat off topic, but I'm wondering if anyone has any ideas.

Thanks!

Ross

---

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [October 29, 2021, 9:55am UTC](https://support.prodi.gy/t/prodigy-recipes-no-longer-work-after-spacy-upgrade/4867/2 "2021-10-29T09:55:44Z")

</div>

Hi! This is definitely very confusing and I've never seen this problem before 🤔 Just to confirm, are you setting a custom `PRODIGY_HOME` environment variable? If so, can you double-check that it's set correctly? The path it reports includes a `"` at the end, so maybe that's the problem?

If you're not customising the `PRODIGY_HOME`, that's definitely strange. The error happens when Prodigy checks if a `.prodigy` in the user home exists, and the default home directory it uses is [`pathlib.Path.home()`](https://docs.python.org/3/library/pathlib.html#pathlib.Path.home). So this should always return a valid directory path that `pathlib` can handle. So I have no idea how this could happen. As a workaround, you could try setting the `PRODIGY_HOME` environment variable manually, e.g. `export PRODIGY_HOME=C:\USERS\RossMarino`.

---

<div class="post-metadata">

**Author:** ![rmarino](https://avatars.discourse-cdn.com/v4/letter/r/f0a364/32.png) [@rmarino](https://support.prodi.gy/u/rmarino)\
**Post date:** [October 29, 2021, 12:36pm UTC](https://support.prodi.gy/t/prodigy-recipes-no-longer-work-after-spacy-upgrade/4867/3 "2021-10-29T12:36:54Z")

</div>

Ines, you're a life-saver! Thank you!

My `PRODIGY_HOME` variable had an extra `"` at the end because I was messing around with it. For anyone else who did this running Windows:

```python
C:\Users\RossMarino>setx PRODIGY_HOME "C:\Users\RossMarino"

SUCCESS: Specified value was saved.

```

Then make sure you restart your command prompt to view the updated variable with `echo %PRODIGY_HOME%`

Thanks again!

Ross
