Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run examples\LinkedCharts.ipynb got Keyerror with sourcedata tab not work #13

Open
markqiu opened this issue Aug 26, 2022 · 0 comments
Open

Comments

@markqiu
Copy link

markqiu commented Aug 26, 2022

Got the following error:

Callback failed for object named "Tabs00131" changing property {'active': 1} 
Traceback (most recent call last):
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\reactive.py", line 315, in _process_events
    self.param.update(**self_events)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\param\parameterized.py", line 1898, in update
    self_._batch_call_watchers()
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\param\parameterized.py", line 2059, in _batch_call_watchers
    self_._execute_watcher(watcher, events)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\param\parameterized.py", line 2021, in _execute_watcher
    watcher.fn(*args, **kwargs)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\layout\tabs.py", line 128, in _update_active
    self.param.trigger('objects')
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\param\parameterized.py", line 1989, in trigger
    self_.set_param(**dict(params, **triggers))
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\param\parameterized.py", line 1925, in set_param
    return self_.update(kwargs)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\param\parameterized.py", line 1898, in update
    self_._batch_call_watchers()
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\param\parameterized.py", line 2059, in _batch_call_watchers
    self_._execute_watcher(watcher, events)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\param\parameterized.py", line 2021, in _execute_watcher
    watcher.fn(*args, **kwargs)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\reactive.py", line 304, in _param_change
    self._apply_update(named_events, msg, model, ref)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\reactive.py", line 239, in _apply_update
    self._update_model(events, msg, root, model, doc, comm)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\layout\base.py", line 99, in _update_model
    state._views[ref][0]._preprocess(root)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\viewable.py", line 500, in _preprocess
    hook(self, root)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\links.py", line 247, in _process_callbacks
    cb(root_model, link, src, tgt, arg_overrides=overrides)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\links.py", line 342, in __init__
    self._init_callback(root_model, link, source, src_spec, target, tgt_spec, code)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\links.py", line 429, in _init_callback
    arg_model = self._resolve_model(root_model, v, None)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\links.py", line 387, in _resolve_model
    model, _ = obj._models[root_model.ref['id']]
KeyError: '1008'
2022-08-26 12:28:19,653 Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOMainLoop object at 0x00000287A32D0D30>>, <Task finished name='Task-77' coro=<ServerSession.with_document_locked() done, defined at C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\bokeh\server\session.py:78> exception=KeyError('1008')>)
Traceback (most recent call last):
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\tornado\ioloop.py", line 741, in _run_callback
    ret = callback()
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\tornado\ioloop.py", line 765, in _discard_future_result
    future.result()
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\bokeh\server\session.py", line 99, in _needs_document_lock_wrapper
    result = await result
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\reactive.py", line 356, in _change_coroutine
    self._change_event(doc)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\reactive.py", line 370, in _change_event
    self._process_events(events)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\reactive.py", line 315, in _process_events
    self.param.update(**self_events)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\param\parameterized.py", line 1898, in update
    self_._batch_call_watchers()
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\param\parameterized.py", line 2059, in _batch_call_watchers
    self_._execute_watcher(watcher, events)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\param\parameterized.py", line 2021, in _execute_watcher
    watcher.fn(*args, **kwargs)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\layout\tabs.py", line 128, in _update_active
    self.param.trigger('objects')
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\param\parameterized.py", line 1989, in trigger
    self_.set_param(**dict(params, **triggers))
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\param\parameterized.py", line 1925, in set_param
    return self_.update(kwargs)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\param\parameterized.py", line 1898, in update
    self_._batch_call_watchers()
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\param\parameterized.py", line 2059, in _batch_call_watchers
    self_._execute_watcher(watcher, events)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\param\parameterized.py", line 2021, in _execute_watcher
    watcher.fn(*args, **kwargs)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\reactive.py", line 304, in _param_change
    self._apply_update(named_events, msg, model, ref)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\reactive.py", line 239, in _apply_update
    self._update_model(events, msg, root, model, doc, comm)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\layout\base.py", line 99, in _update_model
    state._views[ref][0]._preprocess(root)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\viewable.py", line 500, in _preprocess
    hook(self, root)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\links.py", line 247, in _process_callbacks
    cb(root_model, link, src, tgt, arg_overrides=overrides)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\links.py", line 342, in __init__
    self._init_callback(root_model, link, source, src_spec, target, tgt_spec, code)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\links.py", line 429, in _init_callback
    arg_model = self._resolve_model(root_model, v, None)
  File "C:\Users\qiuch\anaconda3\envs\panel-highcharts\lib\site-packages\panel\links.py", line 387, in _resolve_model
    model, _ = obj._models[root_model.ref['id']]
KeyError: '1008'

I think it's maybe caused by the download_button.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant