#2449 closed bug (WorksForMe)
Unable to add a .torrent file in deluge 1.3.6 in Debian.
Reported by: | shirish | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | not applicable |
Component: | Console UI | Version: | 1.3.6 |
Keywords: | Cc: |
Description
Dear developer,
few days ago I tried running Deluge and got the issue below. I have no idea if it's a debian-packaging issue or something else. Could you please look at the error below and let me know if it's a downstream issue or an upstream issue ? :-
$ deluge /usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py:180: Warning: Attempt to add property GnomeProgram::sm-connect after class was initialised self.gnome_prog = gnome.init("Deluge", deluge.common.get_version()) /usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py:180: Warning: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised self.gnome_prog = gnome.init("Deluge", deluge.common.get_version()) /usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py:180: Warning: Attempt to add property GnomeProgram::display after class was initialised self.gnome_prog = gnome.init("Deluge", deluge.common.get_version()) /usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py:180: Warning: Attempt to add property GnomeProgram::default-icon after class was initialised self.gnome_prog = gnome.init("Deluge", deluge.common.get_version()) Unhandled error in Deferred: Unhandled Error Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/addtorrentdialog.py", line 155, in start self.update_core_config() File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/addtorrentdialog.py", line 202, in update_core_config return client.core.get_config_values(self.core_keys).addCallback(_on_config_values) File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 306, in addCallback callbackKeywords=kw) File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 295, in addCallbacks self._runCallbacks() --- <exception caught here> --- File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 577, in _runCallbacks current.result = callback(current.result, *args, **kw) File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/addtorrentdialog.py", line 197, in _on_config_values self.set_default_options() File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/addtorrentdialog.py", line 481, in set_default_options self.core_config["download_location"]) exceptions.TypeError: Gtk.FileChooser.set_current_folder() argument 1 must be string, not None Unhandled error in Deferred: Unhandled Error Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/statusbar.py", line 204, in start self.send_status_request() File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/statusbar.py", line 287, in send_status_request client.core.get_free_space().addCallback(self._on_get_free_space) File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 504, in __call__ return self.daemon.call(self.base, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 457, in call return defer.maybeDeferred(m, *copy.deepcopy(args), **copy.deepcopy(kwargs)) --- <exception caught here> --- File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 139, in maybeDeferred result = f(*args, **kw) File "/usr/lib/python2.7/dist-packages/deluge/core/core.py", line 828, in get_free_space return deluge.common.free_space(path) File "/usr/lib/python2.7/dist-packages/deluge/common.py", line 528, in free_space if not os.path.exists(path): File "/usr/lib/python2.7/genericpath.py", line 18, in exists os.stat(path) exceptions.TypeError: coercing to Unicode: need string or buffer, NoneType found Unhandled error in Deferred: Unhandled Error Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/statusbar.py", line 383, in update self.send_status_request() File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/statusbar.py", line 287, in send_status_request client.core.get_free_space().addCallback(self._on_get_free_space) File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 504, in __call__ return self.daemon.call(self.base, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 457, in call return defer.maybeDeferred(m, *copy.deepcopy(args), **copy.deepcopy(kwargs)) --- <exception caught here> --- File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 139, in maybeDeferred result = f(*args, **kw) File "/usr/lib/python2.7/dist-packages/deluge/core/core.py", line 828, in get_free_space return deluge.common.free_space(path) File "/usr/lib/python2.7/dist-packages/deluge/common.py", line 528, in free_space if not os.path.exists(path): File "/usr/lib/python2.7/genericpath.py", line 18, in exists os.stat(path) exceptions.TypeError: coercing to Unicode: need string or buffer, NoneType found Unhandled error in Deferred: Unhandled Error Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/statusbar.py", line 383, in update self.send_status_request() File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/statusbar.py", line 287, in send_status_request client.core.get_free_space().addCallback(self._on_get_free_space) File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 504, in __call__ return self.daemon.call(self.base, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 457, in call return defer.maybeDeferred(m, *copy.deepcopy(args), **copy.deepcopy(kwargs)) --- <exception caught here> --- File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 139, in maybeDeferred result = f(*args, **kw) File "/usr/lib/python2.7/dist-packages/deluge/core/core.py", line 828, in get_free_space return deluge.common.free_space(path) File "/usr/lib/python2.7/dist-packages/deluge/common.py", line 528, in free_space if not os.path.exists(path): File "/usr/lib/python2.7/genericpath.py", line 18, in exists os.stat(path) exceptions.TypeError: coercing to Unicode: need string or buffer, NoneType found Unhandled error in Deferred: Unhandled Error Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/statusbar.py", line 383, in update self.send_status_request() File "/usr/lib/python2.7/dist-packages/deluge/ui/gtkui/statusbar.py", line 287, in send_status_request client.core.get_free_space().addCallback(self._on_get_free_space) File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 504, in __call__ return self.daemon.call(self.base, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/deluge/ui/client.py", line 457, in call return defer.maybeDeferred(m, *copy.deepcopy(args), **copy.deepcopy(kwargs)) --- <exception caught here> --- File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 139, in maybeDeferred result = f(*args, **kw) File "/usr/lib/python2.7/dist-packages/deluge/core/core.py", line 828, in get_free_space return deluge.common.free_space(path) File "/usr/lib/python2.7/dist-packages/deluge/common.py", line 528, in free_space if not os.path.exists(path): File "/usr/lib/python2.7/genericpath.py", line 18, in exists os.stat(path) exceptions.TypeError: coercing to Unicode: need string or buffer, NoneType found
I removed all the torrents, removed deluge, removed all the configurations from ~/.config/ so there is/was no deluge subdirectory and there and started again.
With a clean re-install it still gives me this :-
$ deluge /usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py:180: Warning: Attempt to add property GnomeProgram::sm-connect after class was initialised self.gnome_prog = gnome.init("Deluge", deluge.common.get_version()) /usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py:180: Warning: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised self.gnome_prog = gnome.init("Deluge", deluge.common.get_version()) /usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py:180: Warning: Attempt to add property GnomeProgram::display after class was initialised self.gnome_prog = gnome.init("Deluge", deluge.common.get_version()) /usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py:180: Warning: Attempt to add property GnomeProgram::default-icon after class was initialised self.gnome_prog = gnome.init("Deluge", deluge.common.get_version()) 23:57:27 shirish@debian:~$ deluge /usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py:180: Warning: Attempt to add property GnomeProgram::sm-connect after class was initialised self.gnome_prog = gnome.init("Deluge", deluge.common.get_version()) /usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py:180: Warning: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised self.gnome_prog = gnome.init("Deluge", deluge.common.get_version()) /usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py:180: Warning: Attempt to add property GnomeProgram::display after class was initialised self.gnome_prog = gnome.init("Deluge", deluge.common.get_version()) /usr/lib/python2.7/dist-packages/deluge/ui/gtkui/gtkui.py:180: Warning: Attempt to add property GnomeProgram::default-icon after class was initialised self.gnome_prog = gnome.init("Deluge", deluge.common.get_version()) (process:17653): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
As share cannot add a torrent.
P.S. I have no idea why it says python is not there.
$ python --version Python 2.7.6 $ python3 --version Python 3.3.5
As can be seen both python and python3 are installed and working at my end.
$ aptitude search python:any i python - interactive high-level object-oriented language (default version)
-- System Information: Debian Release: jessie/sid
APT prefers testing APT policy: (600, 'testing'), (500, 'testing-updates'), (1,
'experimental'), (1, 'unstable') Architecture: amd64 (x86_64)
Kernel: Linux 3.13-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
Versions of packages deluge depends on: ii deluge-gtk 1.3.6-1.1 ii python-libtorrent 0.16.13-1 pn python:any <none>
Change History (5)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
It looks like a glib problem? Not familiar with it, but I found similar error message here https://bugzilla.mozilla.org/show_bug.cgi?id=833117 , try to use deluged with console or Web UI to test?
comment:3 by , 10 years ago
I can't verify this in Debian Testing same version as you do (if you are the reporter of this one https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=744962).
comment:4 by , 10 years ago
Milestone: | 1.3.7 → not applicable |
---|---|
Resolution: | → WorksForMe |
Status: | new → closed |
comment:5 by , 10 years ago
Just to add are you trying to run deluge gui on a headless server? If so you should be using deluged.
Feel free to change the priority of the bug or/and the milestone etc. but please let me know whom to blame (as in 'git blame') upstream or debian maintainers.
Looking forward to know. If you want me to try out something, please let me know.