sumoprojects / SumoGUIWallet

Sumokoin GUI Wallet
Other
38 stars 46 forks source link

Sumokoin python 3 port #13

Closed Muxoid closed 6 years ago

Muxoid commented 6 years ago

This is a start of a python3 and PyQt5 port for Arch Linux and future compatibility.

billaue2 commented 6 years ago

Did you include Sumokoin core source codes to Resources? The binaries should be compiled separately at diff repo and drop in Resources\bin instead.

Muxoid commented 6 years ago

Yes I have, the sumokoind manager works and syncs with the blockchain there seems to be a problem with the connection to the webUI, IGD port mapping or the CLImanager but they should be working.

I have managed to get the process manager to sync with the blockchain but I can not get past this point.

screenshot_20171024_011952

It seems to be a problem with the sockets or with the IGD port mapping.

python wallet.py /home/shawnco/SumoGUIWallet/Resources/www/scripts/jquery-1.9.1.min.js c12f6098e641aaca96c60215800f18f5671039aecf812217fab3c0d152f6adb4 /home/shawnco/SumoGUIWallet/Resources/www/scripts/bootstrap.min.js 2979f9a6e32fc42c3e7406339ee9fe76b31d1b52059776a02b4a7fa6a4fd280a /home/shawnco/SumoGUIWallet/Resources/www/scripts/mustache.min.js 3258bb61f5b69f33076dd0c91e13ddd2c7fe771882adff9345e90d4ab7c32426 /home/shawnco/SumoGUIWallet/Resources/www/scripts/jquery.qrcode.min.js f4ccf02b69092819ac24575c717a080c3b6c6d6161f1b8d82bf0bb523075032d /home/shawnco/SumoGUIWallet/Resources/www/scripts/utils.js d0c6870ed19c92cd123c7443cb202c7629f9cd6807daed698485fda25214bdb4 /home/shawnco/SumoGUIWallet/Resources/www/css/bootstrap.min.css 2e4ceda16bdb9f59b01ee01552e8a353ee7cc4e4ebac7d51413106094384ef37 /home/shawnco/SumoGUIWallet/Resources/www/css/font-awesome.min.css b8b02026a298258ce5069d7b6723c2034058d99220b6612b54bc0c5bf774dcfb /home/shawnco/SumoGUIWallet/Resources/www/css/fonts/fontawesome-webfont.ttf 7b5a4320fba0d4c8f79327645b4b9cc875a2ec617a557e849b813918eb733499 /home/shawnco/SumoGUIWallet/Resources/www/css/fonts/glyphicons-halflings-regular.ttf e395044093757d82afcb138957d06a1ea9361bdcf0b442d06a18a8051af57456 /home/shawnco/SumoGUIWallet/Resources/www/css/fonts/RoboReg.ttf dc66a0e6527b9e41f390f157a30f96caed33c68d5db0efc6864b4f06d3a41a50 libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: known incorrect sRGB profile [13:22:33] [INFO] Starting [Sumokoin GUI Wallet v.0.0.1]... Error listening the socket. Try to restart application... Starting app... [13:22:34] [INFO] [sumokoind] started [13:22:34] [DEBUG] [sumokoind]>>> b'Creating the logger system' [13:22:34] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:34.069719 Initializing cryptonote protocol...' [13:22:34] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:34.069735 Cryptonote protocol initialized OK' [13:22:34] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:34.071747 Initializing p2p server...' [13:22:34] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:34.367175 Set limit-up to 2048 kB/s' [13:22:34] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:34.371055 Set limit-down to 8192 kB/s' [13:22:34] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:34.371081 Set limit-up to 2048 kB/s' [13:22:34] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:34.371096 Set limit-down to 8192 kB/s' [13:22:34] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:34.372681 Binding on 0.0.0.0:19733' [13:22:34] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:34.372742 Net service bound to 0.0.0.0:19733' [13:22:34] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:34.372747 Attempting to add IGD port mapping.' [13:22:38] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:38.377055 No IGD was found.' [13:22:38] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:38.377097 P2p server initialized OK' [13:22:38] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:38.378455 Initializing core rpc server...' [13:22:38] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:38.378490 Binding on 127.0.0.1:19734' [13:22:38] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:38.378526 Core rpc server initialized OK on port: 19734' [13:22:38] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:38.378538 Initializing core...' [13:22:38] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:38.382485 Loading blockchain from folder /home/shawnco/.sumokoin/lmdb ...' [13:22:38] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:38.382516 option: fast' [13:22:38] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:38.382521 option: async' [13:22:38] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:38.382524 option: 1000' [13:22:38] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:38.482602 Blockchain initialized. last block: 62912, d0.h0.m22.s51 time ago, current difficulty: 833638878' [13:22:39] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:39.366756 Core initialized OK' [13:22:39] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:39.366789 Starting core rpc server...' [13:22:39] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:39.366795 Run net_service loop( 2 threads)...' [13:22:39] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:39.366866 [SRV_MAIN]Core rpc server started ok' [13:22:39] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:39.366937 [SRV_MAIN]Starting p2p net loop...' [13:22:39] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:39.366963 [SRV_MAIN]Run net_service loop( 10 threads)...' [13:22:40] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:40.367135 [P2P1]' [13:22:40] [DEBUG] [sumokoind]>>> b'**********************************************************************' [13:22:40] [DEBUG] [sumokoind]>>> b'The daemon will start synchronizing with the network. It may take up to several hours.' [13:22:40] [DEBUG] [sumokoind]>>> b'' [13:22:40] [DEBUG] [sumokoind]>>> b'You can set the level of process detailization* through "set_log <level>" command*, where <level> is between 0 (no details) and 4 (very verbose).' [13:22:40] [DEBUG] [sumokoind]>>> b'' [13:22:40] [DEBUG] [sumokoind]>>> b'Use "help" command to see the list of available commands.' [13:22:40] [DEBUG] [sumokoind]>>> b'' [13:22:40] [DEBUG] [sumokoind]>>> b'Note: in case you need to interrupt the process, use "exit" command. Otherwise, the current progress won\'t be saved.' [13:22:40] [DEBUG] [sumokoind]>>> b'**********************************************************************' [13:22:42] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:42.005506 [P2P1][46.159.28.125:19733 OUT]Sync data returned a new top block candidate: 62913 -> 62924 [Your node is 11 blocks (0 days) behind]' [13:22:42] [DEBUG] [sumokoind]>>> b'SYNCHRONIZATION started' [13:22:42] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:42.465030 [P2P9][185.154.15.59:19733 OUT]Sync data returned a new top block candidate: 62913 -> 62924 [Your node is 11 blocks (0 days) behind]' [13:22:42] [DEBUG] [sumokoind]>>> b'SYNCHRONIZATION started' [13:22:44] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:44.423525 [P2P9][190.77.201.5:19733 OUT]Sync data returned a new top block candidate: 62913 -> 62924 [Your node is 11 blocks (0 days) behind]' [13:22:44] [DEBUG] [sumokoind]>>> b'SYNCHRONIZATION started' [13:22:45] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:45.259533 [P2P7][151.236.56.24:19733 OUT]Sync data returned a new top block candidate: 62914 -> 62924 [Your node is 10 blocks (0 days) behind]' [13:22:45] [DEBUG] [sumokoind]>>> b'SYNCHRONIZATION started' [13:22:51] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:51.037794 [P2P1][96.72.92.109:19733 OUT]Sync data returned a new top block candidate: 62921 -> 62924 [Your node is 3 blocks (0 days) behind]' [13:22:51] [DEBUG] [sumokoind]>>> b'SYNCHRONIZATION started' [13:22:52] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:52.004882 [P2P8]Skipping prepare blocks. Blocks exist.' [13:22:53] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:53.497459 [P2P2][185.154.15.59:19733 OUT]Synced 62924/62924' [13:22:53] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:53.497854 [P2P2][185.154.15.59:19733 OUT] SYNCHRONIZED OK' [13:22:53] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:53.498029 [P2P2]' [13:22:53] [DEBUG] [sumokoind]>>> b'**********************************************************************' [13:22:53] [INFO] You are now synchronized with the network [13:22:53] [DEBUG] [sumokoind]>>> b'' [13:22:53] [DEBUG] [sumokoind]>>> b'Please note, that the blockchain will be saved only after you quit the daemon with "exit" command or if you use "save" command.' [13:22:53] [DEBUG] [sumokoind]>>> b'Otherwise, you will possibly need to synchronize the blockchain again.' [13:22:53] [DEBUG] [sumokoind]>>> b'' [13:22:53] [DEBUG] [sumokoind]>>> b'Use "help" command to see the list of available commands.' [13:22:53] [DEBUG] [sumokoind]>>> b'**********************************************************************' [13:22:53] [INFO] [sumo-wallet-cli] started running WalletCliManager [13:22:53] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:53.498957 [P2P8][96.72.92.109:19733 OUT]Synced 62924/62924' [13:22:53] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:22:53.543311 [P2P8][96.72.92.109:19733 OUT] SYNCHRONIZED OK' [13:23:00] [INFO] Closing new wallet dialog... [13:23:00] [INFO] Sumokoin Wallet is about to quit... [13:23:00] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:23:00.500048 [node] Stop signal sent' [13:23:00] [DEBUG] [sumokoind]>>> b'Stop signal sent' [13:23:00] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:23:00.500417 [node] Stop signal sent' [13:23:02] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:23:02.632429 [SRV_MAIN]net_service loop stopped.' [13:23:02] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:23:02.632452 [SRV_MAIN]p2p net loop stopped' [13:23:02] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:23:02.632466 [SRV_MAIN]Stopping core rpc server...' [13:23:02] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:23:02.632521 [SRV_MAIN]Node stopped.' [13:23:02] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:23:02.632536 [SRV_MAIN]Deinitializing rpc server...' [13:23:02] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:23:02.632593 [SRV_MAIN]Deinitializing p2p...' [13:23:02] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:23:02.633785 [SRV_MAIN]Deinitializing core...' [13:23:02] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:23:02.660619 [SRV_MAIN]Stopping cryptonote protocol...' [13:23:02] [DEBUG] [sumokoind]>>> b'2017-Oct-24 13:23:02.660880 [SRV_MAIN]Cryptonote protocol stopped successfully' [13:23:03] [INFO] [sumokoind] stopped

I can not seem to find what is causing it to return to the wallet anitializing screen and there are no major errors. If someone has any insight into what is causing this please let me know.

billaue2 commented 6 years ago

I'll create a new branch for Py3 + PyQt5. Can you please make another PR to that branch?

P/S: Please don't include daemon codes from Resources as wallet doesn't call daemon codes directly but via RPC API.