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

RuntimeError: Cannot connect sqlite3 database: unable to open database file #31

Open
Mrmdzz opened this issue Mar 2, 2021 · 5 comments

Comments

@Mrmdzz
Copy link

Mrmdzz commented Mar 2, 2021

Is there any solution to this problem?

@KevinRyu
Copy link

KevinRyu commented Mar 2, 2021

#27 (comment)

This closed solution doesn't work for me.

@Mrmdzz
Copy link
Author

Mrmdzz commented Mar 4, 2021

After the version was updated, there was still the same problem, and #27 didn't help me

@KevinRyu
Copy link

KevinRyu commented Mar 4, 2021

After the version was updated, there was still the same problem, and #27 didn't help me

I found the problem and solved it.
I made directory name like "c:/tmp/filedb-352355"
352355 is random value from 0 to 1000000. (We can find this code in ml_metadata_db.py line 102)

Running started... I wish this tips is helpful.

@Mrmdzz
Copy link
Author

Mrmdzz commented Mar 4, 2021

I see. Thanks! @KevinRyu

@ird-tue
Copy link

ird-tue commented Mar 23, 2021

I followed the above the suggestions, and it solved 'Cannot connect sqlite3...' error but produced another runtime error on the same line:

self._metadata_store = metadata_store_serialized.CreateMetadataStore(
RuntimeError: Error when executing query: file is not a database query: CREATE TABLE IF NOT EXISTS Type ( id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR(255) NOT NULL, version VARCHAR(255), type_kind TINYINT(1) NOT NULL, description TEXT, input_type TEXT, output_type TEXT );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants