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

ValueError: The state keyword argument may not be provided without the input keyword argument #739

Open
RicardoGomesIST opened this issue Jul 5, 2022 · 0 comments

Comments

@RicardoGomesIST
Copy link

Hi,
I am new at Dash. I Tried to run the TERNARY MAP EXPLORER Dash example:
dash-sample-apps-main\apps\dash-oil-gas-ternary

Steps:

(base) PS C:\Users\Ricardo> conda create --name dash4
(base) PS C:\Users\Ricardo> conda activate dash4
(dash4) PS C:\Users\Ricardo> conda install pip
(dash4) PS C:\Users\Ricardo\Dropbox\PYTHON\dash-sample-apps-main\apps\dash-oil-gas-ternary> pip install -r requirements.txt
(....)
Successfully installed Flask-2.1.2 Jinja2-3.1.2 MarkupSafe-2.1.1 Werkzeug-2.1.2 brotli-1.0.9 click-8.1.3 colorama-0.4.5 dash-2.5.1 dash-core-components-2.0.0 dash-html-components-2.0.0 dash-table-5.0.0 flask-compress-1.12 gunicorn-20.1.0 itsdangerous-2.1.2 numpy-1.23.0 pandas-1.4.3 plotly-5.9.0 python-dateutil-2.8.2 pytz-2022.1 six-1.16.0 tenacity-8.0.1

(dash4) PS C:\Users\Ricardo\Dropbox\PYTHON\dash-sample-apps-main\apps\dash-oil-gas-ternary> python app.py

C:\Users\Ricardo\Dropbox\PYTHON\dash-sample-apps-main\apps\dash-oil-gas-ternary\app.py:9: UserWarning:
The dash_html_components package is deprecated. Please replace
`import dash_html_components as html` with `from dash import html`
  import dash_html_components as html
Traceback (most recent call last):
  File "C:\Users\Ricardo\Dropbox\PYTHON\dash-sample-apps-main\apps\dash-oil-gas-ternary\app.py", line 577, in <module>
    @app.callback(
  File "C:\Users\Ricardo\anaconda3\envs\dash4\lib\site-packages\dash\dash.py", line 1135, in callback
    return _callback.register_callback(
  File "C:\Users\Ricardo\anaconda3\envs\dash4\lib\site-packages\dash\_callback.py", line 116, in register_callback
    ) = handle_grouped_callback_args(_args, _kwargs)
  File "C:\Users\Ricardo\anaconda3\envs\dash4\lib\site-packages\dash\dependencies.py", line 314, in handle_grouped_callback_args
    inputs_state = extract_grouped_input_state_callback_args(flat_args, kwargs)
  File "C:\Users\Ricardo\anaconda3\envs\dash4\lib\site-packages\dash\dependencies.py", line 256, in extract_grouped_input_state_callback_args
    raise ValueError(
**ValueError: The state keyword argument may not be provided without the input keyword argument**

I made the suggested replacements and the error remains

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