1.1.6 : Ubuntu : ImportError: No module named libtorrent

General support for problems installing or using Deluge
pilipe
New User
New User
Posts: 3
Joined: Thu Jun 04, 2009 5:29 am

Re: 1.1.6 : Ubuntu : ImportError: No module named libtorrent

Post by pilipe »

OK after reading a lot, I started playing a while with packages and I found out that the issue relies over the "libtorrent-rasterbar - 0.14.4-0ubuntu1~jaunty1". Or at least if we keep the old version "0.14.2-2" the deluge 1.1.8 works.

So, in order to "bring it back to life" till the team fix this bug we have to do the following...

-Completely remove this packages: deluge, deluge-common, deluge-core, python-chardet, libtorrent-rasterbar2, python-libtorrent.
-Disable the PPA repos, in order not to get the last version again.
-Install Deluge with all the dependencies again.
At this step Deluge must been working again, you'll have the 1.1.6 version, but it'll work.

Now if you still want the 1.1.8 because of the bugfixes and the other improvements...
-Enable the PPA repos again, and update the "deluge" package, it will force you also to update the deluge-common, deluge-core and to install the "python-chardet". Till this step my Deluge is still working, but just in case, I forced the libtorrent-rastebar2 and the python-libtorrent to remain on the 0.14.2-2 version, as i've said before, till this bug gets fixed ;)
luks911

Re: 1.1.6 : Ubuntu : ImportError: No module named libtorrent

Post by luks911 »

pilipe wrote:OK after reading a lot, I started playing a while with packages and I found out that the issue relies over the "libtorrent-rasterbar - 0.14.4-0ubuntu1~jaunty1". Or at least if we keep the old version "0.14.2-2" the deluge 1.1.8 works.

So, in order to "bring it back to life" till the team fix this bug we have to do the following...

-Completely remove this packages: deluge, deluge-common, deluge-core, python-chardet, libtorrent-rasterbar2, python-libtorrent.
-Disable the PPA repos, in order not to get the last version again.
-Install Deluge with all the dependencies again.
At this step Deluge must been working again, you'll have the 1.1.6 version, but it'll work.

Now if you still want the 1.1.8 because of the bugfixes and the other improvements...
-Enable the PPA repos again, and update the "deluge" package, it will force you also to update the deluge-common, deluge-core and to install the "python-chardet". Till this step my Deluge is still working, but just in case, I forced the libtorrent-rastebar2 and the python-libtorrent to remain on the 0.14.2-2 version, as i've said before, till this bug gets fixed ;)
Thank you very much. Now 1.1.8 works fine with libtorrent-rasterbar2 and python-libtorrent blocked in 0.14.2-2 version.
typhoe
New User
New User
Posts: 6
Joined: Fri Feb 06, 2009 10:03 am

Re: 1.1.6 : Ubuntu : ImportError: No module named libtorrent

Post by typhoe »

Hi,

I upgraded this morning to v1.1.8 and got stuck with this problem too... (ubuntu jaunty 386 and PPA)

I resolved it by downgrading both python-libtorrent and libtorrent-rasterbar2 (non working:0.14.4-0ubuntu1~jaunty1).

To do that, I first removed the new packages (that removed deluge too, but no loss of config here).

sudo apt-get remove --purge libtorrent-rasterbar2 python-libtorrent

Then installed again with older version of the 2 packages (but still 1.1.8 for deluge):

sudo apt-get install python-libtorrent=0.14.2-2ubuntu1 libtorrent-rasterbar2=0.14.2-2ubuntu1 deluge-webui deluge-common deluge-core

And deluge is working again.

regards,
Typhoe
fizyk
Member
Member
Posts: 16
Joined: Mon Sep 22, 2008 8:36 am
Location: Wrocław
Contact:

Re: 1.1.6 : Ubuntu : ImportError: No module named libtorrent

Post by fizyk »

Same error here.

Code: Select all

[ERROR   ] 19:51:41 main:207 No module named libtorrent
Traceback (most recent call last):
  File "/var/lib/python-support/python2.6/deluge/main.py", line 204, in start_daemon
    Daemon(options, args)
  File "/var/lib/python-support/python2.6/deluge/core/daemon.py", line 54, in __init__
    from deluge.core.core import Core
  File "/var/lib/python-support/python2.6/deluge/core/core.py", line 57, in <module>
    import libtorrent as lt
ImportError: No module named libtorrent
Just upgraded from ppa.
Everything was working fine till update to 1.1.8
I'm using Ubuntu 9.4 64 bit
pilipe
New User
New User
Posts: 3
Joined: Thu Jun 04, 2009 5:29 am

Re: 1.1.6 : Ubuntu : ImportError: No module named libtorrent

Post by pilipe »

It has been fixed patched by andar a few hours ago. I've updated and everything is working fine now :)
Alogique
New User
New User
Posts: 4
Joined: Mon May 11, 2009 5:26 pm

Re: 1.1.6 : Ubuntu : ImportError: No module named libtorrent

Post by Alogique »

updated ... but problem not disappear :cry:
athost

Re: 1.1.6 : Ubuntu : ImportError: No module named libtorrent

Post by athost »

pilipe wrote:It has been fixed patched by andar a few hours ago. I've updated and everything is working fine now :)
Works fine. Thank's
fizyk
Member
Member
Posts: 16
Joined: Mon Sep 22, 2008 8:36 am
Location: Wrocław
Contact:

