Impossible to install Black 19.3b0
See original GitHub issue- OS version and name:
elementary OS 0.4.1 Loki
- Poetry version:
0.12.17
- Link of a Gist with the contents of your pyproject.toml file: https://github.com/Xowap/typefit/blob/develop/pyproject.toml
Issue
I’m trying to install Black, and I’m kind of succeeding thanks to comments in #767. However, the version of Black I’m getting is not the latest one:
> poetry run black --version
black, version 18.9b0
The latest one being 19.3b0
.
I was wondering if this could be due to black not respecting semver, so I put the version number manually to see what happens, but turns out it’s not helping much.
black = {version = "19.3b0", allows-prereleases = true}
[SolverProblemError]
Because typefit depends on black (19.3b0) which doesn't match any versions, version solving failed.
Thanks for your help!
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (3 by maintainers)
Top Results From Across the Web
Impossible to install Black 19.3b0 · Issue #1505 - GitHub
I have black = "^19.3b0" , which currently resolves to 19.10b0 . Everything is working correctly with Poetry 1.0.0b3 under Python 3.7 and...
Read more >black 19.3b0 - PyPI
Black can be installed by running pip install black . It requires Python 3.6.0+ to run but you can reformat Python 2 code...
Read more >Łukasz Langa on Twitter: "It's done. You can test the latest and ...
It's done. You can test the latest and greatest here: pip install black==19.10b0 Thanks a million to everybody who helped with this, there's ......
Read more >18 : Cleaning Our Codebase - FastapiTutorial
We will not be installing black individually, Instead, we will keep it as a part of our pre-commit pipeline. For that first, we...
Read more >Lesson 18: Python style
I have recently found Black to be a very useful tool for style. It's self-ascribed adjective is "uncompromising." Black does not pay any...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m experiencing a similar problem by trying to add essentia to my dependencies. I’m also using elementary OS. But I solved it, here is how:
I edited the first line of
~/.poetry/bin/poetry
to#!/usr/bin/env python3
Here is some explanation: elementary OS comes with preinstalled python 2.x , that’s why the python environment variable is already occupied and one has to run
sudo apt install python3
to get python 3.x which then occupies the python3 environment variable. I would guess that many ubuntu based systems are installing python 3.* in this way that’s why sometimes poetry won’t run at all or is behaving in an unexpected manner. But that said, the bug can only be reproduced when running poetry with python 2.x (2.7 in my case).I can’t reproduce either.
poetry init
resulted inthen using the same command for installation