python scripts executable windows
-
hey
greetings of the day.
i build an .exe file from python scripts using pyinstaller by using command-pyinstaller.exe --onefile --windowed app.py
when i run the executable file on same system it works well but when i run it on another system all other functions works except MySQL database error.
i want that when i run the the exe file on any system, allnecessary databases will be create automatically.
what can i do??
-
Hi,
Did you deploy the matching plugins ?
-
Which python bindings are you using ?
-
What exactly ?
-
One thing you can do once you have the application executable ready is to run windeployqt on it. That should bring in the missing plugins.
-
@SGaist
Hi, i talked with him about this in chat.
Im a py ignorant so was not sure how it shall work.So after he makes a .exe from py script, the rest of the deployment is the the same (as c++)?
Making a folder, add the Qt dlls to it?
including platform folder and sql/db folder? -
Well, after a longer search: pyqtdeploy looks very promising for that task. And then you can follow the standard Qt deployment procedure.