Starting from Dec 2022, the default install of the kestrel-jupyter package with the latest pip 22.3.1 is like to fail with error:
ERROR: Exception:
Traceback (most recent call last):
File "/Users/subx/venv/test5/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper
status = run_func(*args)
File "/Users/subx/venv/test5/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
return func(self, options, args)
File "/Users/subx/venv/test5/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 400, in run
requirement_set = resolver.resolve(
File "/Users/subx/venv/test5/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "/Users/subx/venv/test5/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/Users/subx/venv/test5/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 373, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
File "/Users/subx/venv/test5/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 222, in _attempt_to_pin_criterion
satisfied = all(
File "/Users/subx/venv/test5/lib/python3.9/site-packages/pip/_vendor/resolvelib/resolvers.py", line 223, in <genexpr>
self._p.is_satisfied_by(requirement=r, candidate=candidate)
File "/Users/subx/venv/test5/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/provider.py", line 233, in is_satisfied_by
return requirement.is_satisfied_by(candidate)
File "/Users/subx/venv/test5/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/requirements.py", line 84, in is_satisfied_by
assert candidate.name == self.name, (
AssertionError: Internal issue: Candidate is not for this requirement jsonschema[format-nongpl,format-nongpl] vs jsonschema[format-nongpl]
Not sure why pip deducts something like jsonschema[format-nongpl,format-nongpl].
After checking where the jsonschema is used, I find three places/packages that use it as a dependency:
jupyterlab-server
nbformat
stix2-validator
When downgrade jupyterlab-server from the latest 2.16.4 to 2.15.2, the problem is solved and kestrel-jupyter installs successfully with the latest pip. Need to release a patch for kestrel-jupyter and check with jupyterlab-server to further debug.
Starting from Dec 2022, the default install of the
kestrel-jupyter
package with the latestpip 22.3.1
is like to fail with error:Not sure why pip deducts something like
jsonschema[format-nongpl,format-nongpl]
.After checking where the
jsonschema
is used, I find three places/packages that use it as a dependency:When downgrade
jupyterlab-server
from the latest 2.16.4 to 2.15.2, the problem is solved andkestrel-jupyter
installs successfully with the latestpip
. Need to release a patch forkestrel-jupyter
and check withjupyterlab-server
to further debug.