ERROR: Exception:
Traceback (most recent call last):
File "~/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 171, in _merge_into_criterion
crit = self.state.criteria[name]
KeyError: 'pyusb'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "~/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 224, in _main
status = self.run(options, args)
File "~/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper
return func(self, options, args)
File "~/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 321, in run
reqs, check_supported_wheels=not options.target_dir
File "~/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 122, in resolve
requirements, max_rounds=try_to_avoid_resolution_too_deep,
File "~/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 445, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "~/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 310, in resolve
name, crit = self._merge_into_criterion(r, parent=None)
File "~/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _merge_into_criterion
crit = Criterion.from_requirement(self._p, requirement, parent)
File "~/lib/python3.7/site-packages/pip/_vendor/resolvelib/resolvers.py", line 82, in from_requirement
if not cands:
File "~/lib/python3.7/site-packages/pip/_vendor/resolvelib/structs.py", line 124, in __bool__
return bool(self._sequence)
File "~/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 96, in __bool__
return any(self)
File "~/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 20, in _deduplicated_by_version
for candidate in candidates:
File "~/lib/python3.7/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 200, in iter_index_candidates
hashes=hashes,
File "~/lib/python3.7/site-packages/pip/_internal/index/package_finder.py", line 882, in find_best_candidate
candidates = self.find_all_candidates(project_name)
File "~/lib/python3.7/site-packages/pip/_internal/index/package_finder.py", line 826, in find_all_candidates
project_url, link_evaluator=link_evaluator,
File "~/lib/python3.7/site-packages/pip/_internal/index/package_finder.py", line 789, in process_project_url
html_page = self._link_collector.fetch_page(project_url)
File "~/lib/python3.7/site-packages/pip/_internal/index/collector.py", line 618, in fetch_page
return _get_html_page(location, session=self.session)
File "~/lib/python3.7/site-packages/pip/_internal/index/collector.py", line 430, in _get_html_page
resp = _get_html_response(url, session=session)
File "~/lib/python3.7/site-packages/pip/_internal/index/collector.py", line 144, in _get_html_response
"Cache-Control": "max-age=0",
File "~/lib/python3.7/site-packages/pip/_vendor/requests/sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "~/lib/python3.7/site-packages/pip/_internal/network/session.py", line 428, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "~/lib/python3.7/site-packages/pip/_vendor/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "~/lib/python3.7/site-packages/pip/_vendor/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "~/lib/python3.7/site-packages/pip/_vendor/cachecontrol/adapter.py", line 53, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File "~/lib/python3.7/site-packages/pip/_vendor/requests/adapters.py", line 533, in send
return self.build_response(request, resp)
File "~/lib/python3.7/site-packages/pip/_vendor/cachecontrol/adapter.py", line 80, in build_response
request, response
File "~/lib/python3.7/site-packages/pip/_vendor/cachecontrol/controller.py", line 374, in update_cached_response
self.cache.set(cache_url, self.serializer.dumps(request, cached_response))
File "~/lib/python3.7/site-packages/pip/_internal/network/cache.py", line 71, in set
f.write(value)
File "~/Python3/Lib/contextlib.py", line 119, in __exit__
next(self.gen)
File "~/lib/python3.7/site-packages/pip/_internal/utils/filesystem.py", line 112, in adjacent_tmp_file
os.fsync(result.file.fileno())
AttributeError: module 'os' has no attribute 'fsync'