-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
Improve error messages when given an empty database object #469
Comments
Thank you for your report. It is actually an intended behavior, not a bug. Do you think we should improve error messages? |
Refs #263 |
I was not aware that this is intended behavior. But I fully understand that perspective. I have some thoughts/comments on that. If optuna-dashboard is not intended to create storages, it should also not create the file for the respective storage. Additionally, as you suggested, the error message could hint, that the storage is completely empty? Or hint the user, that optuna-dashboard can only work on initialized storages? I was confused that this is an intended behavior, as optuna-dashboard is able to create new studies in the dashboard, and can also work on initialized storages without any studies. I expected to be able to also start optuna-dashboard on empty storages to create my first study via the dashboard as well. |
I see. Thank you for your opinion. Let me change the issue title and remove the bug label.
optuna command does not provide such a feature. If it's useful for many users, we might be able to consider introducing it to Optuna. As a workaround, you can create an empty database like the following.
|
Description
When starting the dashboard for an empty or non-existing database storage, the dashboard crashes when trying to determine the version information. The storage is empty and there is thus no table called
version_info
.How to Reproduce
optuna-dashboard sqlite:///db.sqlite3
sqlite3.OperationalError: no such table: version_info
Python version
3.11.3
Optuna version
3.1.1
optuna-dashboard version or git revision
0.9.2
Web browser
none
The text was updated successfully, but these errors were encountered: