Hi there,
After cloning the repository and trying to start offpunk for the first
time on Ubuntu 22.04 (Python 3.10.12), I get the following trace:
Traceback (most recent call last):
File "/home/tpt/offpunk/./offpunk.py", line 1939, in <module>
main()
File "/home/tpt/offpunk/./offpunk.py", line 1843, in main
for f in [xdg("config"), xdg("data")]:
File "/home/tpt/offpunk/offutils.py", line 118, in xdg
upgrade_cert(_CONFIG_DIR, _DATA_DIR)
File "/home/tpt/offpunk/offutils.py", line 73, in upgrade_cert
upgrade_func(data_folder, config_folder)
File "/home/tpt/offpunk/cert_migration.py", line 21, in upgrade_to_1
db_conn = sqlite3.connect(db_path)
sqlite3.OperationalError: unable to open database file
Directory /home/tpt/.local/share/offpunk exists and it's empty.
Everything is owned and run by the same user.
Is there something that offpunk expects by default?
Thanks.
Regards,
--
Dejan Josifović | Дејан Јосифовић
Software engineer | Софтверски инжењер
[https|gemini]://theparanoidtimes.org
On 24 jun 12 04:32, Dejan Josifović wrote:
>Hi there,>>After cloning the repository and trying to start offpunk for the first>time on Ubuntu 22.04 (Python 3.10.12), I get the following trace:>>Traceback (most recent call last):> File "/home/tpt/offpunk/./offpunk.py", line 1939, in <module>> main()> File "/home/tpt/offpunk/./offpunk.py", line 1843, in main> for f in [xdg("config"), xdg("data")]:> File "/home/tpt/offpunk/offutils.py", line 118, in xdg> upgrade_cert(_CONFIG_DIR, _DATA_DIR)> File "/home/tpt/offpunk/offutils.py", line 73, in upgrade_cert> upgrade_func(data_folder, config_folder)> File "/home/tpt/offpunk/cert_migration.py", line 21, in upgrade_to_1> db_conn = sqlite3.connect(db_path)>sqlite3.OperationalError: unable to open database file>>Directory /home/tpt/.local/share/offpunk exists and it's empty.>Everything is owned and run by the same user.>>Is there something that offpunk expects by default?
Thanks for reporting this. We have just recently merged code to migrate
certificates from sqlite to a flat file structure.
It looks like we forgot one little case: when there’s no sqlite to
migrate from.
Hem…
I’m really sorry I missed that. Will fix that tonight or tomorrow.
--
Ploum - Lionel Dricot
Blog: https://www.ploum.net
Livres: https://ploum.net/livres.html
Hi Dejan,
I’ve pushed a fix. Could you git pull and try if this solves your issue?
Thanks a lot for reporting it.
On 24 jun 12 04:32, Dejan Josifović wrote:
>Hi there,>>After cloning the repository and trying to start offpunk for the first>time on Ubuntu 22.04 (Python 3.10.12), I get the following trace:>>Traceback (most recent call last):> File "/home/tpt/offpunk/./offpunk.py", line 1939, in <module>> main()> File "/home/tpt/offpunk/./offpunk.py", line 1843, in main> for f in [xdg("config"), xdg("data")]:> File "/home/tpt/offpunk/offutils.py", line 118, in xdg> upgrade_cert(_CONFIG_DIR, _DATA_DIR)> File "/home/tpt/offpunk/offutils.py", line 73, in upgrade_cert> upgrade_func(data_folder, config_folder)> File "/home/tpt/offpunk/cert_migration.py", line 21, in upgrade_to_1> db_conn = sqlite3.connect(db_path)>sqlite3.OperationalError: unable to open database file>>Directory /home/tpt/.local/share/offpunk exists and it's empty.>Everything is owned and run by the same user.>>Is there something that offpunk expects by default?>>Thanks.>>Regards,>>-->Dejan Josifović | Дејан Јосифовић>Software engineer | Софтверски инжењер>[https|gemini]://theparanoidtimes.org>
--
Ploum - Lionel Dricot
Blog: https://www.ploum.net
Livres: https://ploum.net/livres.html