Bitcoin Forum

Bitcoin => Electrum => Topic started by: Chris! on June 09, 2017, 07:28:02 PM



Title: Errors when trying to install Electrum on Linux Mint 18.1
Post by: Chris! on June 09, 2017, 07:28:02 PM
Hi. I'm a Linux newbie so at the tiniest issue I don't have a clue what to do. Also as a millennial this whole 'terminal' thing is something that was gone before I was even born (as a previous/current Windows user). I'm entirely out of my element.

Anyway, I've tried installing with the 2 different methods and here's what I get:

Code:
chris@Chris-Laptop ~ $ sudo apt-get install python-qt4 python-pip
[sudo] password for chris:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
python-qt4 is already the newest version (4.11.4+dfsg-1build4).
python-pip is already the newest version (8.1.1-2ubuntu0.4).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
chris@Chris-Laptop ~ $ sudo pip2 install https://download.electrum.org/2.8.3/Electrum-2.8.3.tar.gz
The directory '/home/chris/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/chris/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting https://download.electrum.org/2.8.3/Electrum-2.8.3.tar.gz
  Downloading https://download.electrum.org/2.8.3/Electrum-2.8.3.tar.gz (2.3MB)
    100% |████████████████████████████████| 2.3MB 160kB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named setuptools
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-QGqeCQ-build/
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
chris@Chris-Laptop ~ $ pip install --upgrade pip
Requirement already up-to-date: pip in ./.local/lib/python2.7/site-packages
chris@Chris-Laptop ~ $

So what's happening is it looks like something needs to be upgraded but when I try to upgrade it it says I'm already upgraded. When trying the python method it doesn't work either but that's probably because I don't know what
Code:
In the electrum directory, run: 'python electrum'
means. I don't see that anywhere after extracting the download.

Any suggestions?


Title: Re: Errors when trying to install Electrum on Linux Mint 18.1
Post by: kolloh on June 09, 2017, 07:33:35 PM
Hi. I'm a Linux newbie so at the tiniest issue I don't have a clue what to do. Also as a millennial this whole 'terminal' thing is something that was gone before I was even born (as a previous/current Windows user). I'm entirely out of my element.

Anyway, I've tried installing with the 2 different methods and here's what I get:

Code:
chris@Chris-Laptop ~ $ sudo apt-get install python-qt4 python-pip
[sudo] password for chris:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
python-qt4 is already the newest version (4.11.4+dfsg-1build4).
python-pip is already the newest version (8.1.1-2ubuntu0.4).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
chris@Chris-Laptop ~ $ sudo pip2 install https://download.electrum.org/2.8.3/Electrum-2.8.3.tar.gz
The directory '/home/chris/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/chris/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting https://download.electrum.org/2.8.3/Electrum-2.8.3.tar.gz
  Downloading https://download.electrum.org/2.8.3/Electrum-2.8.3.tar.gz (2.3MB)
    100% |████████████████████████████████| 2.3MB 160kB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    ImportError: No module named setuptools
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-QGqeCQ-build/
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
chris@Chris-Laptop ~ $ pip install --upgrade pip
Requirement already up-to-date: pip in ./.local/lib/python2.7/site-packages
chris@Chris-Laptop ~ $

So what's happening is it looks like something needs to be upgraded but when I try to upgrade it it says I'm already upgraded. When trying the python method it doesn't work either but that's probably because I don't know what
Code:
In the electrum directory, run: 'python electrum'
means. I don't see that anywhere after extracting the download.

Any suggestions?


The error looks like you don't have setuptools installed, try the following:
Code:
sudo apt-get install python-setuptools

And then run the pip install command again.


Title: Re: Errors when trying to install Electrum on Linux Mint 18.1
Post by: Chris! on June 09, 2017, 07:39:38 PM
Hi. I'm a Linux newbie so at the tiniest issue I don't have a clue what to do. Also as a millennial this whole 'terminal' thing is something that was gone before I was even born (as a previous/current Windows user). I'm entirely out of my element.

Anyway, I've tried installing with the 2 different methods and here's what I get:

Code:
-snip-

So what's happening is it looks like something needs to be upgraded but when I try to upgrade it it says I'm already upgraded. When trying the python method it doesn't work either but that's probably because I don't know what
Code:
In the electrum directory, run: 'python electrum'
means. I don't see that anywhere after extracting the download.

Any suggestions?


The error looks like you don't have setuptools installed, try the following:
Code:
sudo apt-get install python-setuptools

And then run the pip install command again.

I'm still getting this:


Code:
The directory '/home/chris/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Would adding the -H command help or is that not my problem?


Edit: Oh never mind I'm up and running now. Thank you very much! You are legendary in my eyes kolloh.