Title: Electron Cash 3.x Linux versions do not work Post by: A1exander on January 08, 2018, 11:35:09 AM Excuse me for posting here, but I hope it is appropriate to write about Electrum forks too. have a Electron Cash 2.9.4 and today i've tried to upgrade to 3.1.1 (I have a strong password and I rarely run Electron Cash so I'm not especially worried by the latest vulnerability). 3.1.1 does not run, showing a message:
Error: No module named 'dns'. Try 'sudo pip install <module-name>' I have python-dns and python3-dns packages installed (I'm using Debian). I've tried to download and run 3.1 and 3.0 - they do not work too, version 3.1 fails with a different message: Error: No module named 'xmlrpclib'. Try 'sudo pip install <module-name>' Electrum 3.0.5 runs fine on the same system (in watch-only mode, but I suppose it does not matter). It seems that Electron Cash 3.0 and 3.1.1 distributions lack 'packages' folder, which is present in both Electrum 3.0.5 and Electron Cash 2.9.4. There is such a folder in Electron Cash 3.1, but it seems to be incomplete. Look like I have to continue to use 2.9.4 and wait for a new, working version. Title: Re: Electron Cash 3.x Linux versions do not work Post by: xdrpx on January 08, 2018, 06:19:09 PM I've just downloaded version 3.1.1 from source and was able to double-click on electrum (and ran from command line as well later) and it ran just fine. It doesn't contain the packages folder (probably assuming that you're expecting the dependencies to be in here).
Since you already have dnspython for python3 not sure why you're getting that module missing error. Have you tried installing dnspython by running Code: sudo apt-get install python-dnspython Code: sudo pip install jsonrpclib-pelix Title: Re: Electron Cash 3.x Linux versions do not work Post by: A1exander on January 08, 2018, 06:41:11 PM I've just downloaded version 3.1.1 from source and was able to double-click on electrum (and ran from command line as well later) and it ran just fine. It doesn't contain the packages folder (probably assuming that you're expecting the dependencies to be in here). And such assumption is a very wrong approach provided that there is no list of required dependences. Since you already have dnspython for python3 not sure why you're getting that module missing error. Have you tried installing dnspython by running Code: sudo apt-get install python-dnspython Code: sudo pip install jsonrpclib-pelix Thanks, I've found that I have dnspython for python 2.x, not for python 3.x (package python3-dnspython). Installing it fixed the first error, but now there is another: Error: No module named 'pyaes'. Try 'sudo pip install <module-name>' I've installed all cryptography-related packages for python 3 I was able to find, but it did not help. Title: Re: Electron Cash 3.x Linux versions do not work Post by: xdrpx on January 09, 2018, 07:36:13 AM Okay, I was able to do a bit of digging and found out these are the necessary dependencies you'll require:
In Setup.py it says this is the package directory: Code: https://github.com/fyookball/electrum/blob/master/setup.py I checked in the contrib directory and found requirements.txt https://github.com/fyookball/electrum/blob/master/contrib/requirements.txt Code: certifi==2017.11.5 In contrib/make_packages I see it will install the following packages: Code: if [ `uname` == "Darwin" ]; then Hence by the looks of it it should pip3 install everything in requirements.txt. Can you try running ./make_packages or also try python3 setup.py install and check if this does it for you as well. Title: Re: Electron Cash 3.x Linux versions do not work Post by: A1exander on January 09, 2018, 05:14:50 PM I checked in the contrib directory and found requirements.txt https://github.com/fyookball/electrum/blob/master/contrib/requirements.txt Code: certifi==2017.11.5 Terrible. One package, python-pyaes is not present in Debian Stable at all, it is in Testing only. The required version of python-certifi is also available in Testing only. Hence, it is completely unusable. In contrib/make_packages I see it will install the following packages: Code: if [ `uname` == "Darwin" ]; then Hence by the looks of it it should pip3 install everything in requirements.txt. Can you try running ./make_packages or also try python3 setup.py install and check if this does it for you as well. There is no 'contrib' folder in the downloaded ElectronCash-3.1.1.tar.gz archive. 'python3 setup.py install --prefix ~' (I do not want to run it as root) fails with: TEST FAILED: /home/az/lib/python3.4/site-packages/ does NOT support .pth files error: bad install directory or PYTHONPATH I've tried to copy the 'packages' folder from Electrum 3.0.5 to Electron Cash 3.1.1. It started, asked for password, showed a window that it needs to convert the wallet to a new format and then crashed. Fortunately, I have backups. It is absolutely unacceptable for a financial application, especially for a fork of application which is working perfectly! It is broken beyond all repair and I suppose I only have an option to moving to another wallet. Title: Re: Electron Cash 3.x Linux versions do not work Post by: A1exander on January 09, 2018, 06:30:46 PM Well, version 3.1.2 appeared on the web site, with 'packages' directory inside. It runs, asks for password, shows wallet conversion dialog, then crashes with error:
File "/home/az/Programs/Electron Cash-3.1.2/lib/address.py", line 80, in hash_to_hex_str return bytes(reversed(x)).hex() AttributeError: 'bytes' object has no attribute 'hex' Nice try, but still unusable... |