Solution

  • Thread starter Gagou Final Fantasy
  • Start date
G

Gagou Final Fantasy

A common problem when you generate executable on Windows 7 and deploy
on Windows XP.

According with the py2exe tutorial, you need include the MVC DLL. But
the tutorial is old and the script given search only in one directory.
Before, the directory contained all DLL and the manifest, but nowadays
it contains only the DLL. You need to specify another directory for
the manifest file. If you don't do that, you will have this kind of
error:

"this application has failed to start because the application
configuration is incorrect"

If you are on Windows 7 64 bits, you need the Microsoft Visual C
runtime DLL. Don't forget the manifest that isn't in the same
directory in Windows 7. You need to adapt the script like this:

data_files = [("VC90", glob(r'C:\Windows\winsxs
\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91\*.*')),
("VC90", glob(r'C:\Windows\winsxs\Manifests
\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91.manifest'))
]
setup(
data_files=data_files,
console = [{'script': "C:\test\my_program.py"}],
zipfile = None,
)


Now you can deploy the "dist" directory that contains all files and
dependencies.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top