#2730: dev versions of Deluge not runs with latest setuptools
-----------------------+------------------------------
Reporter: barmalej2 | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 1.3.x
Component: Core | Version: 1.3-stable (git)
Keywords: |
-----------------------+------------------------------
I am trying to run deluge 1.3.11.dev0 (taken from git 1.3 stable branch)
with libtorrent-1.0.3 on Zyxel NAS (NSA310 kernel-2.6.31.8, armv5tel
GNU/Linux, uClibc based system).[[BR]]
If I upgrade setuptools to latest 11.3.1 version, deluged refuses to run:
{{{
[ERROR ] 21:30:53 main:237 invalid literal for int() with base 10: 'dev0'
Traceback (most recent call last):
File "/ffp/lib/python2.7/site-packages/deluge/main.py", line 230, in
start_daemon
Daemon(options, args)
File "/ffp/lib/python2.7/site-packages/deluge/core/daemon.py", line 138,
in __init__
self.core = Core(listen_interface=listen_interface)
File "/ffp/lib/python2.7/site-packages/deluge/core/core.py", line 83, in
__init__
version = [int(value.split("-")[0]) for value in
deluge.common.get_version().split(".")]
ValueError: invalid literal for int() with base 10: 'dev0'
}}}
If revert back to older setuptools version 7.0, deluged runs without
problem.
I have zero python programming knowledge, so looked at how DJango resolved
similar issue:
https://github.com/django/django/commit/1739ae9edc6e6c07ca20cad36dd15316f18f3f8e
Changing row:
version = [int(value.split("-")[0]) for value in
deluge.common.get_version().split(".")]
to
version = [int(value.split("-")[0]) for value in
deluge.common.get_version().split(".") if value.isdigit()]
in core.py, lets me run deluged again with latest setuptools. Don't know,
if that is suitable way to solve issue, but it works.
I hope to draw attention of deluge devs (Cas potentially) at this small
problem.
Best rgds,
b2
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/2730>
Deluge <http://deluge-torrent.org/>
Deluge Project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.