Bonjour
J'essai de compilé un programme avec Py2app sur Mac OS (Yosemite)
La compilation fonctionne mais l'app ne ce lance pas. dans les log systeme je me retrouve avec ceci:
Avez vous une idée ? ^o)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 May 18 10:44:10 Mac-mini-de-Joris.local server[1996]: Traceback (most recent call last): May 18 10:44:10 Mac-mini-de-Joris.local server[1996]: File "/Library/Python/2.7/site-packages/py2app-0.10-py2.7.egg/py2app/apptemplate/lib/site.py", line 22, in <module> May 18 10:44:10 Mac-mini-de-Joris.local server[1996]: import os May 18 10:44:10 Mac-mini-de-Joris.local server[1996]: ImportError: No module named os May 18 10:44:10 Mac-mini-de-Joris com.apple.xpc.launchd[1] (com.***.osx.backup.74440[1996]): Service exited with abnormal code: 1
Merci pour votre aide :-D
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 #!/usr/bin/python2.7 """ setup.py - script for building MyApplication Usage: % python setup.py py2app """ from distutils.core import setup import py2app opts = { 'includes' : ('os', 'sys', 'email','pytz' ), 'argv_emulation':1, 'plist': { 'CFBundleDisplayName': 'Patate 3.7', 'CFBundleGetInfoString': "Patate backdown", 'CFBundleIdentifier': "com.patate.osx.backdown", 'CFBundleVersion': "3.7.0", 'CFBundleShortVersionString': "3.7.0", 'NSHumanReadableCopyright': "Copyright 2016, Patate, All Rights Reserved" } } setup( app=['server.py'], options={'py2app':opts} )
Partager