Reputation: 87
I've built a small Python app that compares a set of files to a SQL query and delivers any differences to an excel file. I used pyinstaller to wrap up the code and libraries so I can deploy it to a server where it'll live and run.
The exe from pyinstaller works great on my local machine but doesn't work at all after transferring to the server. The installed Python versions are the same (3.8.5) and I don't get errors or logs. My code has good error handling so I'd expect that if any of my errors were triggered I'd get the error file but I'm not getting one.
How can I troubleshoot this?
Upvotes: 0
Views: 307
Reputation: 1398
There are many reasons that could be causing the issue, but most importantly, Python scripts are not an exe, i.e. a windows executable.
Python scripts are run by the Python interpreter, so you need a .py file to be interpreted by the Python installation in the server.
Start by installing Python correctly in the server and seeing if you can run scripts, etc. Then upload your script and run it.
Upvotes: 1