-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
I am getting a TypeError: ChannelIndex.__init__() got an unexpected keyword argument 'write_current_repodata' when trying to conda pypi install huggingface-hub.
~/P/conda-pypi (main|↑4|✔) $ conda pypi install huggingface-hub (myenvironment)
Inspecting pypi and conda dependencies
PYPI index channels:
- https://pypi.org/simple/
Conda channels:
- file:///Users/dyeaw/Library/Application%20Support/conda-pypi
- conda-forge
- defaults
Converting required pypi packages: failed
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/Users/dyeaw/miniconda3/lib/python3.11/site-packages/conda/exception_handler.py", line 28, in __call__
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/dyeaw/miniconda3/lib/python3.11/site-packages/conda/cli/main.py", line 61, in main_subshell
exit_code = do_call(args, parser)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/dyeaw/miniconda3/lib/python3.11/site-packages/conda/cli/conda_argparse.py", line 181, in do_call
result = plugin_subcommand.action(getattr(args, "_args", args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dyeaw/miniconda3/lib/python3.11/site-packages/conda_pypi/cli/main.py", line 70, in execute
return execute_install(args)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/dyeaw/miniconda3/lib/python3.11/site-packages/conda_pypi/cli/install.py", line 132, in execute
changes = converter.convert_tree(match_specs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/dyeaw/miniconda3/lib/python3.11/site-packages/conda_pypi/convert_tree.py", line 235, in convert_tree
changes = self._convert_loop(
^^^^^^^^^^^^^^^^^^^
File "/Users/dyeaw/miniconda3/lib/python3.11/site-packages/conda_pypi/convert_tree.py", line 162, in _convert_loop
update_index(repo)
File "/Users/dyeaw/miniconda3/lib/python3.11/site-packages/conda_pypi/index.py", line 9, in update_index
channel_index = ChannelIndex(
^^^^^^^^^^^^^
TypeError: ChannelIndex.__init__() got an unexpected keyword argument 'write_current_repodata'
`$ /Users/dyeaw/miniconda3/bin/conda pypi install huggingface-hub`
environment variables:
BUNDLED_DEBUGPY_PATH=/Users/dyeaw/.cursor/extensions/ms-python.debugpy-2025.14.1-darwin-
arm64/bundled/libs/debugpy
CIO_TEST=<not set>
CONDA_DEFAULT_ENV=myenvironment
CONDA_PREFIX=/Users/dyeaw/miniconda3/envs/myenvironment
CONDA_PREFIX_1=/Users/dyeaw/miniconda3
CONDA_PROMPT_MODIFIER=(myenvironment)
CONDA_PYTHON_EXE=/Users/dyeaw/miniconda3/bin/python
CONDA_ROOT=/Users/dyeaw/miniconda3
CONDA_SHLVL=2
CURL_CA_BUNDLE=<not set>
INFOPATH=/opt/homebrew/share/info
LD_PRELOAD=<not set>
PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/opt/homebrew/opt/ruby/bin:/home/
dan/.rbenv/bin:/home/dan/.local/bin:/home/dan/.pyenv/bin:/home/dan/go/
bin:/Applications/Ghostty.app/Contents/MacOS:/usr/local/bin:/System/Cr
yptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.s
ecurity.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.app
le.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple
.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Libra
ry/Apple/usr/bin:/Users/dyeaw/miniconda3/envs/myenvironment/bin:/Users
/dyeaw/miniconda3/condabin:/Users/dyeaw/.local/bin:/Users/dyeaw/.curso
r/extensions/ms-python.debugpy-2025.14.1-darwin-
arm64/bundled/scripts/noConfigScripts:/Users/dyeaw/.local/bin
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
active environment : myenvironment
active env location : /Users/dyeaw/miniconda3/envs/myenvironment
shell level : 2
user config file : /Users/dyeaw/.condarc
populated config files : /Users/dyeaw/miniconda3/.condarc
/Users/dyeaw/.condarc
conda version : 25.9.1.29+g73e403311
conda-build version : not installed
python version : 3.11.13.final.0
solver : libmamba (default)
virtual packages : __archspec=1=m1
__conda=25.9.1.29+g73e403311=0
__cuda=0=0
__osx=15.6.1=0
__unix=0=0
base environment : /Users/dyeaw/miniconda3 (writable)
conda av data dir : /Users/dyeaw/miniconda3/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/osx-arm64
https://conda.anaconda.org/conda-forge/noarch
https://repo.anaconda.com/pkgs/main/osx-arm64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/osx-arm64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /Users/dyeaw/miniconda3/pkgs
/Users/dyeaw/.conda/pkgs
envs directories : /Users/dyeaw/miniconda3/envs
/Users/dyeaw/.conda/envs
platform : osx-arm64
user-agent : conda/25.9.1.29+g73e403311 requests/2.32.5 CPython/3.11.13 Darwin/24.6.0 OSX/15.6.1 solver/libmamba conda-libmamba-solver/25.4.1.dev50+g12b38bffe libmambapy/2.0.5
UID:GID : 502:20
netrc file : None
offline mode : False
An unexpected error has occurred. Conda has prepared the above report.
If you suspect this error is being caused by a malfunctioning plugin,
consider using the --no-plugins option to turn off plugins.
Example: conda --no-plugins install <package>
Alternatively, you can set the CONDA_NO_PLUGINS environment variable on
the command line to run the command without plugins enabled.
Example: CONDA_NO_PLUGINS=true conda install <package>
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers? [y/N]: n
No report sent. To permanently opt-out, use
$ conda config --set report_errors false
Metadata
Metadata
Assignees
Labels
No labels