Deluge-console config error

Specific support for Deluge on Microsoft Windows OS
Post Reply
will.tu
New User
New User
Posts: 5
Joined: Tue May 16, 2017 8:20 pm

Deluge-console config error

Post 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 ?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge-console config error

Post 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
will.tu
New User
New User
Posts: 5
Joined: Tue May 16, 2017 8:20 pm

Re: Deluge-console config error

Post 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
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge-console config error

Post by Cas »

Entire argument line...
will.tu
New User
New User
Posts: 5
Joined: Tue May 16, 2017 8:20 pm

Re: Deluge-console config error

Post 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
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge-console config error

Post by Cas »

Oh the other issue could be needing to use backslash or double-forwardslash for path
will.tu
New User
New User
Posts: 5
Joined: Tue May 16, 2017 8:20 pm

Re: Deluge-console config error

Post 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.
will.tu
New User
New User
Posts: 5
Joined: Tue May 16, 2017 8:20 pm

Re: Deluge-console config error

Post by will.tu »

Can someone help me?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge-console config error

Post 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
Post Reply