# Train-curve ends in error (module 'plotext' has no attribute 'figsize')

**URL:** <https://support.prodi.gy/t/train-curve-ends-in-error-module-plotext-has-no-attribute-figsize/4590>\
**Category:** Uncategorized\
**Tags:** done, third-party, training\
**Created:** [August 19, 2021, 1:15pm UTC](https://support.prodi.gy/t/train-curve-ends-in-error-module-plotext-has-no-attribute-figsize/4590 "2021-08-19T13:15:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcaspers](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/marcaspers/32/1669_2.png) [@marcaspers](https://support.prodi.gy/u/marcaspers)\
**Post date:** [August 19, 2021, 1:15pm UTC](https://support.prodi.gy/t/train-curve-ends-in-error-module-plotext-has-no-attribute-figsize/4590/1 "2021-08-19T13:15:48Z")

</div>

When I run the `train-curve` recipe, it seems to almost finish, until I get the following exception thrown:

```bash
========================= Generating Prodigy config =========================
ℹ Auto-generating config with spaCy
✔ Generated training config

=========================== Train curve diagnostic ===========================
Training 4 times with 25%, 50%, 75%, 100% of the data

% Score ner   
---- ------ ------
  0% 0.00 0.00  
 25% 0.38 ▲ 0.38 ▲
 50% 0.55 ▲ 0.55 ▲
 75% 0.57 ▲ 0.57 ▲
100% 0.54 ▼ 0.54 ▼

Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    " __main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/forge/.local/lib/python3.7/site-packages/prodigy/ __main__.py", line 61, in <module>
    controller = recipe(*args, use_plac=True)
  File "cython_src/prodigy/core.pyx", line 325, in prodigy.core.recipe.recipe_decorator.recipe_proxy
  File "/home/forge/.local/lib/python3.7/site-packages/plac_core.py", line 367, in call
    cmd, result = parser.consume(arglist)
  File "/home/forge/.local/lib/python3.7/site-packages/plac_core.py", line 232, in consume
    return cmd, self.func(*(args + varargs + extraopts), **kwargs)
  File "/home/forge/.local/lib/python3.7/site-packages/prodigy/recipes/train.py", line 386, in train_curve
    prev_scores = scores
  File "/usr/lib/python3.7/contextlib.py", line 119, in __exit__
    next(self.gen)
  File "cython_src/prodigy/components/printers.pyx", line 69, in train_curve_printer
AttributeError: module 'plotext' has no attribute 'figsize'

```

Note that I had to install the plotext package separately (was not automatically installed as dependency).

---

<div class="post-metadata">

**Author:** ![SofieVL](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/sofievl/32/915_2.png) [@SofieVL](https://support.prodi.gy/u/SofieVL)\
**Post date:** [August 19, 2021, 8:38pm UTC](https://support.prodi.gy/t/train-curve-ends-in-error-module-plotext-has-no-attribute-figsize/4590/2 "2021-08-19T20:38:45Z")

</div>

Hi!

It looks like `plotext` has renamed `figsize` to `plotsize` since 3.0.0. Could you retry after installing `plotext==2.3.1` instead?

---

<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:** [August 20, 2021, 12:04pm UTC](https://support.prodi.gy/t/train-curve-ends-in-error-module-plotext-has-no-attribute-figsize/4590/3 "2021-08-20T12:04:04Z")

</div>

Just released v1.11.2, which includes a workaround that should make the plot work with both v2.x and 3.x of `plotext` 🙂

---

<div class="post-metadata">

**Author:** ![marcaspers](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/marcaspers/32/1669_2.png) [@marcaspers](https://support.prodi.gy/u/marcaspers)\
**Post date:** [August 20, 2021, 12:11pm UTC](https://support.prodi.gy/t/train-curve-ends-in-error-module-plotext-has-no-attribute-figsize/4590/4 "2021-08-20T12:11:16Z")

</div>

Thank you! The suggestion by @SofieVL already helped me further, but I'll also run the new update!
