Traceback (most recent call last):


 "/usr/local/bin/subliminal", line 11, in <module>

sys.exit(subliminal())


 "/usr/local/lib/python2.7/dist-packages/click/core.py", line 829, in __call__

return self.main(*args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/click/core.py", line 782, in main

rv = self.invoke(ctx)


 "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1259, in invoke

return _process_result(sub_ctx.command.invoke(sub_ctx))


 "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/usr/local/lib/python2.7/dist-packages/click/core.py", line 610, in invoke

return callback(*args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/click/decorators.py", line 33, in new_func

return f(get_current_context().obj, *args, **kwargs)


 "/usr/local/lib/python2.7/dist-packages/subliminal/cli.py", line 403, in download

hearing_impaired=hearing_impaired, only_one=single)


 "/usr/local/lib/python2.7/dist-packages/subliminal/core.py", line 211, in download_best_subtitles

for s in subtitles], key=operator.itemgetter(1), reverse=True)


 "/usr/local/lib/python2.7/dist-packages/subliminal/score.py", line 106, in compute_score

matches = subtitle.get_matches(video)


 "/usr/local/lib/python2.7/dist-packages/subliminal/providers/podnapisi.py", line 76, in get_matches

matches |= guess_matches(video, guessit(release, {'type': 'movie'}))


 "/usr/local/lib/python2.7/dist-packages/subliminal/subtitle.py", line 229, in guess_matches

get_equivalent_release_groups(sanitize_release_group(video.release_group))):


 "/usr/local/lib/python2.7/dist-packages/subliminal/utils.py", line 138, in sanitize_release_group

string = re.sub(r'\[\w+\]', '', string)


 "/usr/lib/python2.7/re.py", line 155, in sub

return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or buffer
Traceback (most recent call last):


 "/home/graingert/.virtualenvs/pip-compile/bin/pip-compile", line 11, in <module>

sys.exit(cli())


 "/home/graingert/.virtualenvs/pip-compile/lib/python3.6/site-packages/click/core.py", line 722, in __call__

return self.main(*args, **kwargs)


 "/home/graingert/.virtualenvs/pip-compile/lib/python3.6/site-packages/click/core.py", line 697, in main

rv = self.invoke(ctx)


 "/home/graingert/.virtualenvs/pip-compile/lib/python3.6/site-packages/click/core.py", line 895, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/home/graingert/.virtualenvs/pip-compile/lib/python3.6/site-packages/click/core.py", line 535, in invoke

return callback(*args, **kwargs)


 "/home/graingert/.virtualenvs/pip-compile/lib/python3.6/site-packages/piptools/scripts/compile.py", line 187, in cli

results = resolver.resolve(max_rounds=max_rounds)


 "/home/graingert/.virtualenvs/pip-compile/lib/python3.6/site-packages/piptools/resolver.py", line 102, in resolve

has_changed, best_matches = self._resolve_one_round()


 "/home/graingert/.virtualenvs/pip-compile/lib/python3.6/site-packages/piptools/resolver.py", line 191, in _resolve_one_round

best_matches = {self.get_best_match(ireq) for ireq in constraints}


 "/home/graingert/.virtualenvs/pip-compile/lib/python3.6/site-packages/piptools/resolver.py", line 191, in <setcomp>

best_matches = {self.get_best_match(ireq) for ireq in constraints}


 "/home/graingert/.virtualenvs/pip-compile/lib/python3.6/site-packages/piptools/resolver.py", line 256, in get_best_match

best_match = self.repository.find_best_match(ireq, prereleases=self.prereleases)


 "/home/graingert/.virtualenvs/pip-compile/lib/python3.6/site-packages/piptools/repositories/pypi.py", line 110, in find_best_match

all_candidates = self.find_all_candidates(ireq.name)


 "/home/graingert/.virtualenvs/pip-compile/lib/python3.6/site-packages/piptools/repositories/pypi.py", line 96, in find_all_candidates

candidates = self.finder.find_all_candidates(req_name)


 "/home/graingert/.virtualenvs/pip-compile/lib/python3.6/site-packages/pip/index.py", line 423, in find_all_candidates

for page in self._get_pages(url_locations, project_name):


 "/home/graingert/.virtualenvs/pip-compile/lib/python3.6/site-packages/pip/index.py", line 568, in _get_pages

page = self._get_page(location)


 "/home/graingert/.virtualenvs/pip-compile/lib/python3.6/site-packages/pip/index.py", line 683, in _get_page

return HTMLPage.get_page(link, session=self.session)


 "/home/graingert/.virtualenvs/pip-compile/lib/python3.6/site-packages/pip/index.py", line 792, in get_page

"Cache-Control": "max-age=600",


 "/home/graingert/.virtualenvs/pip-compile/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 501, in get


 "/home/graingert/.virtualenvs/pip-compile/lib/python3.6/site-packages/pip/download.py", line 386, in request

return super(PipSession, self).request(method, url, *args, **kwargs)


 "/home/graingert/.virtualenvs/pip-compile/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 488, in request


 "/home/graingert/.virtualenvs/pip-compile/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 609, in send


 "/home/graingert/.virtualenvs/pip-compile/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 47, in send


 "/home/graingert/.virtualenvs/pip-compile/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py", line 423, in send


 "/home/graingert/.virtualenvs/pip-compile/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 643, in urlopen


 "/home/graingert/.virtualenvs/pip-compile/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 315, in increment
TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
