You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the above code without having a database led to the following error (username redacted):
File "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\lib\site-packages\wn\_db.py", line 109, in _connect
conn = sqlite3.connect(dbpath)
sqlite3.OperationalError: unable to open database file
I am unable to reproduce this on Linux, but there might be some kind of permissions issue that prevents the database from being created.
The text was updated successfully, but these errors were encountered:
Turns out it's not a Windows thing. The problem is performing database operations (like wn.lexicons()) before the .wn_data directory is created. Executing a wn.download() creates the directory, then all is well.
It has been reported that Wn does not seem to initialize the database if the file is missing. See below:
Running the above code without having a database led to the following error (username redacted):
I am unable to reproduce this on Linux, but there might be some kind of permissions issue that prevents the database from being created.
The text was updated successfully, but these errors were encountered: