Bonjour,

j'essaye de créer une application avec py2app.
J'ai créé un programme graphique avec QtDesigner et PyQt4 et python 3.4.3

Dans le main, j'importe:
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
 
from PyQt4 import QtGui
from DialogServeur import Ui_DialogServeurs
from DialogMenuVoIP import Ui_DialogMenu
from DialogListing import Ui_DialogList
from DialogConfigServeurBruxelles import Ui_DialogConfServBxl
from DialogConfigServeurLiege import Ui_DialogConfServLie
from DialogConfigServeurParis import Ui_DialogConfServPar
from DialogAjoutUtil import Ui_DialogAjoutUtil
from DialogSuppUtil import Ui_DialogSuppUtil
from DialogModUtil import Ui_DialogModUtil
from DialogPopUp import Ui_DialogPopUp
from DialogAjoutConf import Ui_DialogAjoutConf
from DialogSuppConf import Ui_DialogSuppConf
from DialogModConf import Ui_DialogModConf
from DialogAjoutIvr import Ui_DialogAjoutIvr
from DialogSuppIvr import Ui_DialogSuppIvr
from DialogModIvr import Ui_DialogModIvr
from DialogAjoutIax import Ui_DialogAjoutIax
from DialogSuppIax import Ui_DialogSuppIax
from DialogModIax import Ui_DialogModIax
from Client import*
import os, sys
from sys import platform as _platform
import configparser
import shutil
Je crée un fichier setup.py tel que:
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
 
"""
This is a setup.py script generated by py2applet
 
Usage:
    python setup.py py2app
"""
 
from setuptools import setup
 
APP = ['main.py']
DATA_FILES = []
OPTIONS = {'argv_emulation': True}
 
setup(
    app=APP,
    data_files=DATA_FILES,
    options={'py2app': OPTIONS},
    setup_requires=['py2app'],
)
J'utilise ensuite cette commande pour créer l'application
python3 setup.py py2app --includes "sip"
et j'obtiens ceci: et l'application crash trois seconde après que j'ai cliqué dessus..
Modules not found (unconditional imports):
* __main__.__requires__ (bdb, pdb)
* _imp._fix_co_filename (importlib)
* _imp.acquire_lock (importlib)
* _imp.get_frozen_object (importlib)
* _imp.init_builtin (importlib)
* _imp.init_frozen (importlib)
* _imp.is_builtin (importlib)
* _imp.is_frozen (importlib)
* _imp.is_frozen_package (importlib)
* _imp.load_dynamic (importlib)
* _imp.lock_held (importlib)
* _imp.release_lock (importlib)
* _operator._compare_digest (operator)
* _thread._local (functools)
* _thread.allocate_lock (functools)
* _thread.get_ident (functools)
* _thread.stack_size (functools)
* _weakref.CallableProxyType (_weakrefset)
* _weakref.ProxyType (_weakrefset)
* _weakref.ReferenceType (_weakrefset)
* _weakref.getweakrefcount (_weakrefset)
* _weakref.getweakrefs (_weakrefset)
* _weakref.proxy (_weakrefset)
* _winapi.INFINITE (subprocess)
* _winapi.WAIT_ABANDONED_0 (subprocess)
* _winapi.WAIT_OBJECT_0 (subprocess)
* _winapi.WAIT_TIMEOUT (subprocess)
* builtins.abs (subprocess)
* builtins.str (subprocess)
* errno.ENOENT (os)
* itertools.count (tokenize)
* itertools.islice (tokenize)
* itertools.starmap (tokenize)
* itertools.tee (tokenize)
* java.System (java.lang)
* nt._getfinalpathname (os)
* nt._getfullpathname (os)
* nt._getvolumepathname (os)
* nt._isdir (os)
* org (copy, org.python.core)
* org.PyStringMap (org.python)
* org.python (copy, pickle)
* org.python.core (pickle)
* org.python.core.PyStringMap (copy)
* packaging (pkg_resources)
* packaging.specifiers (pkg_resources)
* posixpath.abspath (os)
* pwd.getpwnam (webbrowser)
* sys.maxsize (os)
* sys.modules (os)
* sys.platform (os)

Modules not found (conditional imports):
* Crypto.Util.py21compat (Crypto.Cipher.blockalgo)
* java (platform)
* java.lang (platform)
* urlparse (pkg_resources)

Done!
Que dois-je faire pour qu'il trouve les modules?
Merci.