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

Cannot use black and toshling together #7

Closed
MaybeThisIsRu opened this issue Oct 5, 2021 · 2 comments
Closed

Cannot use black and toshling together #7

MaybeThisIsRu opened this issue Oct 5, 2021 · 2 comments

Comments

@MaybeThisIsRu
Copy link

MaybeThisIsRu commented Oct 5, 2021

When pipenv tries to lock dependencies, the following sub-dependency error arises:

✘ Locking Failed! 
[ResolutionFailure]:   File "/home/ru/.local/lib/python3.9/site-packages/pipenv/resolver.py", line 741, in _main
[ResolutionFailure]:       resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
[ResolutionFailure]:   File "/home/ru/.local/lib/python3.9/site-packages/pipenv/resolver.py", line 702, in resolve_packages
[ResolutionFailure]:       results, resolver = resolve(
[ResolutionFailure]:   File "/home/ru/.local/lib/python3.9/site-packages/pipenv/resolver.py", line 684, in resolve
[ResolutionFailure]:       return resolve_deps(
[ResolutionFailure]:   File "/home/ru/.local/lib/python3.9/site-packages/pipenv/utils.py", line 1397, in resolve_deps
[ResolutionFailure]:       results, hashes, markers_lookup, resolver, skipped = actually_resolve_deps(
[ResolutionFailure]:   File "/home/ru/.local/lib/python3.9/site-packages/pipenv/utils.py", line 1110, in actually_resolve_deps
[ResolutionFailure]:       resolver.resolve()
[ResolutionFailure]:   File "/home/ru/.local/lib/python3.9/site-packages/pipenv/utils.py", line 835, in resolve
[ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
 Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: Could not find a version that matches typing-extensions>=3.10.0.0,~=3.7.4.2 (from black==21.9b0->-r /tmp/pipenvwy0b124trequirements/pipenv-jp_9ytoa-constraints.txt (line 5))
Tried: 3.6.2, 3.6.2, 3.6.2.1, 3.6.2.1, 3.6.5, 3.6.5, 3.6.6, 3.6.6, 3.7.2, 3.7.2, 3.7.4, 3.7.4, 3.7.4.1, 3.7.4.1, 3.7.4.2, 3.7.4.2, 3.7.4.3, 3.7.4.3, 3.10.0.0, 3.10.0.0, 3.10.0.1, 3.10.0.1, 3.10.0.2, 3.10.0.2
There are incompatible versions in the resolved dependencies:
  typing-extensions>=3.10.0.0 (from black==21.9b0->-r /tmp/pipenvwy0b124trequirements/pipenv-jp_9ytoa-constraints.txt (line 5))
  typing-extensions~=3.7.4.2 (from statham-schema==0.13.4->toshling==0.0.4->-r /tmp/pipenvwy0b124trequirements/pipenv-jp_9ytoa-constraints.txt (line 6))

Environment

  • Pop!_OS 20.04 LTS
  • Python 3.9.7
  • asdf v0.8.1-a1ef92a
  • pipenv, version 2021.5.29
@MaybeThisIsRu
Copy link
Author

MaybeThisIsRu commented Oct 5, 2021

Looks like black recently had a PR psf/black#2460 for Python 3.10, which removes the earlier work on psf/black#1873. This likely leaves Python 3.8 and 3.9 in a pickle.

@MaybeThisIsRu
Copy link
Author

Ah, this should likely have been opened on black...

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