Answer the question
In order to leave comments, you need to log in
Why won't python seript packaged in .exe run on windows7 without sp1?
There is a script written in python. You need to run it on multiple machines running windows7.
On one of the machines, I installed the interpreter and the necessary libraries without any problems, everything works as it should. On the second one, I can’t even install python, swears at the lack of service pack 1.
I tried to solve the problem by packing the script into an .exe file, I used pyinstaller for this. The resulting file did not work on the problem machine, it starts and hangs, it does not give any errors. On other machines (win7, win10) the .exe works as it should.
Is it possible to solve the problem without reinstalling Windows / without installing SP1?
Python version - 3.5, only lxml is used from additional modules
Answer the question
In order to leave comments, you need to log in
1) take Dependency Walker , look at the dependencies of the executable;
2) pay attention to the dependencies that are resolved from the system directories. Among them, you need to choose those that are not a mandatory part of the system (it is difficult to list specific ones, a screenshot of the DepWalk window will not hurt);
3) I can say for 90% that it will be Studio runtime (msvcr*.dll/msvcp*.dll).
4) satisfy these non-systemic dependencies. If it's a raynt, then it's desirable to put it normally (from the redist package), if not an option, then you can simply put the dll next to the exe.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question