
Adding torrents
Adding torrents
Same problem for me too, but I have Win XP SP3 (Hungarian). (Deluge 1.0.4) 

Re: Adding torrents
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:
Hope this helps!
When I open a .torrent file from disk or from the web, I get the following error:
I also get an error when adding a torrent via a URL when using the Web UI, same version. It says:Failed to run the program, Error:2, The system could not find the file specified.
Here's the traceback:Fault : <Fault 1: "<type 'exceptions.RuntimeError'>:An invalid argument was supplied">
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])
Re: Adding torrents
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 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:
I also get an error when adding a torrent via a URL when using the Web UI, same version. It says:Failed to run the program, Error:2, The system could not find the file specified.
Here's the traceback: ...Fault : <Fault 1: "<type 'exceptions.RuntimeError'>:An invalid argument was supplied">
Re: Adding torrents
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:
Hope this helps. Let me know if you'd like me to look into anything in particular.
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])
Re: Adding torrents *Fixed*
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 

Re: Adding torrents
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:
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:
And it now works
Hopefully this fix won't break anything? If it doesn't, can you add it to upcoming Windows revisions?
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@"
Code: Select all
%WINDIR%\StartX.exe /b /D "%FOLDER%" "%PROGRAMFILES%\deluge\scripts\deluge.exe "%1""

Hopefully this fix won't break anything? If it doesn't, can you add it to upcoming Windows revisions?
Re: Adding torrents
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.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: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 @QUOTE@%1@QUOTE@"
And it now worksCode: Select all
%WINDIR%\StartX.exe /b /D "%FOLDER%" "%PROGRAMFILES%\deluge\scripts\deluge.exe "%1""
![]()
Hopefully this fix won't break anything? If it doesn't, can you add it to upcoming Windows revisions?
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
Re: Adding torrents
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 

Re: Adding torrents
Hallelujah!!!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: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 @QUOTE@%1@QUOTE@"
And it now worksCode: Select all
%WINDIR%\StartX.exe /b /D "%FOLDER%" "%PROGRAMFILES%\deluge\scripts\deluge.exe "%1""
![]()
Hopefully this fix won't break anything? If it doesn't, can you add it to upcoming Windows revisions?
I can confirm, this fix works in Vista x64 Ultimate SP1. Many thanks BArd09, my respects.



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