# Example choice recipe doesn't work

**URL:** <https://support.prodi.gy/t/example-choice-recipe-doesnt-work/154>\
**Category:** Uncategorized\
**Tags:** docs, done\
**Created:** [December 23, 2017, 8:00am UTC](https://support.prodi.gy/t/example-choice-recipe-doesnt-work/154 "2017-12-23T08:00:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sean](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sean](https://support.prodi.gy/u/sean)\
**Post date:** [December 23, 2017, 8:00am UTC](https://support.prodi.gy/t/example-choice-recipe-doesnt-work/154/1 "2017-12-23T08:00:18Z")

</div>

On [https://prodi.gy/docs/workflow-custom-recipes](https://prodi.gy/docs/workflow-custom-recipes) the recipe for the customer feedback sentiment example errors with this error:

```python
Traceback (most recent call last):
  File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
    " __main__", mod_spec)
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/sean/.virtualenvs/prodigy-_xPorgpA/lib/python3.5/site-packages/prodigy/ __main__.py", line 242, in <module>
    controller = recipe(*args, use_plac=True)
  File "cython_src/prodigy/core.pyx", line 150, in prodigy.core.recipe.recipe_decorator.recipe_proxy
  File "/home/sean/.virtualenvs/prodigy-_xPorgpA/lib/python3.5/site-packages/plac_core.py", line 324, in call
    parser = parser_from(obj)
  File "/home/sean/.virtualenvs/prodigy-_xPorgpA/lib/python3.5/site-packages/plac_core.py", line 133, in parser_from
    parser.populate_from(obj)
  File "/home/sean/.virtualenvs/prodigy-_xPorgpA/lib/python3.5/site-packages/plac_core.py", line 257, in populate_from
    a = Annotation.from_(ann)
  File "/home/sean/.virtualenvs/prodigy-_xPorgpA/lib/python3.5/site-packages/plac_core.py", line 91, in from_
    return cls(*obj)
  File "/home/sean/.virtualenvs/prodigy-_xPorgpA/lib/python3.5/site-packages/plac_core.py", line 78, in __init__
    assert abbrev is None, abbrev
AssertionError: None

```

In order to get it to work, I had to change `file_path=("Path to texts", "positional", "None", str))` to `file_path=("Path to texts", "positional", None, str))` (note the difference between “None” and None).

---

<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:** [December 23, 2017, 8:16am UTC](https://support.prodi.gy/t/example-choice-recipe-doesnt-work/154/2 "2017-12-23T08:16:09Z")

</div>

Ah, stupid typo – thanks a lot! ~~Fixing!~~ Fixed! 👍

---

<div class="post-metadata">

**Author:** ![TSSlade](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/tsslade/32/1628_2.png) [@TSSlade](https://support.prodi.gy/u/TSSlade)\
**Post date:** [September 18, 2020, 4:21am UTC](https://support.prodi.gy/t/example-choice-recipe-doesnt-work/154/3 "2020-09-18T04:21:30Z")

</div>

@ines : Looks like we could also stand to fix this same issue in the docs for [customizing recipe arguments](https://prodi.gy/docs/custom-recipes#recipe-args):

 ![image](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/2X/4/4f28ace83a211dd2854f0ccfabaf6d9e6bb49ef5.png)

I can confirm that using that pseudocode with `"None"` instead of `None` throws the same error listed above, and applying the fix you noted resolves the issue.

---

<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:** [September 18, 2020, 9:31am UTC](https://support.prodi.gy/t/example-choice-recipe-doesnt-work/154/4 "2020-09-18T09:31:14Z")

</div>

Thanks, that's also a typo! Fixed and should be live in a few mins 🙂
