Deluge-console config error

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

Deluge-console config error

Postby will.tu » Tue May 16, 2017 9:03 pm

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: 3466
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: Deluge-console config error

Postby Cas » Wed May 17, 2017 12:34 pm

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
OS or Distro: Windows7

Re: Deluge-console config error

Postby will.tu » Wed May 17, 2017 5:27 pm

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: 3466
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: Deluge-console config error

Postby Cas » Wed May 17, 2017 6:19 pm

Entire argument line...

will.tu
New User
New User
Posts: 5
Joined: Tue May 16, 2017 8:20 pm
OS or Distro: Windows7

Re: Deluge-console config error

Postby will.tu » Wed May 17, 2017 6:38 pm

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: 3466
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: Deluge-console config error

Postby Cas » Wed May 17, 2017 7:02 pm

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
OS or Distro: Windows7

Re: Deluge-console config error

Postby will.tu » Thu May 18, 2017 4:45 pm

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
OS or Distro: Windows7

Re: Deluge-console config error

Postby will.tu » Thu Jun 22, 2017 5:24 pm

Can someone help me?

Cas
Top Bloke
Top Bloke
Posts: 3466
Joined: Mon Dec 07, 2009 6:04 am
OS or Distro: Ubuntu 16.04
Location: Scotland

Re: Deluge-console config error

Postby Cas » Fri Jun 23, 2017 2:12 pm

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


Return to “Windows OS”

Who is online

Users browsing this forum: Bing [Bot] and 3 guests