Hi Everyone:
I am fairly new to all of this, so I apologize if my question is unclear. I attempted to utilize conda update --all and when I went to open a .ipynb file in Jupyter Notebook, I got a 500 Internal Server Error. I went back to the command line and tried conda update --all again and I get the following error.
Can anyone help me diagnose what happened?
(base) PS C:\Users\scott> conda update --all
Collecting package metadata (current_repodata.json): failed
WARNING conda.exceptions:print_unexpected_error_report(1216): KeyError(‘pkgs_dirs’)
Traceback (most recent call last):
File “C:\Users\scott\anaconda3\lib\site-packages\conda\exceptions.py”, line 1082, in call
return func(*args, **kwargs)
File “C:\Users\scott\anaconda3\lib\site-packages\conda\cli\main.py”, line 87, in _main
exit_code = do_call(args, p)
File “C:\Users\scott\anaconda3\lib\site-packages\conda\cli\conda_argparse.py”, line 84, in do_call
return getattr(module, func_name)(args, parser)
File “C:\Users\scott\anaconda3\lib\site-packages\conda\cli\main_update.py”, line 20, in execute
install(args, parser, ‘update’)
File “C:\Users\scott\anaconda3\lib\site-packages\conda\cli\install.py”, line 260, in install
unlink_link_transaction = solver.solve_for_transaction(
File “C:\Users\scott\anaconda3\lib\site-packages\conda\core\solve.py”, line 152, in solve_for_transaction
unlink_precs, link_precs = self.solve_for_diff(update_modifier, deps_modifier,
File “C:\Users\scott\anaconda3\lib\site-packages\conda\core\solve.py”, line 195, in solve_for_diff
final_precs = self.solve_final_state(update_modifier, deps_modifier, prune, ignore_pinned,
File “C:\Users\scott\anaconda3\lib\site-packages\conda\core\solve.py”, line 300, in solve_final_state
ssc = self._collect_all_metadata(ssc)
File “C:\Users\scott\anaconda3\lib\site-packages\conda\common\io.py”, line 88, in decorated
return f(*args, **kwds)
File “C:\Users\scott\anaconda3\lib\site-packages\conda\core\solve.py”, line 463, in _collect_all_metadata
index, r = self._prepare(prepared_specs)
File “C:\Users\scott\anaconda3\lib\site-packages\conda\core\solve.py”, line 1058, in _prepare
reduced_index = get_reduced_index(self.prefix, self.channels,
File “C:\Users\scott\anaconda3\lib\site-packages\conda\core\index.py”, line 288, in get_reduced_index
new_records = SubdirData.query_all(spec, channels=channels, subdirs=subdirs,
File “C:\Users\scott\anaconda3\lib\site-packages\conda\core\subdir_data.py”, line 118, in query_all
create_cache_dir()
File “C:\Users\scott\anaconda3\lib\site-packages\conda\core\subdir_data.py”, line 876, in create_cache_dir
cache_dir = join(PackageCacheData.first_writable().pkgs_dir, ‘cache’)
File “C:\Users\scott\anaconda3\lib\site-packages\conda\core\package_cache_data.py”, line 151, in first_writable
pkgs_dirs = context.pkgs_dirs
File “C:\Users\scott\anaconda3\lib\site-packages\conda\base\context.py”, line 530, in pkgs_dirs
fixed_dirs += user_data_dir(APP_NAME, APP_NAME),
File “C:\Users\scott\anaconda3\lib\site-packages\conda_vendor\appdirs.py”, line 67, in user_data_dir
path = os.path.join(_get_win_folder(const), appauthor, appname)
File “C:\Users\scott\anaconda3\lib\site-packages\conda_vendor\appdirs.py”, line 284, in _get_win_folder_with_pywin32
from win32com.shell import shellcon, shell
ImportError: DLL load failed while importing shell: The specified procedure could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\scott\anaconda3\lib\site-packages\conda\exceptions.py”, line 1214, in print_unexpected_error_report
message_builder.append(get_main_info_str(error_report[‘conda_info’]))
File “C:\Users\scott\anaconda3\lib\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 "C:\Users\scott\anaconda3\lib\site-packages\conda\exceptions.py", line 1082, in __call__
return func(*args, **kwargs)
File "C:\Users\scott\anaconda3\lib\site-packages\conda\cli\main.py", line 87, in _main
exit_code = do_call(args, p)
File "C:\Users\scott\anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 84, in do_call
return getattr(module, func_name)(args, parser)
File "C:\Users\scott\anaconda3\lib\site-packages\conda\cli\main_update.py", line 20, in execute
install(args, parser, 'update')
File "C:\Users\scott\anaconda3\lib\site-packages\conda\cli\install.py", line 260, in install
unlink_link_transaction = solver.solve_for_transaction(
File "C:\Users\scott\anaconda3\lib\site-packages\conda\core\solve.py", line 152, in solve_for_transaction
unlink_precs, link_precs = self.solve_for_diff(update_modifier, deps_modifier,
File "C:\Users\scott\anaconda3\lib\site-packages\conda\core\solve.py", line 195, in solve_for_diff
final_precs = self.solve_final_state(update_modifier, deps_modifier, prune, ignore_pinned,
File "C:\Users\scott\anaconda3\lib\site-packages\conda\core\solve.py", line 300, in solve_final_state
ssc = self._collect_all_metadata(ssc)
File "C:\Users\scott\anaconda3\lib\site-packages\conda\common\io.py", line 88, in decorated
return f(*args, **kwds)
File "C:\Users\scott\anaconda3\lib\site-packages\conda\core\solve.py", line 463, in _collect_all_metadata
index, r = self._prepare(prepared_specs)
File "C:\Users\scott\anaconda3\lib\site-packages\conda\core\solve.py", line 1058, in _prepare
reduced_index = get_reduced_index(self.prefix, self.channels,
File "C:\Users\scott\anaconda3\lib\site-packages\conda\core\index.py", line 288, in get_reduced_index
new_records = SubdirData.query_all(spec, channels=channels, subdirs=subdirs,
File "C:\Users\scott\anaconda3\lib\site-packages\conda\core\subdir_data.py", line 118, in query_all
create_cache_dir()
File "C:\Users\scott\anaconda3\lib\site-packages\conda\core\subdir_data.py", line 876, in create_cache_dir
cache_dir = join(PackageCacheData.first_writable().pkgs_dir, 'cache')
File "C:\Users\scott\anaconda3\lib\site-packages\conda\core\package_cache_data.py", line 151, in first_writable
pkgs_dirs = context.pkgs_dirs
File "C:\Users\scott\anaconda3\lib\site-packages\conda\base\context.py", line 530, in pkgs_dirs
fixed_dirs += user_data_dir(APP_NAME, APP_NAME),
File "C:\Users\scott\anaconda3\lib\site-packages\conda\_vendor\appdirs.py", line 67, in user_data_dir
path = os.path.join(_get_win_folder(const), appauthor, appname)
File "C:\Users\scott\anaconda3\lib\site-packages\conda\_vendor\appdirs.py", line 284, in _get_win_folder_with_pywin32
from win32com.shell import shellcon, shell
ImportError: DLL load failed while importing shell: The specified procedure could not be found.
$ C:\Users\scott\anaconda3\Scripts\conda-script.py update --all
environment variables:
conda info could not be constructed.
KeyError(‘pkgs_dirs’)
An unexpected error has occurred. Conda has prepared the above report.