Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-existing package causes traceback #57

Open
hbrodin opened this issue Sep 21, 2021 · 0 comments
Open

Non-existing package causes traceback #57

hbrodin opened this issue Sep 21, 2021 · 0 comments

Comments

@hbrodin
Copy link
Collaborator

hbrodin commented Sep 21, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant