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

I am getting an error when trying to download a database #33

Open
NicholasChanWeyJie opened this issue Apr 5, 2024 · 3 comments
Open
Labels
good first issue Good for newcomers

Comments

@NicholasChanWeyJie
Copy link

image
I am new to this and had just downloaded python, pip and sqlite. I have tried troubleshooting steps like checking for permissions, using different directories and ensuring I have the 3 software mentioned. I also noticed that no file was downloaded to the given directory (if that is of any help). Any help will be appreciated.

@lemeryfertitta
Copy link
Owner

@NicholasChanWeyJie the database_path argument is a filename, not a directory. If JariKu\Kilter already exists (you probably have a directory named that), then the download step is skipped and it tries to synchronize a sqlite database file with that name, which of course fails.

So if you just change the command to boardlib database kilter C:\JariKu\Kilter\kilter.db it should work.

I think we can improve the error message here by checking if the supplied path is a directory, and if so, erroring out and stating that the supplied path must either be the path to an existing sqlite database file or a non-existent path to a new filename.

@lemeryfertitta lemeryfertitta added the good first issue Good for newcomers label Apr 5, 2024
@NicholasChanWeyJie
Copy link
Author

I got it working. Thanks!

@lemeryfertitta
Copy link
Owner

No problem! Keeping the issue open for improving the error messaging.

@lemeryfertitta lemeryfertitta reopened this Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants