question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Cannot apply patch to [id] which is not in the document anymore

See original GitHub issue

ALL software version info (bokeh, python, notebook, OS, browser, any other relevant packages)

bokeh 2.0.0 py37_0 python 3.7.7 hcf32534_0_cpython WSL Ubuntu 18.04 (hosted on win10 Firefox 75.0 (64-bit) running the app with command bokeh serve testapp.py --dev

Description of expected behavior and the observed behavior

in reply to https://github.com/bokeh/bokeh/issues/7738#issuecomment-605670765, I open this new issue:

On updating the layout, the errors

2020-05-01 10:43:42,474 Cannot apply patch to 1606 which is not in the document anymore
2020-05-01 10:43:42,475 Cannot apply patch to 1606 which is not in the document anymore
2020-05-01 10:43:42,477 Cannot apply patch to 1606 which is not in the document anymore
2020-05-01 10:43:42,478 Cannot apply patch to 1606 which is not in the document anymore

are thrown, where the timestamp and id number change accordingly. The Webapp however runs unaffected of these messages.

Complete, minimal, self-contained example code that reproduces the issue

import numpy as np
import bokeh.io as io
import bokeh.models as mod
import bokeh.layouts as bly
import datetime as dt
from bokeh.plotting import figure

# Set up plots
def MyPlots():
    # make 2 simple plots
    x = np.linspace(0, 15, 200)
    y = np.sin(x)
    plot1 = figure(plot_height=400, plot_width=400, title=str(np.random.normal()))
    plot1.line(x, y,  line_width=3, line_alpha=0.6)

    plot2 = figure(plot_height=400, plot_width=400, title=str(np.random.normal()))
    plot2.line(x, y,  line_width=3, line_alpha=0.6)
    
    return [plot1,plot2]

p1,p2= MyPlots()

# make an input
buttons = mod.RadioButtonGroup( 
    labels=['One', 'Two'])

# callback
def update(attr, old, new):
    pl1,pl2=MyPlots()
    rev.children[0] = pl1
    rev.children[2] = pl2

buttons.on_change('active', update)

# Set up layouts and add to document
rev=bly.column(p1, buttons, p2)
io.curdoc().add_root(rev)

Stack traceback and/or browser JavaScript console output

no error traceback

Screenshots or screencasts of the bug in action

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
bryevdvcommented, May 4, 2020

@bokeh/dev I propose we simply lower this from log.warning to log.debug (or even log.trace) with a slightly tweaked message. AFAICT there is basically only one situation that triggers this message, and in that situation ignoring any late changes for the already-removed models is just the correct thing to do, there is no reason to announce it.

0reactions
bryevdvcommented, Jul 28, 2020

It’s a log message, not a warning call. You’ll have to grab the logger and configure that (I don’t know the details)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot Apply Patch: OPATCH_JAVA_ERROR=CheckConflict
Please take latest OUI 10.1 patchset from "My Oracle Support" and try again. Cannot check bug/file conflict and component prerequisite checks.
Read more >
Applying the Magento Security Patch via Composer
Adobe suggests to install a security patch via command line. We show you how to do it via composer.
Read more >
Cross-reference links do not update to correct heading number
Describes the problem where cross-reference links in Word do not update to the correct heading number after you insert a new heading.
Read more >
Patching all my environments with the July 2021 Patch Bundles
So it is highly advised to apply this patch bundle. ... [Jul 26, 2021 11:17:43 PM] [INFO] CheckMissingComps: Cached file does not exist...
Read more >
git: patch does not apply - Stack Overflow
git apply --reject --whitespace=fix mychanges.patch worked for me. Explanation. The --reject option will instruct git to not fail if it cannot determine how ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found