E
E
EGGOFFOX2021-08-03 09:19:16
Python
EGGOFFOX, 2021-08-03 09:19:16

Why doesn't the compiled .exe work?

I wrote a script that works with sqlite 3, xlwt, xlrd, dbfread. After compiling with pyinstaller -F script.py it works fine on this account. After changing the user, the same script, when run, fails to open the database Operational error : unable to open database file.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2021-08-03
@sergey-gornostaev

I don’t know what exactly “this account” means and how “user change” is technologically implemented, but it is obvious that the script cannot open the database file, you need to check where this file is and what state it is in.

H
HemulGM, 2021-08-03
@HemulGM

Because it's not a compiled python. THIS IS NOT A COMPILATION. pyinstaller does not compile python, but packs it into a shit file.
Your problem is most likely in the absolute paths that you most likely use and which, of course, are not available on another account.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question