strongswan / strongMan

Management UI for strongSwan
https://www.strongswan.org/
Other
117 stars 39 forks source link

No Such File or Directory .../sqlite3 #133

Closed dennis-it-net closed 2 years ago

dennis-it-net commented 2 years ago

I'm getting the error when running setup.py:

[Errno 2] No such file or directory: '/home/dennis/strongMan/strongMan/db.sqlite3'

I didn't see sqlite3 in the list of requirements.

tobiasbrunner commented 2 years ago

You don't. But the default database engine is SQLite and the script apparently attempts to delete any existing database. Since Python 3.8 this apparently raises an exception if the file doesn't exist. However, unless you use the migrate command with --delete-migrations, that exception is caught, so that should only result in a log message, not a fatal error.

dennis-it-net commented 2 years ago

Thanks for the reply. So what's the exact command to get around this?

Is it: ./setup.py migrate --delete-migrations then ./setup.py install

tobiasbrunner commented 2 years ago

So what's the exact command to get around this?

Around what? It's just a log message.