N
N
NoKit2021-10-16 16:10:20
Python
NoKit, 2021-10-16 16:10:20

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:
616acf1656e3f583443437.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2021-10-16
@NoKit

https://stackoverflow.com/questions/41870727/pyins...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question