peewee.OperationalError: unable to open database file

@weijia_sun Ah, sorry – I was replying to the first tweet in the thread. I didn’t see that you had also posted something else in the meantime. Your error looks quite different and most likely isn’t related, so I moved it to a new topic.

What’s going on here is that Prodigy can’t create a new SQLite database and/or open the database file. This is likely not a problem in Prodigy itself. Here are some tips to debug this:

  • Double-check that SQLite is installed and available. It should be included with Python, but depending on your build and platform, maybe it’s not.
  • Double-check that a .prodigy directory was created in your user home directory and is writable (that’s what should happen by default). Alternatively, you can use the PRODIGY_HOME environment variable to point it to a writable directory Prodigy can create the prodigy.json and SQLite database file in.