Opened 4 years ago
Closed 3 years ago
#3410 closed bug (Fixed)
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
- 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.
- 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.".
- 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.
- 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".
- Same twisted error does not show on the logs running the daemon and the GTK3 thin-client on Windows.
- 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?
- 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)
Change History (3)
by , 4 years ago
Attachment: | consoleUIonWin.patch added |
---|
comment:1 by , 4 years ago
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
comment:2 by , 3 years ago
Resolution: | → Fixed |
---|---|
Status: | new → closed |
Thanks merged fix as part of develop commit [8fb25f71f30733]
Replace hailing out of interactive mode of deluge-console with a debug log mssage.