Skip to content

Instantly share code, notes, and snippets.

travis_fold:start:worker_info
Worker information
hostname: 2f8b5c6e-bcd3-4437-90e7-0033c9794b25@1.production-1-worker-org-gce-31zz
version: v4.6.2 https://github.com/travis-ci/worker/tree/7004f7c9e22c7896b5b35cec84e6912047c55c3e
instance: travis-job-2c653ad6-c647-4ee0-8884-2a24102fe67b travis-ci-sardonyx-xenial-1541445923-e193d27 (via amqp)
startup: 7.052665017s
travis_fold:end:worker_info
travis_fold:start:system_info
Build system information
Build language: python
[~/projects/alot] make -C docs PYTHON=/usr/bin/python3 html ✭master
make: Entering directory '/home/pazz/projects/alot/docs'
/usr/bin/python3 source/generate_configs.py
/usr/bin/python3 source/generate_commands.py
sphinx-build -b html -d build/doctrees source build/html
Running Sphinx v1.7.4
loading pickled environment... done
loading intersphinx inventory from http://notmuch.readthedocs.org/en/latest/objects.inv...
intersphinx inventory has moved: http://notmuch.readthedocs.org/en/latest/objects.inv -> http://notmuch.readthedocs.io/en/latest/objects.inv
loading intersphinx inventory from http://docs.python.org/objects.inv...
[~/projects/alot] git fetch lucc ✭master
remote: Counting objects: 66, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 66 (delta 47), reused 61 (delta 43), pack-reused 0
Unpacking objects: 100% (66/66), done.
From https://github.com/lucc/alot
* [new branch] feature/envelope-tag -> lucc/feature/envelope-tag
* [new branch] test/misc -> lucc/test/misc
[~/projects/alot] git checkout -b env-tags lucc/feature/envelope-tag
Branch env-tags set up to track remote branch feature/envelope-tag from lucc.
[~/projects/alot] python ./setup.py install --user ✭0.3.4-pip-setup-618
Traceback (most recent call last):
File "./setup.py", line 37, in <module>
_, _, notmuch_version = notmuch.stdout.read().rpartition(" ")
AttributeError: 'str' object has no attribute 'stdout'
@pazz
pazz / gist:5455090
Created April 24, 2013 20:00
pdf2txt using pyminer
#!/usr/bin/env python2
import sys
from StringIO import StringIO
from pdfminer.pdfinterp import PDFResourceManager, process_pdf
from pdfminer.converter import TextConverter
from pdfminer.layout import LAParams
@pazz
pazz / gist:5173476
Last active December 15, 2015 00:29
trace i see when overwriting WidgetWrap.render
with
```
def render(size, focus=False):
return urwid.WidgetWrap.render(size, focus=focus)
```
-----------------------------------------------
File "/home/pazz/.local/lib/python2.7/site-packages/alot/buffers.py", line 37, in render
~
~
~
~
max_wait, keys, raw = self.screen.get_input_nonblocking()
~ File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.0.1-py2.7-linux-x86_64.egg/urwid/raw_display.py", line 340, in get_input_nonblocking
(<type 'exceptions.AssertionError'>, AssertionError(), <traceback object at 0x2d1ef38>)
Traceback (most recent call last):
File "/home/pazz/.local/bin/alot", line 20, in <module>
main()
File "/home/pazz/.local/lib/python2.7/site-packages/alot/init.py", line 186, in main
UI(dbman, cmd)
File "/home/pazz/.local/lib/python2.7/site-packages/alot/ui.py", line 105, in __init__
self.mainloop.run()
File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.0.1-py2.7-linux-x86_64.egg/urwid/main_loop.py", line 256, in run
self.screen.run_wrapper(self._run)
@pazz
pazz / gist:2859047
Created June 2, 2012 16:26
vim spawnProcess
#usr/bin/python
from twisted.internet import reactor
from twisted.internet.protocol import ProcessProtocol
import StringIO
import os
cmdlist=['vim']
proc = reactor.spawnProcess(ProcessProtocol(), executable=cmdlist[0],
env=os.environ,
#!/usr/bin/python
#
# Urwid tour. It slices, it dices..
# Copyright (C) 2004-2011 Ian Ward
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#