# Component\_registration in self.callback\_map Error

**URL:** <https://community.plotly.com/t/component-registration-in-self-callback-map-error/14207>\
**Category:** Dash Python\
**Created:** [October 4, 2018, 7:53am UTC](https://community.plotly.com/t/component-registration-in-self-callback-map-error/14207 "2018-10-04T07:53:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kristie01](https://avatars.discourse-cdn.com/v4/letter/k/9e8a1a/32.png) [@kristie01](https://community.plotly.com/u/kristie01)\
**Post date:** [October 4, 2018, 7:53am UTC](https://community.plotly.com/t/component-registration-in-self-callback-map-error/14207/1 "2018-10-04T07:53:47Z")

</div>

HI, so i keep getting this error " component\_registration in self.callback\_map[target\_id][‘inputs’]: KeyError: ‘displaying-an-image.children’"

whenever i change the output property in my app.callback. for example:

i have this  
@app.callback(Output(‘displaying-an-image’,‘children’),  
[Input(‘interval\_component’ ,‘n\_intervals’)])

but if i change to this:  
@app.callback(Output(‘displaying-grayscale’,‘children’),  
[Input(‘interval\_component’ ,‘n\_intervals’)])

ill get that error, with the previous ID name.

---

<div class="post-metadata">

**Author:** ![mrmr](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@mrmr](https://community.plotly.com/u/mrmr)\
**Post date:** [October 4, 2018, 8:09am UTC](https://community.plotly.com/t/component-registration-in-self-callback-map-error/14207/2 "2018-10-04T08:09:05Z")

</div>

The error suggests that you don’t have an element with ID named `displaying-an-image`.  
Most likely something is still looking up for a callback with that element ID. My guess is that you get this error since there is some JS left that access the `_dash-dependencies` endpoint to trigger a callback for this output. Maybe you should refresh? are you using debug? what else is changed?

---

<div class="post-metadata">

**Author:** ![kristie01](https://avatars.discourse-cdn.com/v4/letter/k/9e8a1a/32.png) [@kristie01](https://community.plotly.com/u/kristie01)\
**Post date:** [October 4, 2018, 8:29am UTC](https://community.plotly.com/t/component-registration-in-self-callback-map-error/14207/3 "2018-10-04T08:29:24Z")

</div>

thanks for your reply.  
i wrote a whole new program but with the same code but it still gives that error. i’ve also restarted pycharm and all the programs.  
yes, i am using debug. nothing else is changed

---

<div class="post-metadata">

**Author:** ![mrmr](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@mrmr](https://community.plotly.com/u/mrmr)\
**Post date:** [October 4, 2018, 12:42pm UTC](https://community.plotly.com/t/component-registration-in-self-callback-map-error/14207/4 "2018-10-04T12:42:04Z")

</div>

In pycharm, double press on `shift` key and search for `displaying-an-image`. You should find the object that you construct with that `id` and rename it according to your new implementation.

---

<div class="post-metadata">

**Author:** ![kristie01](https://avatars.discourse-cdn.com/v4/letter/k/9e8a1a/32.png) [@kristie01](https://community.plotly.com/u/kristie01)\
**Post date:** [October 10, 2018, 10:59am UTC](https://community.plotly.com/t/component-registration-in-self-callback-map-error/14207/5 "2018-10-10T10:59:52Z")

</div>

i figured out the cause. it was beacause the previous dash app with that ID was still running in the browser. So i had to close it and reload

---

<div class="post-metadata">

**Author:** ![mrmr](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@mrmr](https://community.plotly.com/u/mrmr)\
**Post date:** [October 16, 2018, 7:02pm UTC](https://community.plotly.com/t/component-registration-in-self-callback-map-error/14207/6 "2018-10-16T19:02:08Z")

</div>

Good to hear. That qualifies my first comment 🙂

---

<div class="post-metadata">

**Author:** ![gurjinderkaur](https://avatars.discourse-cdn.com/v4/letter/g/bc79bd/32.png) [@gurjinderkaur](https://community.plotly.com/u/gurjinderkaur)\
**Post date:** [April 13, 2020, 1:01pm UTC](https://community.plotly.com/t/component-registration-in-self-callback-map-error/14207/7 "2020-04-13T13:01:15Z")

</div>

This comment proved to be very useful for me as I too was facing the same issue.  
Thanks!!
