Title: Can't install Electrum on Ubuntu Post by: patrick_here on April 01, 2018, 04:14:41 AM I have wasted hours trying to install Electrum on Ubuntu. I tried following the instructions on the Electrum.org site:
Download and untar Electrum-3.1.2.tar.gz To install it on your system, run: 'sudo python3 setup.py install' However the install fails because it's unable to install qrcode 6.0 (it's a dependency). So I tried to download the qrcode6.0 package from the python site and that install fails too (many python error messages about "UNKNOWN_xxx"). Has anyone else run into this problem or does anyone know the solution? Title: Re: Can't install Electrum on Ubuntu Post by: Abdussamad on April 01, 2018, 07:32:33 AM Use pip3 as per the instructions on the download page at electrum.org. pip3 will install the dependencies for you.
alternatively i made this script here which automates it for you: https://github.com/BitcoinsPakistan/electrum-install Title: Re: Can't install Electrum on Ubuntu Post by: patrick_here on April 01, 2018, 04:15:27 PM Use pip3 as per the instructions on the download page at electrum.org. pip3 will install the dependencies for you. The "pip3" method also fails for me ...for a different reason: $ sudo pip3 install https://download.electrum.org/3.1.2/Electrum-3.1.2.tar.gz[full] Downloading/unpacking https://download.electrum.org/3.1.2/Electrum-3.1.2.tar.gz[full] HTTP error 404 while getting https://download.electrum.org/3.1.2/Electrum-3.1.2.tar.gz[full] Cleaning up... Exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/lib/python3/dist-packages/pip/req.py", line 1198, in prepare_files do_download, File "/usr/lib/python3/dist-packages/pip/req.py", line 1376, in unpack_url self.session, File "/usr/lib/python3/dist-packages/pip/download.py", line 547, in unpack_http_url resp.raise_for_status() File "/usr/share/python-wheels/requests-2.2.1-py2.py3-none-any.whl/requests/models.py", line 773, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found Title: Re: Can't install Electrum on Ubuntu Post by: Ayanamirs on April 01, 2018, 04:27:04 PM Use pip3 as per the instructions on the download page at electrum.org. pip3 will install the dependencies for you. The "pip3" method also fails for me ...for a different reason: $ sudo pip3 install https://download.electrum.org/3.1.2/Electrum-3.1.2.tar.gz[full] Downloading/unpacking https://download.electrum.org/3.1.2/Electrum-3.1.2.tar.gz[full] HTTP error 404 while getting https://download.electrum.org/3.1.2/Electrum-3.1.2.tar.gz[full] Cleaning up... Exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/lib/python3/dist-packages/pip/req.py", line 1198, in prepare_files do_download, File "/usr/lib/python3/dist-packages/pip/req.py", line 1376, in unpack_url self.session, File "/usr/lib/python3/dist-packages/pip/download.py", line 547, in unpack_http_url resp.raise_for_status() File "/usr/share/python-wheels/requests-2.2.1-py2.py3-none-any.whl/requests/models.py", line 773, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found Remove the "[full]" and try again. Title: Re: Can't install Electrum on Ubuntu Post by: patrick_here on April 01, 2018, 04:52:33 PM Remove the "[full]" and try again. Thanks for the help. I still get an error related to qrcode:$ sudo pip3 install https://download.electrum.org/3.1.2/Electrum-3.1.2.tar.gz Downloading/unpacking https://download.electrum.org/3.1.2/Electrum-3.1.2.tar.gz Downloading Electrum-3.1.2.tar.gz (2.8MB): 2.8MB downloaded Running setup.py (path:/tmp/pip-_mtivo9f-build/setup.py) egg_info for package from https://download.electrum.org/3.1.2/Electrum-3.1.2.tar.gz Downloading/unpacking pyaes>=0.1a1 (from Electrum==3.1.2) Downloading pyaes-1.6.1.tar.gz Running setup.py (path:/tmp/pip_build_root/pyaes/setup.py) egg_info for package pyaes Downloading/unpacking ecdsa>=0.9 (from Electrum==3.1.2) Downloading ecdsa-0.13-py2.py3-none-any.whl (86kB): 86kB downloaded Downloading/unpacking pbkdf2 (from Electrum==3.1.2) Downloading pbkdf2-1.3.tar.gz Running setup.py (path:/tmp/pip_build_root/pbkdf2/setup.py) egg_info for package pbkdf2 Requirement already satisfied (use --upgrade to upgrade): requests in /usr/lib/python3/dist-packages (from Electrum==3.1.2) Downloading/unpacking qrcode (from Electrum==3.1.2) Downloading qrcode-6.0-py2.py3-none-any.whl Cleaning up... Exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2482, in _dep_map return self.__dep_map File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2344, in __getattr__ raise AttributeError(attr) AttributeError: _DistInfoDistribution__dep_map During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/lib/python3/dist-packages/pip/req.py", line 1266, in prepare_files req_to_install.extras): File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2291, in requires dm = self._dep_map File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2484, in _dep_map self.__dep_map = self._compute_dependencies() File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2517, in _compute_dependencies common = frozenset(reqs_for_extra(None)) File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2514, in reqs_for_extra if req.marker_fn(override={'extra':extra}): File "/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl/_markerlib/markers.py", line 113, in marker_fn return eval(compiled_marker, environment) File "<environment marker>", line 1, in <module> NameError: name 'platform_system' is not defined Title: Re: Can't install Electrum on Ubuntu Post by: Ayanamirs on April 01, 2018, 08:48:17 PM Can you just download the source and untar?
https://download.electrum.org/3.1.2/Electrum-3.1.2.tar.gz Title: Re: Can't install Electrum on Ubuntu Post by: patrick_here on April 01, 2018, 08:53:34 PM Can you just download the source and untar? https://download.electrum.org/3.1.2/Electrum-3.1.2.tar.gz Yes, downloading the source and running the downloaded python script directly from the download directory (I've aliased it all), does work just fine for me. Very surprised though that I can't do a straightforward install of a Python application on my Ubuntu box. Thanks very much for the help though! It's appreciated ! Title: Re: Can't install Electrum on Ubuntu Post by: choodec on April 14, 2018, 03:37:12 PM Hi, sorry guys, I'm totally linux newbie, I still can't install it.. please, any advice?
Edit: Ok, finally solved (I hope!) by installing qrcode version 5.0.1 (looks like version 6.0 is somehow corrupted?) and several other required packages.. It wasn't easy for me as a beginner.. ??? Code: ~/Electrum-3.1.2$ sudo python3 setup.py install |