Opened 13 months ago

Closed 13 months ago

Last modified 13 months ago

#3009 closed bug (Fixed)

Can't Start deluge-console 2.0.0.dev7009

Reported by: jl303 Owned by:
Priority: critical Milestone: 2.0
Component: Console UI Version: develop (git)
Keywords: Cc:

Description

I installed the latest deluge from http://ppa.launchpad.net/deluge-team/develop/ubuntu yakkety main However, I get an error when I run deluge-console. I can log into daemon using deluge-web though. How can I fix this? Here's the log, and thanks in advance!

$ deluged --version deluged 2.0.0.dev7009 libtorrent: 1.1.2.0 Python: 2.7.12+ OS: Linux Ubuntu 16.10 yakkety $ deluge-console --version deluge-console 2.0.0.dev7009 libtorrent: 1.1.2.0 Python: 2.7.12+ OS: Linux Ubuntu 16.10 yakkety $ deluged $ deluge-console Traceback (most recent call last):

File "/usr/bin/deluge-console", line 11, in <module>

load_entry_point('deluge==2.0.0.dev7009', 'console_scripts', 'deluge-console')()

File "/usr/lib/python2.7/dist-packages/deluge/ui/console/init.py", line 19, in start

Console().start()

File "/usr/lib/python2.7/dist-packages/deluge/ui/console/console.py", line 120, in start

do_profile=self.options.profile)

File "/usr/lib/python2.7/dist-packages/deluge/common.py", line 1130, in run_profiled

return func(*args)

File "/usr/lib/python2.7/dist-packages/deluge/ui/console/console.py", line 114, in run

return c.start_ui()

File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 156, in start_ui

curses.wrapper(self.run)

File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper

return func(stdscr, *args, kwds)

File "/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py", line 222, in run

self.register_mode(ConnectionManager?(stdscr, self.encoding), set_mode=True)

File "/usr/lib/python2.7/dist-packages/deluge/ui/console/modes/connectionmanager.py", line 40, in init

BaseMode?.init(self, stdscr, encoding=encoding)

File "/usr/lib/python2.7/dist-packages/deluge/ui/console/modes/basemode.py", line 143, in init

self.refresh()

File "/usr/lib/python2.7/dist-packages/deluge/ui/console/modes/connectionmanager.py", line 195, in refresh

self.update_select_host_popup()

File "/usr/lib/python2.7/dist-packages/deluge/ui/console/modes/connectionmanager.py", line 48, in update_select_host_popup

popup = SelectablePopup?(self, _('Select Host'), self._host_selected, border_off_west=1, active_wrap=True)

File "/usr/lib/python2.7/dist-packages/deluge/ui/console/widgets/popup.py", line 215, in init

BaseInputPane?.init(self, self, kwargs)

File "/usr/lib/python2.7/dist-packages/deluge/ui/console/widgets/inputpane.py", line 36, in init

super(BaseInputPane?, self).init()

TypeError?: init() takes at least 3 arguments (1 given)

Change History (4)

comment:1 Changed 13 months ago by Cas

  • Milestone changed from needs verified to 2.0

comment:2 Changed 13 months ago by Cas

  • Resolution set to Fixed
  • Status changed from new to closed

My bad, should be fixed in [aa28d73f472a15] :)

comment:3 Changed 13 months ago by bro

Should have a comment on such lines to avoid breaking later on :-)

comment:4 Changed 13 months ago by Cas

True but super is really just a nicer forward-compatible way of doing the inheritance, it's not necessary and in this case it requires passing on args that are not needed to be passed on. Plus it insta-breaks console so my bad for not quickly testing changes ;)

Also just to say that when you have multiple inheritance and need to call both parent methods then super doesn't work.

Note: See TracTickets for help on using tickets.