From 554eb51f916e857d0e258b29261dc7924c45cde5 Mon Sep 17 00:00:00 2001 From: "Helmut K. C. Tessarek" Date: Fri, 20 Dec 2013 19:52:01 -0500 Subject: [PATCH 1/3] if you just run "pyrcc4 icons.qrc -o gui/icons_rc.py" as stated in the README, you get the following error when starting Electrum Error: Could not import icons_rc.py, please generate it with: 'pyrcc4 icons.qrc -o gui/qt/icons_rc.py' --- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README b/README index 10bd9c58..4b25f5ce 100644 --- a/README +++ b/README @@ -26,7 +26,7 @@ https://en.bitcoin.it/wiki/Electrum == HOW OFFICIAL PACKAGES ARE CREATED == python mki18n.py -pyrcc4 icons.qrc -o gui/icons_rc.py +pyrcc4 icons.qrc -o gui/qt/icons_rc.py python setup.py sdist --format=zip,gztar On Mac OS X: From 1ed00e108b3db538b53e87d9d1828a0db2725f92 Mon Sep 17 00:00:00 2001 From: "Helmut K. C. Tessarek" Date: Fri, 20 Dec 2013 19:52:41 -0500 Subject: [PATCH 2/3] ports do not necessarily install qt_menu.nib in /opt/local/lib/Resources/ it could be anywhere under /opt/local, changed code to search /opt/local, if necessary --- setup-release.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup-release.py b/setup-release.py index d5fb297d..5e8e205b 100644 --- a/setup-release.py +++ b/setup-release.py @@ -73,7 +73,11 @@ if sys.platform == 'darwin': qt_menu_location = "/opt/local/lib/Resources/qt_menu.nib" else: # No dice? Then let's try the brew version - qt_menu_location = os.popen("find /usr/local/Cellar -name qt_menu.nib | tail -n 1").read() + if os.path.exists("/usr/local/Cellar"): + qt_menu_location = os.popen("find /usr/local/Cellar -name qt_menu.nib | tail -n 1").read() + # no brew, check /opt/local + else: + qt_menu_location = os.popen("find /opt/local -name qt_menu.nib | tail -n 1").read() qt_menu_location = re.sub('\n', '', qt_menu_location) if (len(qt_menu_location) == 0): From 33a7e5c9ea17111e424a312431dc8b3193162bb7 Mon Sep 17 00:00:00 2001 From: "Helmut K. C. Tessarek" Date: Fri, 20 Dec 2013 21:21:35 -0500 Subject: [PATCH 3/3] fix problem https://github.com/spesmilo/electrum/issues/454 --- setup-release.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-release.py b/setup-release.py index 5e8e205b..87912934 100644 --- a/setup-release.py +++ b/setup-release.py @@ -35,7 +35,7 @@ if sys.platform == 'darwin': extra_options = dict( setup_requires=['py2app'], app=[mainscript], - options=dict(py2app=dict(argv_emulation=False, + options=dict(py2app=dict(argv_emulation=True, includes=['PyQt4.QtCore', 'PyQt4.QtGui', 'sip'], packages=['lib', 'gui', 'plugins'], iconfile='electrum.icns',