Page 1 of 1

Deluge-console config error

Posted: Tue May 16, 2017 9:03 pm
by will.tu
Hello everyone !!
I'm trying to configure the move_completed_path variable with the path C:\Users\Will\Torrent\Download by entering the following command in cmd :
"C:/Program Files (x86)/Deluge/deluge-console.exe" config --set move_completed_path C:/Users/Will/Torrent/Download

but I have this error:

Code: Select all

malformed expression (C)
[ERROR   ] 22:58:55 main:347 malformed expression (C)
Traceback (most recent call last):
  File "deluge\ui\console\main.py", line 344, in do_command
  File "deluge\ui\console\commands\config.py", line 102, in handle
  File "deluge\ui\console\commands\config.py", line 136, in _set_config
  File "deluge\ui\console\commands\config.py", line 85, in simple_eval
  File "deluge\ui\console\commands\config.py", line 77, in atom
SyntaxError: malformed expression (C)
Traceback (most recent call last):
  File "deluge\ui\console\main.py", line 344, in do_command
  File "deluge\ui\console\commands\config.py", line 102, in handle
  File "deluge\ui\console\commands\config.py", line 136, in _set_config
  File "deluge\ui\console\commands\config.py", line 85, in simple_eval
  File "deluge\ui\console\commands\config.py", line 77, in atom
SyntaxError: malformed expression (C)
Can someone help me ?

Re: Deluge-console config error

Posted: Wed May 17, 2017 12:34 pm
by Cas
It's --set= and you may need to quote the entire argument line.

Code: Select all

>>> config -h
Usage: config [key1 [key2 ...]]
       config --set key value

Options:
  -s SET, --set=SET  set value for key
  -h, --help         show this help message and exit

Show and set configuration values

Re: Deluge-console config error

Posted: Wed May 17, 2017 5:27 pm
by will.tu
I tried "C:/Program Files (x86)/Deluge/deluge-console.exe" config --set="move_completed_path" "C:/Users/Will/Torrent/Download"
but I have the same error

Re: Deluge-console config error

Posted: Wed May 17, 2017 6:19 pm
by Cas
Entire argument line...

Re: Deluge-console config error

Posted: Wed May 17, 2017 6:38 pm
by will.tu
Yes sorry "C:/Program Files (x86)/Deluge/deluge-console.exe" config --set="move_completed_path C:/Users/Will/Torrent/Download"
but this does not work either

Re: Deluge-console config error

Posted: Wed May 17, 2017 7:02 pm
by Cas
Oh the other issue could be needing to use backslash or double-forwardslash for path

Re: Deluge-console config error

Posted: Thu May 18, 2017 4:45 pm
by will.tu
It sends the same error. It looks like it doesn't like the C in C:/Users/Will/Torrent/Download because if I get rid of it, the error does not appear.

Re: Deluge-console config error

Posted: Thu Jun 22, 2017 5:24 pm
by will.tu
Can someone help me?

Re: Deluge-console config error

Posted: Fri Jun 23, 2017 2:12 pm
by Cas
Hmm ok, I just tested on Windows and it seems to be a bug in console handling the C:.

A workaround is to use forward slashes without C: so /Users/Will/Torrent/Download would be equivalent.

I have created a ticket for this: http://dev.deluge-torrent.org/ticket/3075