Skip to content

Instantly share code, notes, and snippets.

- log.info('Serving webapidoc at http://%s:%s%s%s', ip, self.port, self.base, self.webapidoc_path)
+ log.info(
+ 'Serving webapidoc at http://%s:%s%s%s',
+ ip,
+ self.port,
+ self.base,
+ self.webapidoc_path,
+ )
@bendikro
bendikro / tox.log.sh
Created April 11, 2020 11:44
tox -e py3
tox -e py3
GLOB sdist-make: /home/bro/programmer/deluge/workdirs/develop/setup.py
py3 recreate: /home/bro/programmer/deluge/workdirs/develop/.tox/py3
py3 installdeps: pip >= 10, <= 18.1, setuptools >= 40, -rrequirements.txt, -rrequirements-tests.txt
py3 inst: /home/bro/programmer/deluge/workdirs/develop/.tox/.tmp/package/1/deluge-2.0.4.dev23.zip
ERROR: invocation failed (exit code 1), logfile: /home/bro/programmer/deluge/workdirs/develop/.tox/py3/log/py3-2.log
ERROR: actionid: py3
msg: installpkg
cmdargs: '/home/bro/programmer/deluge/workdirs/develop/.tox/py3/bin/python -m pip install --ignore-installed --exists-action w /home/bro/programmer/deluge/workdirs/develop/.tox/.tmp/package/1/deluge-2.0.4.dev23.zip'
from gi.repository import Gtk
from gi.repository import Pango
import sys
from gi.repository import Gtk, Gdk
columns = ["First Name",
"Last Name",
"Phone Number"]
phonebook = [["Jurg", "Billeter", "555-0123"],
all: test1 test2
@echo "All test!"
.PHONY: test-dep
test-dep%:
@echo "test_dep!"
test1: test-dep1
@echo "Test1"
{
"file": 1,
"format": 1
}{
"show_progress": true,
"show_peers": false,
"seeding_time_width": 10,
"peers_width": 10,
"downloaded_width": 13,
"show_remaining": false,
nhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/base.py", line 417, in fireEvent
DeferredList(beforeResults).addCallback(self._continueFiring)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 317, in addCallback
callbackKeywords=kw)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 306, in addCallbacks
self._runCallbacks()
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 588, in _runCallbacks
current.result = callback(current.result, *args, **kw)
25 def escape(text):
26 """
27 Used by the gettext.js template to escape translated strings
28 so they don't break the script.
29 """
30 t = text
@bendikro
bendikro / gist:3991f80304326a77d41a
Created November 22, 2015 15:30
web server timeout
; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/45.0.2454.101 Chrome/45.0.2454.101 Safari/537.36"
16:28:40.018 [ERROR ][deluge.ui.web.json_api :1193] [Failure instance: Traceback: <type 'exceptions.RuntimeError'>: Request.finish called on a request after its connection was lost; use Request.notifyFinish to keep track of this.
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:577:_runCallbacks
/home/bro/programmer/deluge/deluge_workdirs/client_side/deluge/ui/web/json_api.py:548:on_complete
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:382:callback
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:490:_startRunCallbacks
--- <exception caught here> ---
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:577:_runCallbacks
/home/bro/programmer/deluge/deluge_workdirs/client_side/deluge/ui/web/json_api.py:219:_on_rpc_request_finished
/home/bro/programmer/deluge/deluge_workdirs/client_side/deluge/ui/web/json_api.py:262:_send_response
#!/usr/bin/env python
import sys
import argparse
import sh
def check_result(ret):
if ret.exit_code != 0:
print "Command returned with value:", ret.exit_code
return False
@bendikro
bendikro / gist:90b1bc478f5e8313ca1a
Last active August 29, 2015 14:15
Deluge develop SSL error
Unhandled Error
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/twisted/python/log.py", line 88, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/local/lib/python2.7/site-packages/twisted/python/log.py", line 73, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/local/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/local/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
return func(*args,**kw)