-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make wallet portable? #41
Comments
Download the dmg file from the releases section and extract it https://github.com/sumoprojects/SumoGUIWallet/releases/download/v0.0.2/Sumokoin_Wallet-v0.0.2-MacOSX.dmg |
@sumogr Thanks for getting back to me! I have tried that but for some reason the wallet crashes on my mac (MacOS 10.13) When trying to compile it I use (Python 2.7 with Anaconda2) pyinstaller --add-data Resources:Resources -i Resources/icons/sumokoin.ico -w -n SumoGUIWallet wallet.py And keep on getting this error : Would you know how to link those libs ?
|
Edit : This is what i am getting now :
|
Just tried but still getting the same issue, here's the full output, hope this gives you more details,
|
Ok the QtCore.so cannot locate pyside libs due to wrong path. Copy paste on your terminal and run the below.(I know it is long it fixes the path of each library one by one) If it fails to execute try replacing all && with ; (or run each install_name_tool command one by one) sudo install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtCore.so && sudo install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtCore.so && sudo install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtGui.so && sudo install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtGui.so && sudo install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtOpenGL.so && sudo install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtOpenGL.so && sudo install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtDeclarative.so && sudo install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtDeclarative.so && sudo install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtHelp.so && sudo install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtHelp.so && sudo install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtMultimedia.so && sudo install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtMultimedia.so && sudo install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtNetwork.so && sudo install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtNetwork.so && sudo install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtScript.so && sudo install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtScript.so && sudo install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtScriptTools.so && sudo install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtScriptTools.so && sudo install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtSql.so && sudo install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtSql.so && sudo install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtSvg.so && sudo install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtSvg.so && sudo install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtTest.so && sudo install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtTest.so && sudo install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtUiTools.so && sudo install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtUiTools.so && sudo install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtWebKit.so && sudo install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtWebKit.so && sudo install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtXml.so && sudo install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtXml.so && sudo install_name_tool -change @rpath/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtXmlPatterns.so && sudo install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/QtXmlPatterns.so && sudo install_name_tool -change @rpath/libshiboken-python2.7.1.2.dylib @loader_path/libshiboken-python2.7.1.2.dylib /usr/local/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.dylib |
Ok thanks I appreciate the help! Just did it this is what I get now
Also for clarifiation, for install_name_tool should it be :
Or
|
Sorry dude f...ing github messed up my copy paste due to the @ character before rpath |
Ok I think we are making progress! The error for missing lib is gone, this is what I get now but app is still not functionning :
Now this line :
missing module named PyQt4 - imported by /usr/local/lib/python2.7/site-packages/PyInstaller/loader/rthooks/pyi_rth_qt4plugins.py |
Hmm some of these modules aren't even in pip so I'm really wondering how you guys compiled this in the first place! another solution would be if you guys could provide the setup.py to compile the software? pyinstaller is pretty messy but with a setup.py script the same way we use "CmakeLists.txt" in other projects.. I could use py2app on mac, and other users who need to compile from source could as well, either with py2app on Mac or py2exe on windows .. |
Yes Sir!
2018-03-10 19:10 GMT-05:00 sumogr <[email protected]>:
… Wait a sec have you downloaded the binaries and extract them in the
resources/bin directory before running the app?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#41 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhJqW4dCdV2b-YE9ft1eO1O7o8dbhU4Uks5tdGtngaJpZM4SkeD0>
.
--
*CONFIDENTIALITY NOTICE:* The contents of this email message and any
attachments are intended solely for the addressee(s) and may contain
*confidential* and/or privileged information and may be legally protected
from disclosure. If you are not the intended recipient of this message or
their agent, or if this message has been addressed to you in error, please
immediately alert the sender by reply email and then delete this message
and any attachments. If you are not the intended recipient, you are hereby
notified that any use, dissemination, copying, or storage of this message
or its attachments is strictly prohibited.
|
:) I am just trying to help you here, I never had any reason to compile it into an app since it works both from source or the released app for me. Anyhow we are most likely missing a step since the first problem with the libs path wasnot an actual code issue. I ll ask for a walkthrough on how to compile the source into an app and post it here. |
Ok! Thank you so much!
… On 10 Mar 2018, at 19:29, sumogr ***@***.***> wrote:
:) I am just trying to help you here, I never had any reason to compile it into an app since it works both from source or the released app for me. Anyhow we are most likely missing a step since the first problem with the libs path wasnot an actual code issue. I ll ask for a walkthrough of how to compile the source into an app and post it here.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@sumogr quick update Ive been installing some of these modules with pip and easy_install so the warning list is reducing but there still are a lot of modules that cannot be found pip or easy_install Hope this helps!
|
pip install -r requirements.txt should have solved that you know |
Ok thanks! I will try and write full instructions on how to compile from source for anyone interested |
@sumogr could you confirm the pyinstaller command? I'm using
|
On your source Resources folder dont forget to create a subfolder named bin and paste into it the sumo-wallet-cli sumo-wallet-rpc and sumokoind binaries. Doublecheck they are bundled into the app after it is produced. |
Ok thanks, I installed the modules from http://packages.pypy.org/ but the warning still persist about missing modules even though installation is successful .. I checked and the binaries are bundled into SumoGUIWallet.app/Contents/MacOS/Resources/bin, so are the sumokoin icon files and www resources so technically should be working but still nothing functionnal |
The Resoures folder should have been bundled outside the MacOS folder. |
Yes you are right my bad it's there as : SumoGUIWallet.app/Contents/Resources/Resources/bin On a side note I compile a few other Python scripts and they give similar warnings but the app are fully functional on MacOS High Sierra ... I will keep on digging, the wallet is working fine with |
ok |
@sumogr Could you share the sumoGUIWallet.spec file used by pyinstaller to compile? I think thats where my issue is ... |
There you go https://pastebin.com/4EqnVjuu Vu will reply as well shortly on this thread and give you step by step instructions |
Ok this is very helpful thanks! Whenever we get the step by step instructions I'll test them and let you know, maybe could be added to readme.md :) |
@sumogr Ok I used the .spec you provided and compiling is successful, BUT, when trying to open the app it says
which I find here in this file : Line 78 in f9db8ce
So I can compile the app but can't open it because the hash isn't the same ? |
it's because of the Javascript/css files in Resources directory
|
If you still fail, download the released app, open it with 7-zip and just copy the contents of the Resources folder in your app Resources folder |
Ok thanks! That actually works now gui opens but when creating wallet I get stuck at
|
check folder permissions |
Ok thanks! App compiles successfully but still stuck at |
@sumogr sorry to bother you i'm having an issue again with the sumo gui, it recompiled it just now on MacOS, copied the 'resources' in contents/resources and the app crashes on startup, but works perfectly in console mode, have you experienced this issue ? I compiled it with the .spec file you provided and all seems to be there using pyinstaller 3.3.1 python 2.7 |
Been using this with command "python wallet.py" and was wondering how to compile this into an .app on Mac ?
I tried running py2app but doesn't work or i do not have the right setup.py
The text was updated successfully, but these errors were encountered: