Answer the question
In order to leave comments, you need to log in
How to correctly package a .py into an executable using a third party database?
There is a project that uses sqllite3 to connect to the local database users.db.
I tried to pack the project using pyinstaller, to include third-party files I used the --add-data "name_file.py:." parameter, connected the database --add-data "users.db:." in the same way.
There are no errors when packaging, but when running, a database query error occurs, all queries return with a value of None.
The database itself is not empty. Project structure:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question