Traceback (most recent call last):


 "/usr/local/lib/python3.5/dist-packages/urllib3/connection.py", line 171, in _new_conn

(self._dns_host, self.port), self.timeout, **extra_kw)


 "/usr/local/lib/python3.5/dist-packages/urllib3/util/connection.py", line 79, in create_connection

raise err


 "/usr/local/lib/python3.5/dist-packages/urllib3/util/connection.py", line 69, in create_connection

sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused


ERROR: licenses: Traceback (most recent call last):


 "/workspace/tools/scancode/src/scancode/cli.py", line 730, in scan_one

scan_details = list(scan_details)


 "/workspace/tools/scancode/src/scancode/api.py", line 121, in get_licenses

for match in idx.match(location=location, min_score=min_score):


 "/workspace/tools/scancode/src/licensedcode/index.py", line 437, in match

qry = query.build_query(location, query_string, self)


 "/workspace/tools/scancode/src/licensedcode/query.py", line 107, in build_query

if not T.contains_text:


 "/workspace/tools/scancode/src/typecode/contenttype.py", line 429, in contains_text

elif self.is_pdf and not self.is_pdf_with_text:


 "/workspace/tools/scancode/src/typecode/contenttype.py", line 413, in is_pdf_with_text

doc = PDFDocument(parser)


 "/workspace/tools/scancode/local/lib/python2.7/site-packages/pdfminer/pdfdocument.py", line 328, in __init__

self.info.append(dict_value(trailer['Info']))


 "/workspace/tools/scancode/local/lib/python2.7/site-packages/pdfminer/pdftypes.py", line 155, in dict_value

x = resolve1(x)


 "/workspace/tools/scancode/local/lib/python2.7/site-packages/pdfminer/pdftypes.py", line 75, in resolve1

x = x.resolve(default=default)


 "/workspace/tools/scancode/local/lib/python2.7/site-packages/pdfminer/pdftypes.py", line 62, in resolve

return self.doc.getobj(self.objid)


 "/workspace/tools/scancode/local/lib/python2.7/site-packages/pdfminer/pdfdocument.py", line 462, in getobj

(strmid, index, genno) = xref.get_pos(objid)


 "/workspace/tools/scancode/local/lib/python2.7/site-packages/pdfminer/pdfdocument.py", line 261, in get_pos

f2 = nunpack(ent[self.fl1:self.fl1+self.fl2])


 "/workspace/tools/scancode/local/lib/python2.7/site-packages/pdfminer/utils.py", line 175, in nunpack

raise TypeError('invalid length: %d' % l)

TypeError: invalid length: 8
