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

sqlite3.OperationalError: unable to open database file #5

Open
Changwan-planet opened this issue May 3, 2023 · 0 comments
Open

sqlite3.OperationalError: unable to open database file #5

Changwan-planet opened this issue May 3, 2023 · 0 comments

Comments

@Changwan-planet
Copy link

Hi, there.

Thank you for sharing your code in the world!

I got stuck in the problem above.

When I enter the command below in the Ubuntu terminal,

python3 make_sqlite_from_urls.py

I met this error.

getting data from big catalog url
parsing data
WARNING:root:EQ B112096E Couldn't be processed; check file lines 69820-69825
WARNING:root:EQ C110397G Couldn't be processed; check file lines 73620-73625
getting monthly data
parsing monthly data
adding beachballs to dicts
doing SQL stuff
Traceback (most recent call last):
  File "make_sqlite_from_urls.py", line 80, in <module>
    sq.make_gcmt_table(gcmt_table, gcmt_schema, gcmt_db)
  File "/mnt/f/Forcal_mechanism/gcmt_utils-gem_desktop/scripts/../gcmt_utils/sql_utils.py", line 119, in make_gcmt_table
    con = sq.connect(db)

I think the problem would be gcmt_db.

Please help me out!

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

1 participant