# prodigy command fails when linking to a recipe from another user.

**URL:** <https://support.prodi.gy/t/prodigy-command-fails-when-linking-to-a-recipe-from-another-user/45>\
**Category:** Uncategorized\
**Tags:** done, thinc\
**Created:** [September 27, 2017, 8:30pm UTC](https://support.prodi.gy/t/prodigy-command-fails-when-linking-to-a-recipe-from-another-user/45 "2017-09-27T20:30:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![plusepsilon](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/plusepsilon/32/49_2.png) [@plusepsilon](https://support.prodi.gy/u/plusepsilon)\
**Post date:** [September 27, 2017, 8:30pm UTC](https://support.prodi.gy/t/prodigy-command-fails-when-linking-to-a-recipe-from-another-user/45/1 "2017-09-27T20:30:37Z")

</div>

This is hard to describe, but I ran a `prodigy` command that linked to a recipe from another user in my system (Ubuntu 14.04). I use a virtualenv from `mkvirtualenv prodigy`.

```python
pwd # /home/me/prodigy

PRODIGY_HOME='/home/me/.prodigy' prodigy command [options] -F /home/someoneelse/prodigy/recipes/custom_recipe.py

```

From `/home/me/prodigy` I get one error:

```python
(prodigy) ~/prodigy$ prodigy
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib/python3.6/runpy.py", line 142, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/usr/lib/python3.6/runpy.py", line 109, in _get_module_details
    __import__ (pkg_name)
  File "/home/writelab/envs/prodigy/lib/python3.6/site-packages/prodigy/ __init__.py", line 4, in <module>
    from . import recipes, about # noqa
  File "/home/writelab/envs/prodigy/lib/python3.6/site-packages/prodigy/recipes/ __init__.py", line 4, in <module>
    from . import ner, textcat, compare, terms, generic # noqa
  File "/home/writelab/envs/prodigy/lib/python3.6/site-packages/prodigy/recipes/ner.py", line 33, in <module>
    DB = connect()
  File "cython_src/prodigy/components/db.pyx", line 20, in prodigy.components.db.connect
  File "cython_src/prodigy/util.pyx", line 43, in prodigy.util.get_config
  File "cython_src/prodigy/util.pyx", line 242, in prodigy.util.read_json
  File "cython_src/prodigy/util.pyx", line 243, in prodigy.util.read_json
ValueError: Unexpected character in found when decoding object value

```

From anywhere else:

```python
(prodigy) ~/prodigy/pkg$ prodigy
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib/python3.6/runpy.py", line 142, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/usr/lib/python3.6/runpy.py", line 109, in _get_module_details
    __import__ (pkg_name)
  File "/home/writelab/envs/prodigy/lib/python3.6/site-packages/prodigy/ __init__.py", line 4, in <module>
    from . import recipes, about # noqa
  File "/home/writelab/envs/prodigy/lib/python3.6/site-packages/prodigy/recipes/ __init__.py", line 4, in <module>
    from . import ner, textcat, compare, terms, generic # noqa
  File "/home/writelab/envs/prodigy/lib/python3.6/site-packages/prodigy/recipes/textcat.py", line 9, in <module>
    from spacy.pipeline import SentenceSegmenter
  File "pipeline.pyx", line 1, in init spacy.pipeline
  File "arc_eager.pxd", line 12, in init spacy.syntax.parser
  File "search.pxd", line 72, in init spacy.syntax.arc_eager
ValueError: thinc.extra.search.MaxViolation has the wrong size, try recompiling. Expected 104, got 128

```

None of the prodigy commands work anymore, and I’ve tried python 3.5, 3.6, spacy-nightly alpha 13, 12, and I’ve tried deleting the virtualenvs to no avail 😓. I’m thinking it’s a path or Linking issue in Cython?

---

<div class="post-metadata">

**Author:** ![plusepsilon](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/plusepsilon/32/49_2.png) [@plusepsilon](https://support.prodi.gy/u/plusepsilon)\
**Post date:** [September 27, 2017, 9:14pm UTC](https://support.prodi.gy/t/prodigy-command-fails-when-linking-to-a-recipe-from-another-user/45/2 "2017-09-27T21:14:33Z")

</div>

> [@plusepsilon](#):
>
> ValueError: Unexpected character in found when decoding object value

Looks like the second error was a `thinc` issue. Downgrading to version `6.8.1` worked.

> <https://github.com/explosion/thinc/issues/38#issuecomment-332464536>
>
> Debian GNU/Linux 8
> Python: 3.6
> Thinc: 6.8.2
> 
> I get this error while loading …spacy lang or e.g. \`NeuralEntityRecognizer\`, it works with thinc 6.8.1 though:
> 
> \`\`\`
> \---------------------------------------------------------------------------
> ValueError Traceback (most recent call last)
> \<ipython-input-3-d57cdd72c72b\> in \<module\>()
> \----\> 1 from spacy.pipeline import NeuralEntityRecognizer
> 
> /usr/local/lib/python3.6/site-packages/spacy/pipeline.pyx in init spacy.pipeline (spacy/pipeline.cpp:46029)()
> \----\> 1 # cython: infer\_types=True
> 2 # cython: profile=True
> 3 # coding: utf8
> 4 from \_\_future\_\_ import unicode\_literals
> 5 
> 
> /usr/local/lib/python3.6/site-packages/spacy/syntax/arc\_eager.pxd in init spacy.syntax.parser (spacy/syntax/parser.cpp:39076)()
> 10 
> 11 
> \---\> 12 cdef class ArcEager(TransitionSystem):
> 13 pass
> 14 
> 
> search.pxd in init spacy.syntax.arc\_eager (spacy/syntax/arc\_eager.cpp:21709)()
> 
> ValueError: thinc.extra.search.MaxViolation has the wrong size, try recompiling
> \`\`\`

Also, I can't seem to recreate the first error, so all good now 😄 .

---

<div class="post-metadata">

**Author:** ![honnibal](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/honnibal/32/35_2.png) [@honnibal](https://support.prodi.gy/u/honnibal)\
**Post date:** [September 28, 2017, 10:26am UTC](https://support.prodi.gy/t/prodigy-command-fails-when-linking-to-a-recipe-from-another-user/45/3 "2017-09-28T10:26:04Z")

</div>

Thanks. I’m confused about this problem because reinstalling with `--no-cache-dir` has worked for me. I guess just use 6.8.1, and the next release of spacy-nightly will sort it out.

---

<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 4, 2017, 2:33pm UTC](https://support.prodi.gy/t/prodigy-command-fails-when-linking-to-a-recipe-from-another-user/45/4 "2017-10-04T14:33:24Z")

</div>

Will be fixed in the upcoming Prodigy `v0.3.0`! 🎉
