7

So I created a little script for my mother because otherwise she had to combine 70 spreadsheets manually, I just couldnt sit there and do nothing. So I wrote a simple Python script in like 30 mins, decided that it needed a GUI because in the end it is for my mother. So wrote a GUI and partly learnt PyQt during that in an hour, which was all working fine.

Then I got to the point where I actually had to hand it over to my mother, preferably as an executable so that there is no hassle at all. So found this tool, Pyinstaller which seems to work great. Created an executable with all the dependencies and stuff in a single file, it worked on my win10 machine (because I developed on Linux of course). So I distributed it to her and she immediately gets an error. Of course there is no description and stuff because I made it a simple program, no log files and such. But fortunately she told me that it errorred when she wanted to run it, so I knew it had to be due to the executable.

Turns out she is still using windows 7 at work, which of course is different that windows 10 and here I am at 11pm, installing updates on a fresh windows 7 machine just to create a new build in that environment and make it work on her machine.

Fuck you, windows update. I swore to never see that ugly ass progress bar again, but yet here I am. Send halp.

I am almost just at the point where Im going to teach my mother how to run a python application from the command line because wheels are actually available for all python dependencies (instead of compiling them)!

Are there better python executable creators out there for wincrap?

Comments
  • 3
    You could just make a link that runs the python command and passes your script as an input. To an external observer, there should be no difference
  • 2
    @endor That's a fair point! I actually just figured out what the culprit was: PyQt was being a bitch, but managed to solve it :D

    The nice thing about executables is that in this case all the dependencies are self contained, so my mother doesn't actually have to install anything at all. But for next time, Ill definitely go that route
  • 0
    Are you missing some Visual C++ Redistributables / Universal C Runtime? More recent Python versions (>=3.5?) require them if I'm not wrong.
Add Comment