Traceback (most recent call last):


 "selective_search.py", line 41, in <module>

main()


 "selective_search.py", line 13, in main

img_lbl, regions = selective_search(img, scale=500, sigma=0.9, min_size=10)


 "/usr/local/lib/python3.5/dist-packages/selectivesearch/selectivesearch.py", line 286, in selective_search

i, j = sorted(S.items(), cmp=lambda a, b: cmp(a[1], b[1]))[-1][0]
TypeError: 'cmp' is an invalid keyword argument for this function


Traceback (most recent call last):


 "/Users/***sensitive***/Library/Python/2.7/lib/python/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>

main()


 "/Users/***sensitive***/Library/Python/2.7/lib/python/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main

json_out['return_val'] = hook(**hook_input['kwargs'])


 "/Users/***sensitive***/Library/Python/2.7/lib/python/site-packages/pip/_vendor/pep517/_in_process.py", line 114, in get_requires_for_build_wheel

return hook(config_settings)


 "/private/var/folders/13/09f597jn53s3v4zgvncvh8x44c15rn/T/pip-build-env-x9gVG0/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 146, in get_requires_for_build_wheel

return self._get_build_requires(config_settings, requirements=['wheel'])


 "/private/var/folders/13/09f597jn53s3v4zgvncvh8x44c15rn/T/pip-build-env-x9gVG0/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 127, in _get_build_requires

self.run_setup()


 "/private/var/folders/13/09f597jn53s3v4zgvncvh8x44c15rn/T/pip-build-env-x9gVG0/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 243, in run_setup

self).run_setup(setup_script=setup_script)


 "/private/var/folders/13/09f597jn53s3v4zgvncvh8x44c15rn/T/pip-build-env-x9gVG0/overlay/lib/python2.7/site-packages/setuptools/build_meta.py", line 142, in run_setup

exec(compile(code, __file__, 'exec'), locals())


 "setup.py", line 448, in <module>

main()


 "setup.py", line 99, in main

% {"ext": re.escape(sysconfig.get_config_var("EXT_SUFFIX"))}


 "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", line 210, in escape

s = list(pattern)

TypeError: 'NoneType' object is not iterable
