Adding torrents
Posted: Fri Nov 07, 2008 3:01 pm
Same problem for me too, but I have Win XP SP3 (Hungarian). (Deluge 1.0.4) 

Support Forum for the Deluge BitTorrent Client
https://forum.deluge-torrent.org/
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])
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">
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])
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""
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?
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?