0

I've converted my Python application to an .exe using the cx_Freeze Library. Now the GUI appears after I run the exe file, but it cannot fetch data from database, everything else is working. When this application runs in python environment everything is working fine.

Python version 3.7, database is sqlite3 version 2.6.0.

Please help me in troubleshooting this issue.

theduck
  • 2,589
  • 13
  • 17
  • 23
Ankit
  • 11
  • 3
  • When you say it cannot fetch data from the database can you be a little clearer? Do you get an error? Does the application connect to the database correctly? – theduck Dec 26 '19 at 16:10
  • Its application GUI so for example if I click button called Name, I should get predefined name in database but nothing is coming whereas if I run the python program I get the results. i hope I clear myself – Ankit Dec 26 '19 at 16:59
  • Issue identified :- application was creating database but there were no tables in it. when same code was run as python script and it was working because database was created with tables its working... I've copied the same databse into application folder. – Ankit Dec 26 '19 at 17:26

0 Answers0