[Deluge] #3410: Interactive deluge-console on windows

0 views
Skip to first unread message

Deluge

unread,
Jun 21, 2020, 3:10:56 AM6/21/20
to delug...@googlegroups.com
#3410: Interactive deluge-console on windows
-----------------------+-------------------------------------
Reporter: petersasi | Type: bug
Status: new | Priority: critical
Milestone: 2.0.4 | Component: Console UI
Version: 2.0.3 | Keywords: windows-curses, twisted
-----------------------+-------------------------------------
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.
2. 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.".
3. 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.
4. The log is full of a twisted/internet/selectreactor.py error for
win32select: "builtins.OSError: [WinError 10038] An operation was
attempted on something that is not a socket".
5. Same twisted error does not show on the logs running the daemon and the
GTK3 thin-client on Windows.
6. 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?
7. 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

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3410>
Deluge <https://deluge-torrent.org/>
Deluge Project

Deluge

unread,
Jun 21, 2020, 3:11:31 AM6/21/20
to delug...@googlegroups.com
#3410: Interactive deluge-console on windows
-------------------------+-------------------------------------
Reporter: petersasi | Owner:

Type: bug | Status: new
Priority: critical | Milestone: 2.0.4
Component: Console UI | Version: 2.0.3
Resolution: | Keywords: windows-curses, twisted
-------------------------+-------------------------------------
Changes (by petersasi):

* Attachment "consoleUIonWin.patch" added.

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

Deluge

unread,
Jun 21, 2020, 3:21:30 AM6/21/20
to delug...@googlegroups.com
#3410: Interactive deluge-console on windows
-------------------------+-------------------------------------
Reporter: petersasi | Owner:

Type: bug | Status: new
Priority: critical | Milestone: 2.0.4
Component: Console UI | Version: 2.0.3
Resolution: | Keywords: windows-curses, twisted
-------------------------+-------------------------------------

Comment (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: [WinError 10038] An operation was attempted on something
that is not a socket

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3410#comment:1>

Deluge

unread,
Aug 2, 2021, 3:21:31 AM8/2/21
to delug...@googlegroups.com
#3410: Interactive deluge-console on windows
-------------------------+-------------------------------------
Reporter: petersasi | Owner:
Type: bug | Status: closed

Priority: critical | Milestone: 2.0.4
Component: Console UI | Version: 2.0.3
Resolution: Fixed | Keywords: windows-curses, twisted
-------------------------+-------------------------------------
Changes (by Cas):

* status: new => closed
* resolution: => Fixed


Comment:

Thanks merged fix as part of develop commit [8fb25f71f30733]

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3410#comment:2>

Reply all
Reply to author
Forward
0 new messages