Bug Report. Updated Dashboard. I enable authorization and get this error:
Closed this issue ยท 7 comments
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
- 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]]
@AlexeyBoiler For the 1st issue can you try updating the conda environment, run make env_remove
then make env_create
@AlexeyBoiler For the 1st issue can you try updating the conda environment, run
make env_remove
thenmake 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')
I restarted docker too. I also have the latest version hummingbot
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
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]]
@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.
Got it. Thank you