You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the app tries to access input without importing it from shiny.express, it prints the following confusing error message:
RuntimeError: 'builtin_function_or_method' object has no attribute 'x'
Example app:
fromshinyimportreactivefromshiny.expressimportui# from shiny.express import inputui.input_action_button("x", "Click me")
@reactive.Effect()@reactive.event(input.x)deffoo():
print("Clicked button")
This is because input is a builtin function in Python, but it doesn't have an attribute named x. So although the error is correct, it is a bit confusing.
I think that while evaluating the code, we could inject a different object named input that will result in a better error message.