Non-existing package causes traceback
hbrodin opened this issue · 0 comments
Run: it-depends pip:libc63@2.31
Result:
File "/Users/hbrodin/projects/it-depends/venv/bin/it-depends", line 33, in
sys.exit(load_entry_point('it-depends', 'console_scripts', 'it-depends')())
File "/Users/hbrodin/projects/it-depends/it_depends/cli.py", line 138, in main
package_list = resolve(repo, cache=cache, depth_limit=args.depth_limit, max_workers=args.max_workers)
File "/Users/hbrodin/projects/it-depends/it_depends/dependencies.py", line 925, in resolve
result = finished.result()
File "/opt/homebrew/Cellar/python@3.9/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py", line 438, in result
return self.__get_result()
File "/opt/homebrew/Cellar/python@3.9/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py", line 390, in __get_result
raise self._exception
File "/opt/homebrew/Cellar/python@3.9/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/hbrodin/projects/it-depends/it_depends/dependencies.py", line 732, in _process_dep
return _DependencyResult(dep=dep, packages=list(dep.resolver.resolve(dep)), depth=depth)
File "/Users/hbrodin/projects/it-depends/it_depends/pip.py", line 151, in resolve
JohnnyDist(f"{dependency.package}"), version=dependency.semantic_version,
File "/Users/hbrodin/projects/it-depends/venv/lib/python3.9/site-packages/johnnydep/lib.py", line 64, in init
self.import_names, self.metadata = _get_info(
File "/Users/hbrodin/projects/it-depends/venv/lib/python3.9/site-packages/cachetools/func.py", line 66, in wrapper
v = func(*args, **kwargs)
File "/Users/hbrodin/projects/it-depends/venv/lib/python3.9/site-packages/johnnydep/lib.py", line 392, in _get_info
data = pipper.get(
File "/Users/hbrodin/projects/it-depends/venv/lib/python3.9/site-packages/cachetools/decorators.py", line 26, in wrapper
v = func(*args, **kwargs)
File "/Users/hbrodin/projects/it-depends/venv/lib/python3.9/site-packages/johnnydep/pipper.py", line 143, in get
out = subprocess.check_output(args, stderr=subprocess.STDOUT, cwd=scratch_dir)
File "/opt/homebrew/Cellar/python@3.9/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/opt/homebrew/Cellar/python@3.9/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/Users/hbrodin/projects/it-depends/venv/bin/python', '-m', 'pip', 'wheel', '-vvv', '--no-deps', '--no-cache-dir', '--disable-pip-version-check', '--progress-bar=off', '--use-deprecated=legacy-resolver', 'libc63']' returned non-zero exit status 1.