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

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

========================= 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).

Hi!

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

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

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