You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched open reports and couldn't find a duplicate
What happened?
I cannot activate conda environments in vscode terminal, though can activate in mac's terminal and also could in vscode before.
Could you tell me how to fix it ?
The error is below.
% conda activate base
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/Users/tamurayukito/opt/anaconda3/lib/python3.9/site-packages/conda/exception_handler.py", line 17, in __call__
return func(*args, **kwargs)
File "/Users/tamurayukito/opt/anaconda3/lib/python3.9/site-packages/conda/cli/main.py", line 110, in main_sourced
print(activator.execute(), end="")
File "/Users/tamurayukito/opt/anaconda3/lib/python3.9/site-packages/conda/activate.py", line 203, in execute
return getattr(self, self.command)()
File "/Users/tamurayukito/opt/anaconda3/lib/python3.9/site-packages/conda/activate.py", line 168, in activate
builder_result = self.build_activate(self.env_name_or_prefix)
File "/Users/tamurayukito/opt/anaconda3/lib/python3.9/site-packages/conda/activate.py", line 346, in build_activate
return self._build_activate_stack(env_name_or_prefix, False)
File "/Users/tamurayukito/opt/anaconda3/lib/python3.9/site-packages/conda/activate.py", line 436, in _build_activate_stack
deactivate_scripts = self._get_deactivate_scripts(old_conda_prefix)
File "/Users/tamurayukito/opt/anaconda3/lib/python3.9/site-packages/conda/activate.py", line 768, in _get_deactivate_scripts
for entry in os.scandir(join(prefix, "etc", "conda", "deactivate.d"))
File "/Users/tamurayukito/opt/anaconda3/lib/python3.9/posixpath.py", line 76, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
$ /Users/tamurayukito/opt/anaconda3/bin/conda shell.posix activate base
Following this error report, conda information is output.
After the conda information , this message is finally output.
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>
Checklist
What happened?
I cannot activate conda environments in vscode terminal, though can activate in mac's terminal and also could in vscode before.
Could you tell me how to fix it ?
The error is below.
Following this error report, conda information is output.
After the conda information , this message is finally output.
Conda Info
Conda Config
Conda list
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: