Adding torrents

Specific support for Deluge on Microsoft Windows OS
broman191

Adding torrents

Post by broman191 »

Same problem for me too, but I have Win XP SP3 (Hungarian). (Deluge 1.0.4) :geek:
Grasex

Re: Adding torrents

Post by Grasex »

Same here - XP SP3 x86
Bard09
Member
Member
Posts: 10
Joined: Sun Aug 10, 2008 9:27 am

Re: Adding torrents

Post by Bard09 »

I'm having problems loading torrents as well-- running the new 1.05 version on XP SP3.

When I open a .torrent file from disk or from the web, I get the following error:
Failed to run the program, Error:2, The system could not find the file specified.
I also get an error when adding a torrent via a URL when using the Web UI, same version. It says:
Fault : <Fault 1: "<type 'exceptions.RuntimeError'>:An invalid argument was supplied">
Here's the traceback:

Code: Select all

--Deluge Error--
Fault : <Fault 1: "<type 'exceptions.RuntimeError'>:An invalid argument was supplied">
path : /index
file : C:\Program Files\Deluge\lib\site-packages\deluge-1.0.4-py2.5-win32.egg\deluge\xmlrpclib.py in close, line 786

--Input--
<Storage {}>

--Versions--
WebUi : 1.0.4r
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]:

--Traceback--
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.4-py2.5-win32.egg\deluge\ui\webui\lib\webpy022\webapi.py", line 304, in wsgifunc
    result = func()
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.4-py2.5-win32.egg\deluge\ui\webui\lib\webpy022\request.py", line 131, in <lambda>
    func = lambda: handle(inp, fvars)
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.4-py2.5-win32.egg\deluge\ui\webui\lib\webpy022\request.py", line 61, in handle
    return tocall(*([x and urllib.unquote(x) for x in args] + fna))
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.4-py2.5-win32.egg\deluge\ui\webui\page_decorators.py", line 52, in deco
    return func(self, name) #check_session:ok
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.4-py2.5-win32.egg\deluge\ui\webui\page_decorators.py", line 70, in deco
    return func(self, name) #check_connected:ok
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.4-py2.5-win32.egg\deluge\ui\webui\page_decorators.py", line 25, in deco
    res = func(self, name) #deluge_page_noauth
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.4-py2.5-win32.egg\deluge\ui\webui\page_decorators.py", line 120, in deco
    return func(self, name) #auto_refreshed
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.4-py2.5-win32.egg\deluge\ui\webui\pages.py", line 120, in GET
    torrent_list = utils.get_enhanced_torrent_list(torrent_ids)
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.4-py2.5-win32.egg\deluge\ui\webui\utils.py", line 169, in get_enhanced_torrent_list
    torrent_dict = sclient.get_torrents_status(torrent_ids, TORRENT_KEYS)
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.4-py2.5-win32.egg\deluge\xmlrpclib.py", line 1150, in __call__
    return self.__send(self.__name, args)
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.4-py2.5-win32.egg\deluge\xmlrpclib.py", line 1440, in __request
    verbose=self.__verbose
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.4-py2.5-win32.egg\deluge\xmlrpclib.py", line 1204, in request
    return self._parse_response(h.getfile(), sock)
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.4-py2.5-win32.egg\deluge\xmlrpclib.py", line 1343, in _parse_response
    return u.close()
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.4-py2.5-win32.egg\deluge\xmlrpclib.py", line 787, in close
    raise Fault(**self._stack[0])
Hope this helps!
loki
Moderator
Moderator
Posts: 787
Joined: Tue Dec 04, 2007 3:27 pm
Location: MI, USA

Re: Adding torrents

Post by loki »

Bard09 wrote:I'm having problems loading torrents as well-- running the new 1.05 version on XP SP3.

When I open a .torrent file from disk or from the web, I get the following error:
Failed to run the program, Error:2, The system could not find the file specified.
I also get an error when adding a torrent via a URL when using the Web UI, same version. It says:
Fault : <Fault 1: "<type 'exceptions.RuntimeError'>:An invalid argument was supplied">
Here's the traceback: ...
That traceback report, to me is looking like 1.0.4 is installed, or it was trying to point to the older webui from it. Please try uninstall and reinstall fresh.
Bard09
Member
Member
Posts: 10
Joined: Sun Aug 10, 2008 9:27 am

