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

General support for problems installing or using Deluge
Post Reply
jaffinio
New User
New User
Posts: 4
Joined: Mon Sep 21, 2015 10:39 am

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

Post 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?
Last edited by jaffinio on Tue Sep 22, 2015 5:59 am, edited 1 time in total.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: installing from sources, only root can run deluged

Post 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
jaffinio
New User
New User
Posts: 4
Joined: Mon Sep 21, 2015 10:39 am

Re: installing from sources, only root can run deluged

Post 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
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: installing from sources, only root can run deluged

Post 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
jaffinio
New User
New User
Posts: 4
Joined: Mon Sep 21, 2015 10:39 am

Re: installing from sources, only root can run deluged

Post 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.
Shryp
Moderator
Moderator
Posts: 521
Joined: Mon Apr 20, 2015 10:20 pm

Re: installing from sources, only root can run deluged

Post 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?
jaffinio
New User
New User
Posts: 4
Joined: Mon Sep 21, 2015 10:39 am

Re: installing from sources, only root can run deluged

Post 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.
Post Reply