Hello,
i tried installing an electrum server on my debian linux box, however it fails with an strange error:
Bitcoind is up and running, i downloaded the database and ran the following commands:
./configure:
Configuration written to /etc/electrum.conf.
Please edit this file to finish the configuration.
If you have not done so, please run 'python setup.py install'
Then, run 'electrum-server' to start the daemon
python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to electrum_server.egg-info/requires.txt
writing electrum_server.egg-info/PKG-INFO
writing top-level names to electrum_server.egg-info/top_level.txt
writing dependency_links to electrum_server.egg-info/dependency_links.txt
reading manifest file 'electrum_server.egg-info/SOURCES.txt'
writing manifest file 'electrum_server.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/electrumserver
copying build/lib.linux-x86_64-2.7/electrumserver/deserialize.py -> build/bdist.linux-x86_64/egg/electrumserver
copying build/lib.linux-x86_64-2.7/electrumserver/__init__.py -> build/bdist.linux-x86_64/egg/electrumserver
copying build/lib.linux-x86_64-2.7/electrumserver/stratum_http.py -> build/bdist.linux-x86_64/egg/electrumserver
copying build/lib.linux-x86_64-2.7/electrumserver/processor.py -> build/bdist.linux-x86_64/egg/electrumserver
copying build/lib.linux-x86_64-2.7/electrumserver/server_processor.py -> build/bdist.linux-x86_64/egg/electrumserver
copying build/lib.linux-x86_64-2.7/electrumserver/version.py -> build/bdist.linux-x86_64/egg/electrumserver
copying build/lib.linux-x86_64-2.7/electrumserver/storage.py -> build/bdist.linux-x86_64/egg/electrumserver
copying build/lib.linux-x86_64-2.7/electrumserver/utils.py -> build/bdist.linux-x86_64/egg/electrumserver
copying build/lib.linux-x86_64-2.7/electrumserver/ircthread.py -> build/bdist.linux-x86_64/egg/electrumserver
copying build/lib.linux-x86_64-2.7/electrumserver/networks.py -> build/bdist.linux-x86_64/egg/electrumserver
copying build/lib.linux-x86_64-2.7/electrumserver/blockchain_processor.py -> build/bdist.linux-x86_64/egg/electrumserver
copying build/lib.linux-x86_64-2.7/electrumserver/stratum_tcp.py -> build/bdist.linux-x86_64/egg/electrumserver
byte-compiling build/bdist.linux-x86_64/egg/electrumserver/deserialize.py to deserialize.pyc
byte-compiling build/bdist.linux-x86_64/egg/electrumserver/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/electrumserver/stratum_http.py to stratum_http.pyc
byte-compiling build/bdist.linux-x86_64/egg/electrumserver/processor.py to processor.pyc
byte-compiling build/bdist.linux-x86_64/egg/electrumserver/server_processor.py to server_processor.pyc
byte-compiling build/bdist.linux-x86_64/egg/electrumserver/version.py to version.pyc
byte-compiling build/bdist.linux-x86_64/egg/electrumserver/storage.py to storage.pyc
byte-compiling build/bdist.linux-x86_64/egg/electrumserver/utils.py to utils.pyc
byte-compiling build/bdist.linux-x86_64/egg/electrumserver/ircthread.py to ircthread.pyc
byte-compiling build/bdist.linux-x86_64/egg/electrumserver/networks.py to networks.pyc
byte-compiling build/bdist.linux-x86_64/egg/electrumserver/blockchain_processor.py to blockchain_processor.pyc
byte-compiling build/bdist.linux-x86_64/egg/electrumserver/stratum_tcp.py to stratum_tcp.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-2.7/electrum-server -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-2.7/run_electrum_server.py -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/electrum-server to 755
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/run_electrum_server.py to 755
copying electrum_server.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying electrum_server.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying electrum_server.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying electrum_server.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying electrum_server.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/electrum_server-1.0-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing electrum_server-1.0-py2.7.egg
Removing /usr/local/lib/python2.7/dist-packages/electrum_server-1.0-py2.7.egg
Copying electrum_server-1.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
electrum-server 1.0 is already the active version in easy-install.pth
Installing electrum-server script to /usr/local/bin
Installing run_electrum_server.py script to /usr/local/bin
Installed /usr/local/lib/python2.7/dist-packages/electrum_server-1.0-py2.7.egg
Processing dependencies for electrum-server==1.0
Searching for irc==13.3.1
Best match: irc 13.3.1
Processing irc-13.3.1-py2.7.egg
irc 13.3.1 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/irc-13.3.1-py2.7.egg
Searching for jsonrpclib==0.1.7
Best match: jsonrpclib 0.1.7
Processing jsonrpclib-0.1.7-py2.7.egg
jsonrpclib 0.1.7 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/jsonrpclib-0.1.7-py2.7.egg
Searching for plyvel==0.9
Best match: plyvel 0.9
Processing plyvel-0.9-py2.7-linux-x86_64.egg
plyvel 0.9 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/plyvel-0.9-py2.7-linux-x86_64.egg
Searching for pytz==2015.7
Best match: pytz 2015.7
Processing pytz-2015.7-py2.7.egg
pytz 2015.7 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/pytz-2015.7-py2.7.egg
Searching for jaraco.functools==1.8.1
Best match: jaraco.functools 1.8.1
Processing jaraco.functools-1.8.1-py2.7.egg
jaraco.functools 1.8.1 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/jaraco.functools-1.8.1-py2.7.egg
Searching for jaraco.logging==1.3.1
Best match: jaraco.logging 1.3.1
Processing jaraco.logging-1.3.1-py2.7.egg
jaraco.logging 1.3.1 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/jaraco.logging-1.3.1-py2.7.egg
Searching for jaraco.itertools==1.7.1
Best match: jaraco.itertools 1.7.1
Processing jaraco.itertools-1.7.1-py2.7.egg
jaraco.itertools 1.7.1 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/jaraco.itertools-1.7.1-py2.7.egg
Searching for jaraco.text==1.6.3
Best match: jaraco.text 1.6.3
Processing jaraco.text-1.6.3-py2.7.egg
jaraco.text 1.6.3 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/jaraco.text-1.6.3-py2.7.egg
Searching for jaraco.collections==1.3.1
Best match: jaraco.collections 1.3.1
Processing jaraco.collections-1.3.1-py2.7.egg
jaraco.collections 1.3.1 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/jaraco.collections-1.3.1-py2.7.egg
Searching for six==1.8.0
Best match: six 1.8.0
six 1.8.0 is already the active version in easy-install.pth
Using /usr/lib/python2.7/dist-packages
Searching for backports.functools-lru-cache==1.2.1
Best match: backports.functools-lru-cache 1.2.1
Processing backports.functools_lru_cache-1.2.1-py2.7.egg
backports.functools-lru-cache 1.2.1 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/backports.functools_lru_cache-1.2.1-py2.7.egg
Searching for tempora==1.4
Best match: tempora 1.4
Processing tempora-1.4-py2.7.egg
tempora 1.4 is already the active version in easy-install.pth
Installing calc-prorate script to /usr/local/bin
Using /usr/local/lib/python2.7/dist-packages/tempora-1.4-py2.7.egg
Searching for inflect==0.2.5
Best match: inflect 0.2.5
Processing inflect-0.2.5-py2.7.egg
inflect 0.2.5 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/inflect-0.2.5-py2.7.egg
Searching for more-itertools==2.2
Best match: more-itertools 2.2
Processing more_itertools-2.2-py2.7.egg
more-itertools 2.2 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/more_itertools-2.2-py2.7.egg
Searching for jaraco.classes==1.3
Best match: jaraco.classes 1.3
Processing jaraco.classes-1.3-py2.7.egg
jaraco.classes 1.3 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/jaraco.classes-1.3-py2.7.egg
Finished processing dependencies for electrum-server==1.0
after that, i try to start the server:
sudo -u coiner electrum-server start:
sudo: unable to execute /usr/local/bin/electrum-server: Permission denied
so i fixed the permissions:
chmod 755 /usr/local/bin/run_electrum_server.py
chmod 755 /usr/local/bin/electrum-server
and i get the following error:
sudo -u coiner electrum-server start :(
Traceback (most recent call last):
File "/usr/local/bin/run_electrum_server.py", line 4, in <module>
__import__('pkg_resources').run_script('electrum-server==1.0', 'run_electrum_server.py')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2876, in <module>
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 449, in _build_master
ws.require(__requires__)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 745, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 639, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: electrum-server==1.0
Starting server as daemon
nohup: redirecting stderr to stdout
The logfile is empty (0 bytes)
Additional useful information:
pip freeze:
ecdsa==0.13
electrum-server==1.0
inflect==0.2.5
irc==13.3.1
jaraco.classes==1.3
jaraco.collections==1.3.1
jaraco.functools==1.8.1
jaraco.itertools==1.7.1
jaraco.logging==1.3.1
jaraco.text==1.6.3
jsonrpclib==0.1.7
more-itertools==2.2
python-apt==0.9.3.12
pytz==2015.7
six==1.10.0
tempora==1.4
unattended-upgrades==0.1
virtualenv==1.11.6
i have googled for about 4 hours but no one else has that problem, except this guy:
https://bitcointa.lk/threads/announce-electrum-lightweight-bitcoin-client.38041/page-25#post-843558Can anyone help me? It shouldnt be too difficult running an electrum server....
Thanks in advance!