Re: Adding torrents

Post by Bard09 »

You're right, Loki. Should've noticed... I installed over my old installation

To clear everything out, I uninstalled both Deluge applications via Add/Remove, deleted Deluge folder from Program Files, deleted Deluge folder in Application Data, and reinstalled 1.05 fresh.

BUT... it still gives the Error 2 when double-clicking a .torrent file or opening a .torrent file from the web. Interestingly... if I drag the .torrent file into the Deluge window, that will successfully add the torrent.

As for the Web error, that also persisted through the reinstall. I opened the Web UI, added a .torrent via the UI and it appeared to load the torrent successfully (possibly working? unsure). I then changed the UI to "Classic". That only appeared to work until the Auto-Refresh 10-second trigger, and then:

Code: Select all

--Deluge Error--
Fault : <Fault 1: "<type 'exceptions.RuntimeError'>:An invalid argument was supplied">
path : /index
file : C:\Program Files\Deluge\lib\site-packages\deluge-1.0.5-py2.5-win32.egg\deluge\xmlrpclib.py in close, line 786

--Input--
<Storage {}>

--Versions--
WebUi : 1.0.5r
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]:

--Traceback--
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.5-py2.5-win32.egg\deluge\ui\webui\lib\webpy022\webapi.py", line 304, in wsgifunc
    result = func()
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.5-py2.5-win32.egg\deluge\ui\webui\lib\webpy022\request.py", line 131, in <lambda>
    func = lambda: handle(inp, fvars)
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.5-py2.5-win32.egg\deluge\ui\webui\lib\webpy022\request.py", line 61, in handle
    return tocall(*([x and urllib.unquote(x) for x in args] + fna))
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.5-py2.5-win32.egg\deluge\ui\webui\page_decorators.py", line 53, in deco
    return func(self, name) #check_session:ok
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.5-py2.5-win32.egg\deluge\ui\webui\page_decorators.py", line 71, in deco
    return func(self, name) #check_connected:ok
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.5-py2.5-win32.egg\deluge\ui\webui\page_decorators.py", line 26, in deco
    res = func(self, name) #deluge_page_noauth
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.5-py2.5-win32.egg\deluge\ui\webui\page_decorators.py", line 122, in deco
    return func(self, name) #auto_refreshed
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.5-py2.5-win32.egg\deluge\ui\webui\pages.py", line 120, in GET
    torrent_list = utils.get_enhanced_torrent_list(torrent_ids)
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.5-py2.5-win32.egg\deluge\ui\webui\utils.py", line 169, in get_enhanced_torrent_list
    torrent_dict = sclient.get_torrents_status(torrent_ids, TORRENT_KEYS)
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.5-py2.5-win32.egg\deluge\xmlrpclib.py", line 1150, in __call__
    return self.__send(self.__name, args)
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.5-py2.5-win32.egg\deluge\xmlrpclib.py", line 1440, in __request
    verbose=self.__verbose
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.5-py2.5-win32.egg\deluge\xmlrpclib.py", line 1204, in request
    return self._parse_response(h.getfile(), sock)
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.5-py2.5-win32.egg\deluge\xmlrpclib.py", line 1343, in _parse_response
    return u.close()
  File "C:\Program Files\Deluge\lib\site-packages\deluge-1.0.5-py2.5-win32.egg\deluge\xmlrpclib.py", line 787, in close
    raise Fault(**self._stack[0])
Hope this helps. Let me know if you'd like me to look into anything in particular.
phuzz
Member
Member
Posts: 25
Joined: Sat Mar 22, 2008 2:22 pm

Re: Adding torrents *Fixed*

Post by phuzz »

Ok, I just did a full uninstall (there was even a copy of 0.5.9 still hanging around), and deleted the program directory (all I left was C:\Users\%username%\AppData\Roaming\deluge which kept all my in progress torrents). Once that was all gone I installed 1.0.6 and now I can add from the Add Torrent button :)
Bard09
Member
Member
Posts: 10
Joined: Sun Aug 10, 2008 9:27 am

Re: Adding torrents

