gradoj / discoclient

Discovery mode client for Helium hotspots
MIT License
8 stars 4 forks source link

Get back trace when accessing https://dash.discomode.io/ #4

Closed lt-columbo closed 2 years ago

lt-columbo commented 2 years ago

ValueError: Value of 'x' is not the name of a column in 'data_frame'. Expected one of [] but received: fcnt Traceback:

File "/usr/local/lib/python3.9/site-packages/streamlit/scriptrunner/script_runner.py", line 554, in _run_script exec(code, module.dict) File "/app/app.py", line 308, in plot_num_of_hotspots(id=st.session_state.sensor['id']) File "/app/app.py", line 110, in plot_num_of_hotspots fig = px.line(df, x='fcnt', y='count', title="Number of hotspots reporting disco packet", markers=True) File "/usr/local/lib/python3.9/site-packages/plotly/express/_chart_types.py", line 264, in line return make_figure(args=locals(), constructor=go.Scatter) File "/usr/local/lib/python3.9/site-packages/plotly/express/_core.py", line 1948, in make_figure args = build_dataframe(args, constructor) File "/usr/local/lib/python3.9/site-packages/plotly/express/_core.py", line 1405, in build_dataframe df_output, wide_id_vars = process_args_into_dataframe( File "/usr/local/lib/python3.9/site-packages/plotly/express/_core.py", line 1207, in process_args_into_dataframe raise ValueError(err_msg)

gradoj commented 2 years ago

owner address or hotspot name?

gradoj commented 2 years ago

never mind i found the problem. it should work for you now

lt-columbo commented 2 years ago

Looks okay now. Thanks for the fast response