[SOLVED] installing from sources, only root can run deluged
Posted: Mon Sep 21, 2015 10:52 am
Hi guys,
I had to remove deluge installed from ppa due to 1.3.12 being restricted on one of torrent sites. 1.3.11 is able to connect to the tracker.
I've followed wiki on installing from sources (rm -R all previous files from distro)
what I've done is as follows (all as root, ubuntu):
removed ppa from apt and:
executing deluged as root.... no errors. runs as supposed to.
executing as user...
I have also compared /usr/lib/python2.7/dist-packages directory with another server running deluged. I'm missing deluge directory. deluge-1.3.11-py2.7.egg is present on both servers.
Can someone point out where I might have made a mistake?
I had to remove deluge installed from ppa due to 1.3.12 being restricted on one of torrent sites. 1.3.11 is able to connect to the tracker.
I've followed wiki on installing from sources (rm -R all previous files from distro)
what I've done is as follows (all as root, ubuntu):
removed ppa from apt and:
Code: Select all
apt-get update
apt-get install python python-twisted python-twisted-web python-openssl python-simplejson python-setuptools intltool python-xdg python-chardet geoip-database python-libtorrent python-notify python-pygame python-glade2 librsvg2-common xdg-utils python-mako -y
Code: Select all
wget http://download.deluge-torrent.org/source/deluge-1.3.11.tar.bz2
unpack it
cd to dir
python setup.py clean -a (worked as intended)
python setup.py build --install-layout=deb
sudo python setup.py install
sudo python setup.py install_data (I know it's for gui but still. Not taking any chances)
executing as user...
Code: Select all
Traceback (most recent call last):
File "/usr/local/bin/deluged", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2749, in <module>
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 444, in _build_master
ws.require(__requires__)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 725, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 628, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: deluge==1.3.11
Can someone point out where I might have made a mistake?