Re: 1.1.6 : Ubuntu : ImportError: No module named libtorrent

Post by fizyk »

Deluge still doesn't starts, just what my log contains:

Code: Select all

[ERROR   ] 18:30:46 main:207 can't decompress data; zlib not available
Traceback (most recent call last):
  File "/var/lib/python-support/python2.6/deluge/main.py", line 204, in start_daemon
    Daemon(options, args)
  File "/var/lib/python-support/python2.6/deluge/core/daemon.py", line 56, in __init__
    self.core = Core(options.port).run()
  File "/var/lib/python-support/python2.6/deluge/core/core.py", line 239, in run
    component.start()
  File "/var/lib/python-support/python2.6/deluge/component.py", line 198, in start
    _ComponentRegistry.start()
  File "/var/lib/python-support/python2.6/deluge/component.py", line 118, in start
    self.start_component(component)
  File "/var/lib/python-support/python2.6/deluge/component.py", line 125, in start_component
    self.start_component(depend)
  File "/var/lib/python-support/python2.6/deluge/component.py", line 125, in start_component
    self.start_component(depend)
  File "/var/lib/python-support/python2.6/deluge/component.py", line 130, in start_component
    self.components[name].start()
  File "/var/lib/python-support/python2.6/deluge/core/pluginmanager.py", line 69, in start
    self.enable_plugins()
  File "/var/lib/python-support/python2.6/deluge/pluginmanagerbase.py", line 84, in enable_plugins
    self.enable_plugin(name)
  File "/var/lib/python-support/python2.6/deluge/pluginmanagerbase.py", line 126, in enable_plugin
    egg.activate()
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2128, in activate
    self.insert_on(path)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2224, in insert_on
    self.check_version_conflict()
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2263, in check_version_conflict
    for modname in self._get_metadata('top_level.txt'):
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2122, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1140, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1137, in get_metadata
    return self._get(self._fn(self.egg_info,name))
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1197, in _get
    return self.loader.get_data(path)
ZipImportError: can't decompress data; zlib not available
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: 1.1.6 : Ubuntu : ImportError: No module named libtorrent

Post by andar »

fizyk wrote:Deluge still doesn't starts, just what my log contains:

Code: Select all

[ERROR   ] 18:30:46 main:207 can't decompress data; zlib not available
Traceback (most recent call last):
  File "/var/lib/python-support/python2.6/deluge/main.py", line 204, in start_daemon
    Daemon(options, args)
  File "/var/lib/python-support/python2.6/deluge/core/daemon.py", line 56, in __init__
    self.core = Core(options.port).run()
  File "/var/lib/python-support/python2.6/deluge/core/core.py", line 239, in run
    component.start()
  File "/var/lib/python-support/python2.6/deluge/component.py", line 198, in start
    _ComponentRegistry.start()
  File "/var/lib/python-support/python2.6/deluge/component.py", line 118, in start
    self.start_component(component)
  File "/var/lib/python-support/python2.6/deluge/component.py", line 125, in start_component
    self.start_component(depend)
  File "/var/lib/python-support/python2.6/deluge/component.py", line 125, in start_component
    self.start_component(depend)
  File "/var/lib/python-support/python2.6/deluge/component.py", line 130, in start_component
    self.components[name].start()
  File "/var/lib/python-support/python2.6/deluge/core/pluginmanager.py", line 69, in start
    self.enable_plugins()
  File "/var/lib/python-support/python2.6/deluge/pluginmanagerbase.py", line 84, in enable_plugins
    self.enable_plugin(name)
  File "/var/lib/python-support/python2.6/deluge/pluginmanagerbase.py", line 126, in enable_plugin
    egg.activate()
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2128, in activate
    self.insert_on(path)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2224, in insert_on
    self.check_version_conflict()
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2263, in check_version_conflict
    for modname in self._get_metadata('top_level.txt'):
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2122, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1140, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1137, in get_metadata
    return self._get(self._fn(self.egg_info,name))
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1197, in _get
    return self.loader.get_data(path)
ZipImportError: can't decompress data; zlib not available
Looks like you need to install zlib. I am actually quite surprised to see someone encounter this type of error.. zlib is a very common package.
Alogique
New User
New User
Posts: 4
Joined: Mon May 11, 2009 5:26 pm

Re: 1.1.6 : Ubuntu : ImportError: No module named libtorrent

Post by Alogique »

Alogique wrote:updated ... but problem not disappear :cry:
Ok, My ISP repo who was in my sources.list by delfault is absolutely OUTDATED !
(after change for the default ubuntu sources, i had more 500 updates in my APT !)
( the latest jaunty deluge in this repo is the 0.5 :roll: )

I think the problem is here for me, not from deluge in any ways
So thanks OVH for breaking my systems ! Good Jobs guys ! F*kings incompetents.


[*] If you have problems with Deluge on OVH Systems, don't trust their ftp://mir1.ovh.net they are outdated as hell
Use this sources.list instead (default ubuntu sources): http://ubuntuforums.org/archive/index.php/t-997890.html

I hope google index my post quickly, to help who had the same problem
Thanks for your support guys ;)

edit: after upgrade, deluge works !
Post Reply