# KeyError: 'logger' when executing a NER trainer

**URL:** https://support.prodi.gy/t/keyerror-logger-when-executing-a-ner-trainer/4571
**Category:** Uncategorized
**Tags:** training, spacy, done
**Created:** [August 16, 2021, 12:35pm UTC](https://support.prodi.gy/t/keyerror-logger-when-executing-a-ner-trainer/4571 "2021-08-16T12:35:50Z")
**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 16, 2021, 12:35pm UTC](https://support.prodi.gy/t/keyerror-logger-when-executing-a-ner-trainer/4571/1 "2021-08-16T12:35:50Z")

</div>

I just updated to the Prodigy 1.11.0, and get the following:

```bash
python3 -m prodigy train nl_party_model_20210816/ --ner poc_parties --base-model nl_core_news_sm --eval-split 0.2
ℹ Using CPU

========================= Generating Prodigy config =========================
ℹ Auto-generating config with spaCy
ℹ Using config from base model
✔ Generated training config
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 282, in train
    silent=silent,
  File "/home/forge/.local/lib/python3.7/site-packages/prodigy/recipes/train.py", line 171, in _train
    original_logger = config["training"]["logger"]
KeyError: 'logger'

```

Is there anything I can do to fix it?

---

<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 16, 2021, 12:40pm UTC](https://support.prodi.gy/t/keyerror-logger-when-executing-a-ner-trainer/4571/2 "2021-08-16T12:40:43Z")

</div>

Hi! It looks like this error happens if the base config doesn't contain a logger – we already have a fix and will be releasing v1.11.1 shortly, but in the meantime, you can just comment out this section in `train.py` (you can run `prodigy stats` to find the location of your Prodigy installation).

See this comment for more background:

> [@1.11.0: Incorrect generation of config files?](https://support.prodi.gy/t/1-11-0-incorrect-generation-of-config-files/4556/4):
>
> Hi Tom, Sorry for not having been entirely clear in my previous reply. We are aware of the fact that the functionality changed since the nightly version, as we've specifically implemented it so that parts of the config of the base\_model would be copied over, including the training parameters. This is to better support transformer-based pipelines, which need different training parameters. In general, if you specify a base\_model then Prodigy will try to copy as much as possible from that model in…

---

<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 16, 2021, 12:46pm UTC](https://support.prodi.gy/t/keyerror-logger-when-executing-a-ner-trainer/4571/3 "2021-08-16T12:46:35Z")

</div>

Hi, thank you for your quick response! Commenting out worked and I can continue now. Thanks!

---

<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 17, 2021, 1:12am UTC](https://support.prodi.gy/t/keyerror-logger-when-executing-a-ner-trainer/4571/4 "2021-08-17T01:12:26Z")

</div>

Just released v1.11.1, which should fix the underlying problem 🙂
