Opened 13 years ago
Closed 13 years ago
#1936 closed bug (Fixed)
free variable 'host' referenced before assignment in enclosing scope
Reported by: | rmanola | Owned by: | Damien Churchill |
---|---|---|---|
Priority: | trivial | Milestone: | 1.3.4 |
Component: | Web UI | Version: | 1.3.3 |
Keywords: | Cc: |
Description (last modified by )
When I start deluge-web I get the following:
NameError: free variable 'host' referenced before assignment in enclosing scope [ERROR ] 00:41:35 json_api:227 Error calling method `web.get_host_status` [ERROR ] 00:41:35 json_api:228 free variable 'host' referenced before assignment in enclosing scope Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/deluge/ui/web/json_api.py", line 219, in _handle_request result = self._exec_local(method, params, request) File "/usr/lib/python2.7/site-packages/deluge/ui/web/json_api.py", line 186, in _exec_local return meth(*params) File "/usr/lib/python2.7/site-packages/deluge/ui/web/json_api.py", line 750, in get_host_status return response(_("Offline")) File "/usr/lib/python2.7/site-packages/deluge/ui/web/json_api.py", line 745, in response return host_id, host, port, status, info
> deluge-web --version deluge-web: 1.3.3 libtorrent: 0.15.7.0 >python --version Python 3.2.1
Change History (5)
comment:1 by , 13 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 13 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
Experiencing the same error on different setup:
deluge-web --version: deluge-web: 1.3.3 - libtorrent: 0.15.8.0 python --version: Python 2.7.2+
comment:3 by , 13 years ago
Component: | other → webui |
---|---|
Description: | modified (diff) |
Milestone: | 1.3.x → 1.3.4 |
Priority: | major → trivial |
Ok I see that the problem, there is an exception at line 749 (because deluged is not found) which results in 'host' and 'port' variables not being defined when the response return tries to use them.
damoxc not sure how you wish to fix this.
comment:4 by , 13 years ago
Owner: | set to |
---|---|
Status: | reopened → assigned |
comment:5 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fix committed to 1.3-stable: 083c7fbb
Note:
See TracTickets
for help on using tickets.
Deluge is written for Python 2.x so will not work with Python 3