Answer the question
In order to leave comments, you need to log in
Why doesn't pyinstaller add the db when converting to one file?
Hello everyone
When I convert .py to .exe with "pyinstaller -w --add-data "server.db;." main.py" everything works as it should, but if I want to convert .py to one .exe file without all these dlls and other things, i.e. I write "pyinstaller -w --onefile --add-data "server.db;." main.py" , the program logic works as it should, but the database is not added, what could be the problem, please tell me?
I'm using Sqlite3
UPD: when compiling with one file in cmd, I get the error "Unable to find "C:\'path to file\server.db'" when adding binary and data files"
UPD2: I also tried the method "--paths C\path to file\server.db", which also did not work
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