Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #49243
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!eweka.nl!hq-usenetpeers.eweka.nl!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <boxuancui@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'scripts': 0.03; 'logo.': 0.05; '-*-': 0.07; 'mode:': 0.09; 'spec': 0.09; 'python': 0.11; 'gui': 0.12; "'courier": 0.16; '10px;': 0.16; '14px;': 0.16; '1em;': 0.16; '238,': 0.16; 'advance!': 0.16; 'appreciated!': 0.16; 'baseline;': 0.16; 'both;': 0.16; 'break-word;': 0.16; 'crashed': 0.16; 'diagnosis?': 0.16; 'exe': 0.16; 'fyi,': 0.16; 'i.e.,': 0.16; 'icon': 0.16; 'left;': 0.16; 'max-height:': 0.16; 'menlo,': 0.16; 'monaco,': 0.16; 'monospace,': 0.16; "new',": 0.16; 'opened.': 0.16; 'pyinstaller': 0.16; 'repeatedly.': 0.16; 'rgb(255,': 0.16; 'skip:~ 20': 0.16; 'subject:packaging': 0.16; 'subject:under': 0.16; 'word-wrap:': 0.16; 'z-index:': 0.16; 'subject:python': 0.16; 'exception': 0.16; 'app': 0.19; 'basically': 0.19; 'written': 0.21; 'position:': 0.24; 'subject:problem': 0.24; 'file.': 0.24; 'rest': 0.29; "doesn't": 0.30; 'went': 0.31; 'code': 0.31; "skip:' 10": 0.31; '255,': 0.31; 'app.': 0.31; 'crash': 0.31; 'file:': 0.31; 'padding:': 0.31; 'file': 0.32; 'could': 0.34; 'subject:with': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'there': 0.35; 'version': 0.36; 'charset:us-ascii': 0.36; 'thanks': 0.36; 'skip:- 20': 0.37; 'two': 0.37; 'received:10': 0.37; 'auto;': 0.38; 'message-id:@gmail.com': 0.38; 'window': 0.38; 'to:addr:python- list': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'changed': 0.39; 'skip:i 50': 0.60; 'first': 0.61; 'header:Message-Id:1': 0.63; 'different': 0.65; 'here': 0.66; 'arial,': 0.74; 'received:10.10': 0.74; 'goal': 0.75; 'sans-serif;': 0.78; 'issues:': 0.84; 'received:10.10.10': 0.84; 'online,': 0.96 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:subject:message-id:date:to:mime-version:x-mailer; bh=MLG9RAJSKBsQEqD4/4iYCB/x4WCR06JlIb6KAVDaLrA=; b=zH+0zE3S58l80NE0DPE6ZJZ3vXuB852oDlfJnSfYcighc6Y4ascdVDEPHqhr8N4PqL kqjutKo/Suka0NxsJJkNlRLSNqFM3zOvM4y46gXU2j0g4FzGgMcAxDX4sW+1Mk6FOXCl Fuq7D/spX5O4l6tG3OXSk+f24kkDuOBc+REUT0WHnE9JfdMiMPPTPNfKqZgASDHmfnHk n3BYMkbZWI+l9agXjP+93RoA2Z6tXFuwFkDHoZQZMchie9GYulDpLWCFCxHekNdrK5zi J/4oIlEQlB4cYmOAddRvX5GVovmozERNXKXQq1ivgmkrxRptJl1bJkJmMEtGPVbzuxOd YjfQ== |
| X-Received | by 10.49.35.34 with SMTP id e2mr628857qej.67.1372190599883; Tue, 25 Jun 2013 13:03:19 -0700 (PDT) |
| From | Boxuan Cui <boxuancui@gmail.com> |
| Content-Type | multipart/alternative; boundary="Apple-Mail=_157FA1A1-02E8-4E25-AC59-614B3B841AD7" |
| Subject | problem with pyinstaller: packaging multiple python scripts under Mac |
| Date | Tue, 25 Jun 2013 16:03:16 -0400 |
| To | python-list@python.org |
| Mime-Version | 1.0 (Mac OS X Mail 6.5 \(1508\)) |
| X-Mailer | Apple Mail (2.1508) |
| X-Mailman-Approved-At | Wed, 26 Jun 2013 12:41:30 +0200 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3885.1372243291.3114.python-list@python.org> (permalink) |
| Lines | 503 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1372243291 news.xs4all.nl 15868 [2001:888:2000:d::a6]:38311 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:49243 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
This is my first time using pyinstaller. My goal is to build an .app in Mac. The app is basically a GUI written in PySide, and I have about 7 different Python scripts + 1 .png file. The main file calls 4 of the files, and the 4 files will call the rest of the 2 files repeatedly. The .png file is nothing but the window logo. Could someone help me with some diagnosis? I do not know what went wrong. I searched a lot of documentations online, i.e., change spec, add import, ... etc. but my app still doesn't run.
FYI, Pyinstaller could generate an app for me, but there are two issues:
1. Icon is not changed for the app.
2. App crashes when opened.
My Python version is 2.7.5 and I am using PyInstaller-2.0. Here is my code for packaging:
python pyinstaller.py --onefile --windowed --name=MyApplication -i ~/Documents/AASource/icon.ico ~/Documents/AASource/Scripts/main_file.py
Here is the spec file:
# -*- mode: python -*-
a = Analysis(['/Users/boxuancui/Documents/AASource/Scripts/main_file.py'],
pathex=['/Users/boxuancui/Documents/pyinstaller-2.0'],
hiddenimports=[],
hookspath=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name=os.path.join('dist', 'MyApplication'),
debug=False,
strip=None,
upx=True,
console=False , icon='/Users/boxuancui/Documents/AASource/icon.ico')
app = BUNDLE(exe,
name=os.path.join('dist', 'MyApplication.app'))
Here is part of the crash message:
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000054d8
Thanks in advance! Any help will be appreciated!
Best,
Boxuan
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
problem with pyinstaller: packaging multiple python scripts under Mac Boxuan Cui <boxuancui@gmail.com> - 2013-06-25 16:03 -0400
csiph-web