Opened 3 weeks ago

Last modified 3 weeks ago

#3410 new bug

Interactive deluge-console on windows

Reported by: petersasi Owned by:
Priority: critical Milestone: 2.0.4
Component: Console UI Version: 2.0.3
Keywords: windows-curses, twisted Cc:

Description

  1. After applying https://dev.deluge-torrent.org/ticket/3409 and adding

pip.exe install windows-curses to the build process non-interactive command line commands complete successfully.

  1. With the attached patch applied deluge-console.exe no longer bails out with the message: "Deluge-console does not run in interactive mode on Windows.".
  2. Instead we just log a debug message and carry on. Now the interactive UI starts, brings up a connection selection window. But does not accept any input.
  3. The log is full of a twisted/internet/selectreactor.py error for win32select: "builtins.OSError: 10038? An operation was attempted on something that is not a socket".
  4. Same twisted error does not show on the logs running the daemon and the GTK3 thin-client on Windows.
  5. I am stuck here, will have to ask for the help of a developer who understands how this twister works with the GTK3 UI on windows but not the curses one - what is different?
  6. Please find the unofficial but working Deluge 2.0.3 and 2.0.4dev38 Windows installers here: https://drive.google.com/drive/folders/1bCwij_GEy8nhqR6EynXYY_Yl7XuWYpVT

Attachments (1)

consoleUIonWin.patch (851 bytes) - added by petersasi 3 weeks ago.
Replace hailing out of interactive mode of deluge-console with a debug log mssage.

Download all attachments as: .zip

Change History (2)

Changed 3 weeks ago by petersasi

Replace hailing out of interactive mode of deluge-console with a debug log mssage.

comment:1 Changed 3 weeks ago by petersasi

Exact error with twisted's win32select is: 13:53:18.872 [CRITICAL][twisted :154 ] Unhandled Error Traceback (most recent call last):

File "C:\Program Files\Deluge\lib\site-packages\deluge\ui\console\main.py", line 150, in start_ui

wrapper(self.run)

File "C:\Program Files\Deluge\lib\curses\init.py", line 105, in wrapper

return func(stdscr, *args, kwds)

File "C:\Program Files\Deluge\lib\site-packages\deluge\ui\console\main.py", line 271, in run

reactor.run()

File "C:\Program Files\Deluge\lib\site-packages\twisted\internet\base.py", line 1283, in run

self.mainLoop()

--- <exception caught here> ---

File "C:\Program Files\Deluge\lib\site-packages\twisted\internet\base.py", line 1295, in mainLoop

self.doIteration(t)

File "C:\Program Files\Deluge\lib\site-packages\twisted\internet\selectreactor.py", line 101, in doSelect

r, w, ignored = _select(self._reads,

File "C:\Program Files\Deluge\lib\site-packages\twisted\internet\selectreactor.py", line 37, in win32select

r, w, e = select.select(r, w, w, timeout)

builtins.OSError: 10038? An operation was attempted on something that is not a socket

Note: See TracTickets for help on using tickets.