ImportError: No module named socks. PySocks is installed though.
See original GitHub issueElectrum no longer seems to work. I’m running the Fedora 26 beta, though I get most my python packages with pip. It gives this output…
$ electrum
Traceback (most recent call last):
File "/usr/bin/electrum", line 98, in <module>
from electrum import bitcoin, network
File "/usr/lib/python2.7/site-packages/electrum/__init__.py", line 6, in <module>
from network import Network, pick_random_server
File "/usr/lib/python2.7/site-packages/electrum/network.py", line 35, in <module>
import socks
This is despite PySocks being installed, I can’t make much sense of the problem. It might be an issue with Python itself, but I have doubts about that. Other Python software on my system is working fine.
$ sudo pip2 install https://download.electrum.org/2.8.3/Electrum-2.8.3.tar.gz
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip2 install --user` instead.
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 241kB/s
Requirement already satisfied: pyaes in /usr/lib/python2.7/site-packages (from Electrum==2.8.3)
Requirement already satisfied: ecdsa>=0.9 in /usr/lib/python2.7/site-packages (from Electrum==2.8.3)
Requirement already satisfied: pbkdf2 in /usr/lib/python2.7/site-packages (from Electrum==2.8.3)
Requirement already satisfied: requests in /usr/lib/python2.7/site-packages (from Electrum==2.8.3)
Requirement already satisfied: qrcode in /usr/lib/python2.7/site-packages (from Electrum==2.8.3)
Requirement already satisfied: protobuf in /usr/lib64/python2.7/site-packages (from Electrum==2.8.3)
Requirement already satisfied: dnspython in /usr/lib/python2.7/site-packages (from Electrum==2.8.3)
Requirement already satisfied: jsonrpclib in /usr/lib/python2.7/site-packages (from Electrum==2.8.3)
Requirement already satisfied: PySocks>=1.6.6 in /usr/lib/python2.7/site-packages (from Electrum==2.8.3)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/python2.7/site-packages (from requests->Electrum==2.8.3)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python2.7/site-packages (from requests->Electrum==2.8.3)
Requirement already satisfied: idna<2.6,>=2.5 in /usr/lib/python2.7/site-packages (from requests->Electrum==2.8.3)
Requirement already satisfied: urllib3<1.22,>=1.21.1 in /usr/lib/python2.7/site-packages (from requests->Electrum==2.8.3)
Requirement already satisfied: six in /usr/lib/python2.7/site-packages (from qrcode->Electrum==2.8.3)
Requirement already satisfied: setuptools in /usr/lib/python2.7/site-packages (from protobuf->Electrum==2.8.3)
Requirement already satisfied: appdirs>=1.4.0 in /usr/lib/python2.7/site-packages (from setuptools->protobuf->Electrum==2.8.3)
Requirement already satisfied: packaging>=16.8 in /usr/lib/python2.7/site-packages (from setuptools->protobuf->Electrum==2.8.3)
Requirement already satisfied: pyparsing in /usr/lib/python2.7/site-packages (from packaging>=16.8->setuptools->protobuf->Electrum==2.8.3)
Installing collected packages: Electrum
Found existing installation: Electrum 2.8.2
Uninstalling Electrum-2.8.2:
Successfully uninstalled Electrum-2.8.2
Running setup.py install for Electrum ... done
Successfully installed Electrum-2.8.3
It clearly installs everything fine, but can’t seem to import socks.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
No module named 'socks' - python - Stack Overflow
I have tried pip install socks, and followed instructions of other stackoverflow posts but none of them worked. I'm working on pycharm right...
Read more >Python – No module named 'socks' – iTecNote
import requests, socket, socks ModuleNotFoundError: No module named 'socks'. I have tried pip install socks, and followed instructions of other ...
Read more >No Module Named 'Pysocks' But I Have Installed This Module
I'm running the Fedora 26 beta though I get most my python packages with pip. ImportError: No module named socks. PySocks is installed....
Read more >socks.py · william-Ry/PySocks - Gitee.com
raise ImportError(. "To run PySocks on Windows you must install win_inet_pton") ... """Attempts to replace a module's socket library with a SOCKS socket....
Read more >Bug #1021988 “no module named socks” : Bugs : Polly
With a brand new precise installation, I tried to install the latest available DEB ( polly_0.93.4-0~precise1_all.deb), ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi
All You need :
g00d luck !
apt-get install wont work on Fedora