hummingbot / dashboard

Application that helps you create, backtest, deploy, and manage Hummingbot instances
Apache License 2.0
174 stars 115 forks source link

Bug Report. Updated Dashboard. I enable authorization and get this error: #117

Closed AlexeyBoiler closed 7 months ago

AlexeyBoiler commented 7 months ago

Describe the bug

Hello. Updated Dashboard. I enable authorization and get this error:

Steps to reproduce bug

1). AUTH_SYSTEM_ENABLED = True

TypeError: Authenticate.login() missing 1 required positional argument: 'form_name' Traceback: File "/root/miniconda3/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in runscript exec(code, module.__dict) File "/opt/hummingbot-dashboard/dashboard/main.py", line 119, in name, authentication_status, username = st.session_state.authenticator.login(location='main') # Updated login call

2) Also there is an error in this section: 🚀 Strategy Performance

KeyError: None Traceback: File "/root/miniconda3/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in runscript exec(code, module.__dict) File "/opt/hummingbot-dashboard/dashboard/pages/strategy_performance/app.py", line 45, in db_names = [x for x in dbs[bot_source]]

david-hummingbot commented 7 months ago

@AlexeyBoiler For the 1st issue can you try updating the conda environment, run make env_remove then make env_create

AlexeyBoiler commented 7 months ago

@AlexeyBoiler For the 1st issue can you try updating the conda environment, run make env_remove then make env_create

I updated the conda and the problem did not go away.

TypeError: Authenticate.login() missing 1 required positional argument: 'form_name' Traceback: File "/root/miniconda3/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script prep_time = timer() - start_time File "/opt/hummingbot-dashboard/dashboard/main.py", line 119, in name, authentication_status, username = st.session_state.authenticator.login(location='main')

AlexeyBoiler commented 7 months ago

I restarted docker too. I also have the latest version hummingbot

david-hummingbot commented 7 months ago

The error you are getting is because the streamlit-authenticator version you are using is looking for the form_name argument which is no longer needed in the latest version. For some reason, it looks like the dependencies in the conda environment are not updating.

Try doing a fresh install instead and make sure these are the instructions you are following - https://github.com/hummingbot/dashboard/blob/main/INSTALLATION.md

AlexeyBoiler commented 7 months ago

Thank you. I recreated it, it started, but 👇

2). Also there is an error in this section: 🚀 Strategy Performance KeyError: None Traceback: File "/root/miniconda3/envs/dashboard/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 535, in _run_script exec(code, module.dict) File "/opt/hummingbot-dashboard/dashboard/pages/strategy_performance/app.py", line 45, in db_names = [x for x in dbs[bot_source]]

david-hummingbot commented 7 months ago

@AlexeyBoiler That error is because you don't have any instances created under the Instances page. The strategy performance page will automatically load the sqlite files from your created instances to view the performance. If you don't have any instances yet then you'll get that error. You should still be able to manually load an sqlite DB file though.

See screenshots below of how it looks like when there is an active running instance.

image image

AlexeyBoiler commented 7 months ago

Got it. Thank you