Page 1 of 1

[SOLVED] installing from sources, only root can run deluged

Posted: Mon Sep 21, 2015 10:52 am
by jaffinio
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:

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 deluged as root.... no errors. runs as supposed to.
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
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?

Re: installing from sources, only root can run deluged

Posted: Mon Sep 21, 2015 10:58 am
by Cas
rm -r does not uninstall a package, you should always use apt-get remove to remove a package. Likely you still have old files in /usr/local/bin: http://dev.deluge-torrent.org/wiki/Inst ... FromSystem

Re: installing from sources, only root can run deluged

Posted: Mon Sep 21, 2015 11:57 am
by jaffinio
I did uninstall through apt-get

find /usr -type d -name "deluge-1.3.12-py2.7.egg" - no results

find /usr -type d -name "deluge-1.3.11-py2.7.egg"

Code: Select all

/usr/lib/python2.7/dist-packages/deluge-1.3.11-py2.7.egg
/usr/local/lib/python2.7/dist-packages/deluge-1.3.11-py2.7.egg
find /usr -type d -name "deluge*"

Code: Select all

/usr/lib/python2.7/dist-packages/deluge-1.3.11-py2.7.egg
/usr/lib/python2.7/dist-packages/deluge-1.3.11-py2.7.egg/deluge
/usr/local/lib/python2.7/dist-packages/deluge-1.3.11-py2.7.egg
/usr/local/lib/python2.7/dist-packages/deluge-1.3.11-py2.7.egg/deluge
on other server i have this output

Code: Select all

/usr/share/doc/deluged
/usr/share/doc/deluge-common
/usr/lib/python2.7/dist-packages/deluge-1.3.12.egg-info
/usr/lib/python2.7/dist-packages/deluge

Re: installing from sources, only root can run deluged

Posted: Mon Sep 21, 2015 12:04 pm
by Cas
If you used apt-get remove I am not sure why you are mentioning `rm -r`.

That error must mean you have leftover files from old install and you are not looking for just directories... from wiki:
To find and remove the remaining files use the locate command and to ensure up-to date information also run updatedb:

sudo updatedb
locate deluge

Re: installing from sources, only root can run deluged

Posted: Mon Sep 21, 2015 12:25 pm
by jaffinio
I did a quick vbox ubuntu install and followed all of the manual install steps. It worked on a user account. You were right I might have some leftovers that were not deleted

[EDIT]

got it. everything I did was correct in every way. What was not correct were the privileges on python files. others was empty. chmod mod and voila. working.

Re: installing from sources, only root can run deluged

Posted: Mon Sep 21, 2015 9:38 pm
by Shryp
A bit late now, but could you have used the ltconfig plugin to change the identifier from deluge 1.3.12 to deluge 1.3.11?

Re: installing from sources, only root can run deluged

Posted: Tue Sep 22, 2015 5:59 am
by jaffinio
Shryp wrote:A bit late now, but could you have used the ltconfig plugin to change the identifier from deluge 1.3.12 to deluge 1.3.11?
hmm. I did not know about it's existence. thank you. I'll look at it.