Post by Bard09 »

A ha! I found a fix for my problem opening .torrent files from the XP operating system itself. (the issue with that "Error 2")

I did some recon and found that the default application for .torrent files is the deluge.cmd file. Looking into that file, I see that it ends with the following line:

Code: Select all

%WINDIR%\StartX.exe /b /D "%FOLDER%" "%PROGRAMFILES%\deluge\scripts\deluge.exe @QUOTE@%1@QUOTE@"
I figured that the .torrent path is supposed to be %1, but I wasn't so sure about the @QUOTE@ part. On a lark, I changed the line to the following:

Code: Select all

%WINDIR%\StartX.exe /b /D "%FOLDER%" "%PROGRAMFILES%\deluge\scripts\deluge.exe "%1""
And it now works :D

Hopefully this fix won't break anything? If it doesn't, can you add it to upcoming Windows revisions?
avi45
Member
Member
Posts: 14
Joined: Tue Aug 26, 2008 7:50 pm

Re: Adding torrents

Post by avi45 »

Bard09 wrote:A ha! I found a fix for my problem opening .torrent files from the XP operating system itself. (the issue with that "Error 2")

I did some recon and found that the default application for .torrent files is the deluge.cmd file. Looking into that file, I see that it ends with the following line:

Code: Select all

%WINDIR%\StartX.exe /b /D "%FOLDER%" "%PROGRAMFILES%\deluge\scripts\deluge.exe @QUOTE@%1@QUOTE@"
I figured that the .torrent path is supposed to be %1, but I wasn't so sure about the @QUOTE@ part. On a lark, I changed the line to the following:

Code: Select all

%WINDIR%\StartX.exe /b /D "%FOLDER%" "%PROGRAMFILES%\deluge\scripts\deluge.exe "%1""
And it now works :D

Hopefully this fix won't break anything? If it doesn't, can you add it to upcoming Windows revisions?
Hi, I tried this fix but it did not work. Can't load torrents via the add torrents dialog. When first installed 1.0.7, I was able to drag and drop a torrent file into the gui but only once and not since then. Reinstalled and still can't drag and drop torrents. Also, there is no way to specify a folder to install Deluge. Why not yet? It auto installs into C:\Program Files. Checking Auto Add Folder works though. It's the only way to add torrents.

Another thing is, I can't apply GTK2 themes to the new versions.
Windows XP SP3, Intel(R) Core(TM)2 CPU, 1.86 GHz, 1.00 GB of RAM
Bard09
Member
Member
Posts: 10
Joined: Sun Aug 10, 2008 9:27 am

Re: Adding torrents

Post by Bard09 »

I think our issues are different, avi45, so that fix wouldn't help in your case. On my install I'm able to add torrents via the dialog without a hitch. Sorry :(
Aqualung
Member
Member
Posts: 30
Joined: Sun May 04, 2008 8:28 am

Re: Adding torrents

Post by Aqualung »

Bard09 wrote:A ha! I found a fix for my problem opening .torrent files from the XP operating system itself. (the issue with that "Error 2")

I did some recon and found that the default application for .torrent files is the deluge.cmd file. Looking into that file, I see that it ends with the following line:

Code: Select all

%WINDIR%\StartX.exe /b /D "%FOLDER%" "%PROGRAMFILES%\deluge\scripts\deluge.exe @QUOTE@%1@QUOTE@"
I figured that the .torrent path is supposed to be %1, but I wasn't so sure about the @QUOTE@ part. On a lark, I changed the line to the following:

Code: Select all

%WINDIR%\StartX.exe /b /D "%FOLDER%" "%PROGRAMFILES%\deluge\scripts\deluge.exe "%1""
And it now works :D

Hopefully this fix won't break anything? If it doesn't, can you add it to upcoming Windows revisions?
Hallelujah!!!

I can confirm, this fix works in Vista x64 Ultimate SP1. Many thanks BArd09, my respects. :D :D :D Now if only I could assign a proper icon to .torrent files, only I don't know how to do that in Vista (at least not w/o editing the registry and/or installing additional SW).

Deluge devs., please make sure this fix is included in future Deluge releases! (I am currently running Deluge 1.0.5)
Post Reply