Comments (18)
Sorry that comment was directed to Sean. Think we posted at the same time
from black-feedstock.
@jgmarcel I could not reproduce this. After:
conda install -c conda-forge --force-reinstall black
I get
$ conda list | grep black
black 23.3.0 py310hbe9552e_0 conda-forge
$ pip list | grep black
black 23.3.0
Maybe I'm doing something different/wrong?
from black-feedstock.
@seanlaw I fail to see what could be different, but I still get the results I reported…
(I could get it work with pip install --upgrade black
, if anyone facing the same behavior finds this issue.)
from black-feedstock.
Would try running black --version
from black-feedstock.
@jakirkham Sure:
$ black --version
black, 0.0 (compiled: yes)
Python (CPython) 3.9.16
from black-feedstock.
Would try running
black --version
$ black --version
black, 23.3.0 (compiled: no)
Python (CPython) 3.10.10
from black-feedstock.
Thanks Sean! 🙏
What is the result with Python 3.9?
from black-feedstock.
In case you are interested, this is the output of pip install -U black
:
$ pip install -U black
Requirement already satisfied: black in /Users/jientile/anaconda3/envs/venv/lib/python3.9/site-packages (0.0)
Collecting black
Using cached black-23.3.0-cp39-cp39-macosx_10_16_universal2.whl (2.7 MB)
Requirement already satisfied: platformdirs>=2 in /Users/jientile/anaconda3/envs/venv/lib/python3.9/site-packages (from black) (2.5.2)
Requirement already satisfied: pathspec>=0.9.0 in /Users/jientile/anaconda3/envs/venv/lib/python3.9/site-packages (from black) (0.10.3)
Requirement already satisfied: typing-extensions>=3.10.0.0 in /Users/jientile/anaconda3/envs/venv/lib/python3.9/site-packages (from black) (4.4.0)
Requirement already satisfied: packaging>=22.0 in /Users/jientile/anaconda3/envs/venv/lib/python3.9/site-packages (from black) (23.0)
Requirement already satisfied: mypy-extensions>=0.4.3 in /Users/jientile/anaconda3/envs/venv/lib/python3.9/site-packages (from black) (0.4.3)
Requirement already satisfied: click>=8.0.0 in /Users/jientile/anaconda3/envs/venv/lib/python3.9/site-packages (from black) (8.0.4)
Requirement already satisfied: tomli>=1.1.0 in /Users/jientile/anaconda3/envs/venv/lib/python3.9/site-packages (from black) (2.0.1)
Installing collected packages: black
Attempting uninstall: black
Found existing installation: black 0.0
Uninstalling black-0.0:
Successfully uninstalled black-0.0
Successfully installed black-23.3.0
from black-feedstock.
Hi, guys. Are there any updates on this matter?
from black-feedstock.
How the fix for this issue's going?
I had the same problem when installing Black using conda from a .yml file. Running the pip
command with the --update
flag fixed, but it's a bit convoluted to this way :(
from black-feedstock.
Can someone please confirm they see the issue with the conda-forge
package?
The environment listing above shows this is coming from defaults
(as it does not list the channel conda-forge
as other packages do)
black 23.3.0 py39hca03da5_0
from black-feedstock.
FWIW here's my attempt to repro the issue with the conda-forge
and the version shows as expected
$ conda create -c conda-forge -n test_black black python=3.9 -y
Channels:
- conda-forge
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: done
## Package Plan ##
environment location: /Users/jkirkham/miniforge/envs/test_black
added / updated specs:
- black
- python=3.9
The following NEW packages will be INSTALLED:
black conda-forge/osx-arm64::black-23.3.0-py39h2804cbe_1
bzip2 conda-forge/osx-arm64::bzip2-1.0.8-h3422bc3_4
ca-certificates conda-forge/osx-arm64::ca-certificates-2022.12.7-h4653dfc_0
click conda-forge/noarch::click-8.1.3-unix_pyhd8ed1ab_2
libffi conda-forge/osx-arm64::libffi-3.4.2-h3422bc3_5
libsqlite conda-forge/osx-arm64::libsqlite-3.40.0-h76d750c_1
libzlib conda-forge/osx-arm64::libzlib-1.2.13-h03a7124_4
mypy_extensions conda-forge/noarch::mypy_extensions-1.0.0-pyha770c72_0
ncurses conda-forge/osx-arm64::ncurses-6.3-h07bb92c_1
openssl conda-forge/osx-arm64::openssl-3.1.0-h53f4e23_3
packaging conda-forge/noarch::packaging-23.1-pyhd8ed1ab_0
pathspec conda-forge/noarch::pathspec-0.11.1-pyhd8ed1ab_0
pip conda-forge/noarch::pip-23.1.2-pyhd8ed1ab_0
platformdirs conda-forge/noarch::platformdirs-3.5.0-pyhd8ed1ab_0
python conda-forge/osx-arm64::python-3.9.16-hea58f1e_0_cpython
python_abi conda-forge/osx-arm64::python_abi-3.9-3_cp39
readline conda-forge/osx-arm64::readline-8.2-h92ec313_1
setuptools conda-forge/noarch::setuptools-67.7.2-pyhd8ed1ab_0
tk conda-forge/osx-arm64::tk-8.6.12-he1e0b03_0
tomli conda-forge/noarch::tomli-2.0.1-pyhd8ed1ab_0
typing-extensions conda-forge/noarch::typing-extensions-4.5.0-hd8ed1ab_0
typing_extensions conda-forge/noarch::typing_extensions-4.5.0-pyha770c72_0
tzdata conda-forge/noarch::tzdata-2023c-h71feb2d_0
wheel conda-forge/noarch::wheel-0.40.0-pyhd8ed1ab_0
xz conda-forge/osx-arm64::xz-5.2.6-h57fd34a_0
Downloading and Extracting Packages
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate test_black
#
# To deactivate an active environment, use
#
# $ conda deactivate
$ conda activate test_black
$ conda list
# packages in environment at /Users/jkirkham/miniforge/envs/test_black:
#
# Name Version Build Channel
black 23.3.0 py39h2804cbe_1 conda-forge
bzip2 1.0.8 h3422bc3_4 conda-forge
ca-certificates 2022.12.7 h4653dfc_0 conda-forge
click 8.1.3 unix_pyhd8ed1ab_2 conda-forge
libffi 3.4.2 h3422bc3_5 conda-forge
libsqlite 3.40.0 h76d750c_1 conda-forge
libzlib 1.2.13 h03a7124_4 conda-forge
mypy_extensions 1.0.0 pyha770c72_0 conda-forge
ncurses 6.3 h07bb92c_1 conda-forge
openssl 3.1.0 h53f4e23_3 conda-forge
packaging 23.1 pyhd8ed1ab_0 conda-forge
pathspec 0.11.1 pyhd8ed1ab_0 conda-forge
pip 23.1.2 pyhd8ed1ab_0 conda-forge
platformdirs 3.5.0 pyhd8ed1ab_0 conda-forge
python 3.9.16 hea58f1e_0_cpython conda-forge
python_abi 3.9 3_cp39 conda-forge
readline 8.2 h92ec313_1 conda-forge
setuptools 67.7.2 pyhd8ed1ab_0 conda-forge
tk 8.6.12 he1e0b03_0 conda-forge
tomli 2.0.1 pyhd8ed1ab_0 conda-forge
typing-extensions 4.5.0 hd8ed1ab_0 conda-forge
typing_extensions 4.5.0 pyha770c72_0 conda-forge
tzdata 2023c h71feb2d_0 conda-forge
wheel 0.40.0 pyhd8ed1ab_0 conda-forge
xz 5.2.6 h57fd34a_0 conda-forge
$ black --version
black, 23.3.0 (compiled: no)
Python (CPython) 3.9.16
from black-feedstock.
Can someone please confirm they see the issue with the
conda-forge
package?The environment listing above shows this is coming from
defaults
(as it does not list the channelconda-forge
as other packages do)black 23.3.0 py39hca03da5_0
I could run black
normally after installing using conda-forge
package.
from black-feedstock.
Sorry, I confirm I got the problem for the first time while installing black
from the defaults
channel, but, after it was already installed, conda install -c conda-forge --force-reinstall black
did not make any difference. Should this issue be opened elsewhere then? I don’t know exactly where…
from black-feedstock.
Would suggest testing with a fresh environment or remove the black
package completely and then install. It is possible --force-reinstall
did not cleanly remove the package. Just to confirm whether or not the conda-forge
package has issues
If it is only a defaults
issue, would suggest raising a new issue on this repo
from black-feedstock.
Would suggest testing with a fresh environment or remove the
black
package completely and then install. It is possible--force-reinstall
did not cleanly remove the package. Just to confirm whether or not theconda-forge
package has issues
Just did this test and it worked as expected. So I believe the problem lies exclusively in the defaults
channel. Sorry once again for the false positive.
from black-feedstock.
No worries. Sorry for the difficulties so far
If you do raise an issue on the Anaconda repo, please add a link here for tracking/follow up
from black-feedstock.
If you do raise an issue on the Anaconda repo, please add a link here for tracking/follow up
Sure thing. Here it is: AnacondaRecipes#7
Thank you once again.
from black-feedstock.
Related Issues (18)
- noarch build failing HOT 4
- noarch/black-19.10b0-py_2.tar.bz2 contains files from other packages HOT 10
- Recipe does not install aiohttp dependency correctly HOT 3
- Include the jupyter black extension
- Feedstock Maintainer HOT 1
- @conda-forge-admin please, add user @seanlaw
- click minimum version
- @conda-forge-admin, please add user @seanlaw HOT 1
- remove noarch and correct dependencies HOT 1
- Feedstock Maintainer HOT 1
- turn on automerge? HOT 4
- v.22.8.0 is missing for noarch HOT 2
- @conda-forge-admin please, add user @raybellwaves
- @conda-forge-admin, please add user @raybellwaves HOT 2
- [warning] failed package validation and/or copy for commit ab389b92f8d2b515e4ba7c0ca7488e518a042ddb HOT 1
- mypyc build of black
- Add black to the default channel HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from black-feedstock.