I can not install Electrum - Bitcoin Crypto Currency Wallet

I have tried installing, I have tried running from konsole, I have tried installing thru synaptic (not in repos) and get the following errors…

user@host:~$ sudo apt-get install electrum
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package electrum
user@host:~$

Also Ive tried opening in the directory…

user@host:~/Electrum-3.2.2$ ./electrum
Traceback (most recent call last):
File “./electrum”, line 70, in
imp.load_module(‘electrum’, *imp.find_module(‘lib’))
File “/usr/lib/python3.4/imp.py”, line 245, in load_module
return load_package(name, filename)
File “/usr/lib/python3.4/imp.py”, line 217, in load_package
return methods.load()
File “”, line 1220, in load
File “”, line 1200, in _load_unlocked
File “”, line 1129, in _exec
File “”, line 1471, in exec_module
File “”, line 321, in _call_with_frames_removed
File “/home/user/Electrum-3.2.2/lib/init.py”, line 3, in
from .wallet import Synchronizer, Wallet
File “/home/user/Electrum-3.2.2/lib/wallet.py”, line 52, in
from .bitcoin import *
File “/home/user/Electrum-3.2.2/lib/bitcoin.py”, line 33, in
from . import ecc
File “/home/user/Electrum-3.2.2/lib/ecc.py”, line 29, in
from typing import Union
ImportError: No module named ‘typing’
user@host:~/Electrum-3.2.2$

The dependencies install fine but when I install with pip I get…

user@host:~$ sudo pip3 install https://download.electrum.org/3.2.2/Electrum-3.2.2.tar.gz
Downloading/unpacking https://download.electrum.org/3.2.2/Electrum-3.2.2.tar.gz
Downloading Electrum-3.2.2.tar.gz (5.6MB): 5.6MB downloaded
Running setup.py (path:/tmp/pip-rji2t17p-build/setup.py) egg_info for package from https://download.electrum.org/3.2.2/Electrum-3.2.2.tar.gz
error in Electrum setup command: Invalid environment marker: python_version < “3.5”
Complete output from command python setup.py egg_info:
error in Electrum setup command: Invalid environment marker: python_version < “3.5”


Cleaning up…
Command python setup.py egg_info failed with error code 1 in /tmp/pip-rji2t17p-build
Storing debug log for failure in /root/.pip/pip.log
user@host:~$

Can anyone help?

Thank you!

Is there a workaround with another BTC wallet? Ive been at this 2 days :slight_smile:
Thanks

http://dds6qkxpwdeubwucdiaord2xgbbeyds25rbsgr73tbfpqpt4a6vjwsyd.onion/wiki/Money#Electrum

1 Like

Thanks for the link…been there done that. No dice. I did find a workaround tho… I was able to run an earlier version. 3.0.5 with ./electrum. Not sure why the latest version keeps throwing errors.

Hi anon777

The instructions found in the Electrum official download page will not work with Whonix. Other Whonix users have tried and failed.

Third party package manager such as pip not be used.

https://www.whonix.org/wiki/Install_Software#Avoid_Third_Party_Package_Managers

Manual software installation should be avoided as well.

https://www.whonix.org/wiki/Install_Software#Avoid_Manual_Software_Installation

2 Likes

Thanks. I tried to install out of desperation haha. I think there was a problem with the package… some sort of conflict. :slight_smile:

Got it going w an older version

@anon777

Documentation has been updated! :slight_smile:

1 Like

How do i install the latest Electrum Version in Whonix?

sudo apt-get -t jessie-backports install electrum
this installs a old version.

This will work (as per Electrum official instructions):

Install dependencies:
sudo apt-get install python-qt4 python-pip

Install Electrum:
sudo pip2 install https://download.electrum.org/2.9.3/Electrum-2.9.3.tar.gz

Source: Electrum Bitcoin Wallet

This will install Electrum 2.9.3

Then proceed as per instructions here for stream isolation:

Note: I don’t know whether choosing the latest version over the backport version poses security problems.

1 Like

Thank you. It works fine.

@HulaHoop could you please explain why pip is not great (no OpenPGP verification) if that is still the case and add to the Install Additional Software Safely page?

Done. I made a general comment that covers the infamous node js too.

2 Likes

Thanks. I’ll give a try to the backports version (never really bothered to until now).

Hello
I read the tutorial about how to install electrum in whonix, but haven’t understood well why is recommend to install it from debian backports compared to install with commands on electrum site.

With physical isolation setup in electrum, can be a possible issue of leak?

Regards

jamesferkin:

I read the tutorial about how to install electrum in whonix, but haven’t understood well why is recommend to install it from debian backports compared to install with commands on electrum site.

Security. Because then gpg verification is much simpler since it gets
abstracted by apt-get for you. This is easier than establishing a gpg
trust path to the upstream developer yourself.

Also you get the very same version that many other Debian users get. In
theory, the maintainer for any Debian package will oversight that not
backdoors are introduced at a later time.

With physical isolation setup in electrum, can be a possible issue of leak?

No more risk than any other custom installed application.

sudo su -c “echo -e ‘deb Index of /debian jessie-backports main’ > /etc/apt/sources.list.d/jessie-backports.list”

doesn’t work

I added manually

deb Index of /debian jessie-backports main

to /etc/apt/sources.list.d/jessie-backports.list
but after installed electrum doesn’t appear in the list, I have to run it on terminal.

Now the command works

echo “deb Index of /debian jessie-backports main” | sudo tee -a /etc/apt/sources.list.d/jessie-backports.list

but it doensn’t appear in application and I have to do the installation in whonix-ws because it disappear after I shut-down it

That is expected. Qubes standard behavior for TemplateBaedVMs.

solved, thanks Patrick.

I don’t know. Could be a missing dependency that is not covered in installation instructions. Try a minimal wheezy install and compare with Whonix.

Or… Try installing it from backports.

(Debian -- Error)

See boilerplate and replace package name “electrum”: