The issue seems the package directory, please see below. Please let me know how to set up the package directory before I run the conda update conda
Here are the errors when I run the codes:
jinbingbai@Jinbings-iMac ~ % conda list --name base conda
packages in environment at /Users/jinbingbai/opt/miniconda3:
Name Version Build Channel
conda 22.9.0 py37hecd8cb5_0
conda-package-handling 1.9.0 py37hca72f7f_0
jinbingbai@Jinbings-iMac ~ % conda update conda
Collecting package metadata (current_repodata.json): failed
WARNING conda.exceptions:print_unexpected_error_report(1251): KeyError('pkgs_dirs')
Traceback (most recent call last):
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1129, in call
return func(*args, **kwargs)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/cli/main.py", line 86, in main_subshell
exit_code = do_call(args, p)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 93, in do_call
return getattr(module, func_name)(args, parser)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/notices/core.py", line 72, in wrapper
return_value = func(*args, **kwargs)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/cli/main_update.py", line 22, in execute
install(args, parser, 'update')
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/cli/install.py", line 265, in install
should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]),
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/core/solve.py", line 159, in solve_for_transaction
should_retry_solve)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/core/solve.py", line 200, in solve_for_diff
force_remove, should_retry_solve)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/core/solve.py", line 304, in solve_final_state
ssc = self._collect_all_metadata(ssc)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/common/io.py", line 86, in decorated
return f(*args, **kwds)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/core/solve.py", line 439, in _collect_all_metadata
_supplement_index_with_system(virtual_pkg_index)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/core/index.py", line 172, in _supplement_index_with_system
cuda_version = context.cuda_version
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/auxlib/decorators.py", line 276, in new_fget
cache[inner_attname] = func(self)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/common/decorators.py", line 24, in wrapper
return func(*args, **kwargs)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/base/context.py", line 935, in cuda_version
return cuda_detect()
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/common/cuda.py", line 38, in cuda_detect
import ctypes
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/ctypes/init.py", line 7, in
from _ctypes import Union, Structure, Array
ImportError: dlopen(/Users/jinbingbai/opt/miniconda3/lib/python3.7/lib-dynload/_ctypes.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libffi.6.dylib
Referenced from: /Users/jinbingbai/opt/miniconda3/lib/python3.7/lib-dynload/_ctypes.cpython-37m-darwin.so
Reason: image not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1249, in print_unexpected_error_report
message_builder.append(get_main_info_str(error_report['conda_info']))
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/cli/main_info.py", line 237, in get_main_info_str
info_dict['_' + key] = ('\n' + 26 * ' ').join(info_dict[key])
KeyError: 'pkgs_dirs'
>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1129, in __call__
return func(*args, **kwargs)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/cli/main.py", line 86, in main_subshell
exit_code = do_call(args, p)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 93, in do_call
return getattr(module, func_name)(args, parser)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/notices/core.py", line 72, in wrapper
return_value = func(*args, **kwargs)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/cli/main_update.py", line 22, in execute
install(args, parser, 'update')
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/cli/install.py", line 265, in install
should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]),
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/core/solve.py", line 159, in solve_for_transaction
should_retry_solve)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/core/solve.py", line 200, in solve_for_diff
force_remove, should_retry_solve)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/core/solve.py", line 304, in solve_final_state
ssc = self._collect_all_metadata(ssc)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/common/io.py", line 86, in decorated
return f(*args, **kwds)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/core/solve.py", line 439, in _collect_all_metadata
_supplement_index_with_system(virtual_pkg_index)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/core/index.py", line 172, in _supplement_index_with_system
cuda_version = context.cuda_version
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/auxlib/decorators.py", line 276, in new_fget
cache[inner_attname] = func(self)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/common/decorators.py", line 24, in wrapper
return func(*args, **kwargs)
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/base/context.py", line 935, in cuda_version
return cuda_detect()
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/site-packages/conda/common/cuda.py", line 38, in cuda_detect
import ctypes
File "/Users/jinbingbai/opt/miniconda3/lib/python3.7/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ImportError: dlopen(/Users/jinbingbai/opt/miniconda3/lib/python3.7/lib-dynload/_ctypes.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libffi.6.dylib
Referenced from: /Users/jinbingbai/opt/miniconda3/lib/python3.7/lib-dynload/_ctypes.cpython-37m-darwin.so
Reason: image not found
$ /Users/jinbingbai/opt/miniconda3/bin/conda update conda
environment variables:
conda info could not be constructed.
KeyError('pkgs_dirs')
An unexpected error has occurred. Conda has prepared the above report.
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]:
Timeout reached. No report sent.