Author

Topic: Installation error (Read 214 times)

newbie
Activity: 12
Merit: 0
October 26, 2019, 09:05:54 AM
#12
did you run this?

Code:
sudo apt-get install python3-setuptools python3-pip
In the end I solved it by uninstalling everything and reinstalling through AppImage following the strings shown at the following link; for convenience I bring it here:
Code:
wget https://download.electrum.org/3.3.8/electrum-3.3.8-x86_64.AppImage &&
chmod +x electrum-3.3.8-x86_64.AppImage
legendary
Activity: 3682
Merit: 1580
October 26, 2019, 07:03:55 AM
#11
did you run this?

Code:
sudo apt-get install python3-setuptools python3-pip
newbie
Activity: 12
Merit: 0
October 26, 2019, 03:29:11 AM
#10
Did you use the instructions on the download page that are labeled " Run without installing: " or the ones under " Install with PIP: "?
I tried to install it using strings next to "Install with PIP:"
It seems like you did the latter because the electrum binary is in ~/.local/bin but then there should not be a dependency issue now. Maybe try the following:

Code:
python3 -m pip install --user dns

If it doesn't work then just do a run without installation.
Output:
Code:
/usr/bin/python3: No module named pip
legendary
Activity: 3682
Merit: 1580
October 25, 2019, 10:09:29 PM
#9
Did you use the instructions on the download page that are labeled " Run without installing: " or the ones under " Install with PIP: "?

It seems like you did the latter because the electrum binary is in ~/.local/bin but then there should not be a dependency issue now. Maybe try the following:

Code:
python3 -m pip install --user dns

If it doesn't work then just do a run without installation.
newbie
Activity: 12
Merit: 0
October 25, 2019, 01:30:20 PM
#8
I installed Electrum on Ubuntu 18.04 by launching the strings present at this link, but starting the program nothing happens. If at the terminal I type "sudo electrum", this is the output:
Code:
Error: No module named 'dns'. Try 'sudo python3 -m pip install '
What should I do?

Don't do "sudo electrum" to run it. You don't run electrum as root. Just type "electrum" to run it. If that doesn't work post the output of "which electrum"

I never did "sudo" Cheesy The error comes up with "electrum" and that's it...
However, the output of "which electrum" is as follows:
Code:
/home/piero/.local/bin/electrum

EDIT: In the initial post I actually wrote "sudo electrum", but it was a typo, I never tried to start Electrum as root...  Undecided
legendary
Activity: 3682
Merit: 1580
October 25, 2019, 11:12:07 AM
#7
I installed Electrum on Ubuntu 18.04 by launching the strings present at this link, but starting the program nothing happens. If at the terminal I type "sudo electrum", this is the output:
Code:
Error: No module named 'dns'. Try 'sudo python3 -m pip install '
What should I do?

Don't do "sudo electrum" to run it. You don't run electrum as root. Just type "electrum" to run it. If that doesn't work post the output of "which electrum"
newbie
Activity: 12
Merit: 0
October 25, 2019, 10:17:47 AM
#6
Yeah sorry it might be pip3 instead of pip for some versions of Linux that haven't changed their environmental variables yet. Try that.
Output:
Code:
/usr/bin/python3: No module named pip3
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
October 25, 2019, 09:32:40 AM
#5
Yeah sorry it might be pip3 instead of pip for some versions of Linux that haven't changed their environmental variables yet. Try that.
newbie
Activity: 12
Merit: 0
October 25, 2019, 09:09:20 AM
#4
sudo python3 -m pip install dns

It's asking you to do that, you may as well try it and report back if it doesn't work (if you haven't already) it's been a while since I installed electrum on Linux so I'm not sure exactly.
Output:
Code:
The directory '/home/piero/.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/piero/.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 dns
  Could not find a version that satisfies the requirement dns (from versions: )
No matching distribution found for dns



What should I do?

Install the missing module by typing in sudo python3 -m pip install dnspython
Output:
Code:
The directory '/home/piero/.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/piero/.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.
Requirement already satisfied: dnspython in ./.local/lib/python3.6/site-packages
legendary
Activity: 1876
Merit: 3132
October 25, 2019, 08:55:38 AM
#3
What should I do?

Install the missing module by typing in sudo python3 -m pip install dnspython
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
October 25, 2019, 08:55:24 AM
#2
sudo python3 -m pip install dns

It's asking you to do that, you may as well try it and report back if it doesn't work (if you haven't already) it's been a while since I installed electrum on Linux so I'm not sure exactly.
newbie
Activity: 12
Merit: 0
October 25, 2019, 08:52:06 AM
#1
I installed Electrum on Ubuntu 18.04 by launching the strings present at this link, but starting the program nothing happens. If at the terminal I type "electrum", this is the output:
Code:
Error: No module named 'dns'. Try 'sudo python3 -m pip install '
What should I do?
Jump to: