#3546: Deluge-console fails on windows. ----------------------------+------------------------ Reporter: mhertz | Type: bug Status: new | Priority: minor Milestone: needs verified | Component: Console UI Version: develop | Keywords: ----------------------------+------------------------ As title, deluge-console fails running on windows when used from installer(works unfreezed though). It happened after the pyinstaller spec file was rewritten/simplified. {{{ C:\deluge2\deluge\packaging\win\freeze\Deluge>deluge-console.exe info usage: deluge-console [-h] [-V] [-c <config>] [-l <logfile>] [-L <level>] [--logrotate [<max-size>]] [-q] [--profile [<profile-file>]] [-d <ip_addr>] [-p <port>] [-U <user>] [-P <pass>] deluge-console: error: unrecognized arguments: info
C:\deluge2\deluge\packaging\win\freeze\Deluge> }}} Quick fix is to in pyinstaller spec, add either an extra line of: {{{ datas += collect_data_files('deluge.ui.console',True,[],["**/__pycache__"]) }}} Or, alternatively prepend a few extra args to line 108 so becomes: {{{ package_data = collect_data_files('deluge',True,[],["**/__pycache__"]) ) }}} Though latter adds 1.5MiB unneeded files extra. Anyway, the issue here is deluge.ui.console's __init.py__ declaring: {{{ UI_PATH = __path__[0] }}} And deluge.ui.console.console using it like: {{{ self.console_cmds = load_commands(os.path.join(UI_PATH, 'cmdline', 'commands')) }}} So all files correctly picked up and bundled by pyinstaller, but just looked for in wrong place because of this. I'm making bug-ticket and not PR because don't know how you want tackling this, i.e. if wanting change UI_PATH mechanism instead possibly. Thanks in advance! -- Ticket URL: <https://dev.deluge-torrent.org/ticket/3546> Deluge <https://deluge-torrent.org/> Deluge Project -- You received this message because you are subscribed to the Google Groups "Deluge Dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to deluge-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/deluge-dev/045.8b1cbc4e48a69f80286c915991ef16ba%40deluge-torrent.org.