Traceback (most recent call last):


 "calibre_plugins.dedrm.__init__", line 430, in PDFDecrypt


 "calibre_plugins.dedrm.ineptpdf", line 2175, in decryptBook


 "calibre_plugins.dedrm.ineptpdf", line 1980, in __init__


 "calibre_plugins.dedrm.ineptpdf", line 1788, in __init__


 "calibre_plugins.dedrm.ineptpdf", line 1413, in set_parser


 "calibre_plugins.dedrm.ineptpdf", line 1914, in read_xref


 "calibre_plugins.dedrm.ineptpdf", line 1865, in find_xref


 "calibre_plugins.dedrm.ineptpdf", line 851, in revreadlines
TypeError: argument should be integer or bytes-like object, not 'str'


Traceback (most recent call last):

 "/tmp/testcase.py", line 10, in <module>
(not_(foo.c.x), 42),

 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/sqlalchemy/sql/expression.py", line 466, in case
return _Case(whens, value=value, else_=else_)

 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/sqlalchemy/sql/expression.py", line 2205, in __init__
whenlist = [_literal_as_binds(r)) for (c, r) in whens]((_no_literals(c).self_group(),)
TypeError: self_group() takes exactly 2 arguments (1 given)