bonjour,
je veux faire un éxécutable de mon programme en python.
j'ai suivi la methode suivante:
j'ai créé un fichier setup.py dans lequel j'ai copié ceci:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
# setup.py
from distutils.core import setup
import py2exe
setup(console=["ec2d.py"])
puis la console j'ai tapé:
ça m'affiche le message suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
C:\Python24\projet>python setup.py py2exe
running py2exe
*** searching for required modules ***
*** parsing results ***
creating python loader for extension 'zlib'
creating python loader for extension '_tkinter'
creating python loader for extension 'unicodedata'
creating python loader for extension 'bz2'
*** finding dlls needed ***
Traceback (most recent call last):
  File "setup.py", line 4, in ?
    setup(console=["general.py"])
  File "c:\python24\lib\distutils\core.py", line 149, in setup
    dist.run_commands()
  File "c:\python24\lib\distutils\dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "c:\python24\lib\distutils\dist.py", line 966, in run_command
    cmd_obj.run()
  File "c:\python24\lib\site-packages\py2exe\build_exe.py", line 223, in run
    self._run()
  File "c:\python24\lib\site-packages\py2exe\build_exe.py", line 283, in _run
    dlls = self.find_dlls(extensions)
  File "c:\python24\lib\site-packages\py2exe\build_exe.py", line 367, in find_dl
ls
    self.dll_excludes)
  File "c:\python24\lib\site-packages\py2exe\build_exe.py", line 925, in find_de
pendend_dlls
    import py2exe_util
ImportError: DLL load failed with error code 193
et j'arrive pas à retrouver mon executable dans le dossier dist.
merci de m'aider