Hi, when I try to run conda info, conda list, conda env list, or conda install packagename, the following error appears:
Traceback (most recent call last):
File "/home/crowdbot/miniconda3/lib/python3.8/site-packages/conda/exception_handler.py", line 17, in __call__
return func(*args, **kwargs)
File "/home/crowdbot/miniconda3/lib/python3.8/site-packages/conda/cli/main.py", line 54, in main_subshell
parser = generate_parser(add_help=True)
File "/home/crowdbot/miniconda3/lib/python3.8/site-packages/conda/cli/conda_argparse.py", line 115, in generate_parser
configure_parser_create(sub_parsers)
File "/home/crowdbot/miniconda3/lib/python3.8/site-packages/conda/cli/conda_argparse.py", line 767, in configure_parser_create
add_parser_solver(solver_mode_options)
File "/home/crowdbot/miniconda3/lib/python3.8/site-packages/conda/cli/conda_argparse.py", line 1975, in add_parser_solver
solver.name for solver in context.plugin_manager.get_hook_results("solvers")
File "/home/crowdbot/miniconda3/lib/python3.8/site-packages/conda/base/context.py", line 492, in plugin_manager
from ..plugins.manager import get_plugin_manager
File "/home/crowdbot/miniconda3/lib/python3.8/site-packages/conda/plugins/__init__.py", line 28, in <module>
from .hookspec import hookimpl # noqa: F401
File "/home/crowdbot/miniconda3/lib/python3.8/site-packages/conda/plugins/hookspec.py", line 16, in <module>
from .types import (
File "/home/crowdbot/miniconda3/lib/python3.8/site-packages/conda/plugins/types.py", line 15, in <module>
from ..core.solve import Solver
File "/home/crowdbot/miniconda3/lib/python3.8/site-packages/conda/core/solve.py", line 30, in <module>
from ..exceptions import (
File "/home/crowdbot/miniconda3/lib/python3.8/site-packages/conda/exceptions.py", line 16, in <module>
from requests.exceptions import JSONDecodeError
ImportError: cannot import name 'JSONDecodeError' from 'requests.exceptions' (/home/crowdbot/.local/lib/python3.8/site-packages/requests/exceptions.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/crowdbot/miniconda3/bin/conda", line 13, in <module>
sys.exit(main())
File "/home/crowdbot/miniconda3/lib/python3.8/site-packages/conda/cli/main.py", line 109, in main
return conda_exception_handler(main, *args, **kwargs)
File "/home/crowdbot/miniconda3/lib/python3.8/site-packages/conda/exception_handler.py", line 389, in conda_exception_handler
return_value = exception_handler(func, *args, **kwargs)
File "/home/crowdbot/miniconda3/lib/python3.8/site-packages/conda/exception_handler.py", line 20, in __call__
return self.handle_exception(exc_val, exc_tb)
File "/home/crowdbot/miniconda3/lib/python3.8/site-packages/conda/exception_handler.py", line 52, in handle_exception
from .exceptions import (
File "/home/crowdbot/miniconda3/lib/python3.8/site-packages/conda/exceptions.py", line 16, in <module>
from requests.exceptions import JSONDecodeError
ImportError: cannot import name 'JSONDecodeError' from 'requests.exceptions' (/home/crowdbot/.local/lib/python3.8/site-packages/requests/exceptions.py)
conda activate envname still works thought.
This problem seems to appear after I upgrade the conda. I am backup the how minicoda file for potential reinstall. It would be great is someone could provide some hints to solve this issue. Thank you!