Creating a Python .exe file: py2exe invalid image error?

The line that errors out is looking for an image in the Images folder. That's a path relative to the . Exe file created by py2exe.

So you need to be sure that that folder exists in correct position relative to the exe, and that it is populated with the images you are going to use. You can do this 2 ways. Either copy the folder to where the exe will reside, or use the data_files keyword arg in the script that makes the .exe.

Here's the pertinent part of one of my setup scripts, showing a data_files list of tuples and use of the data_files keyword arg later.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions