完整报错如下:
appleyuchi@Desktop:~$ /home/appleyuchi/anaconda3/bin/conda shell.posix activate Python3.6
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/home/appleyuchi/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 138, in main
return activator_main()
File "/home/appleyuchi/anaconda3/lib/python3.6/site-packages/conda/activate.py", line 1079, in main
context.__init__() # On import, context does not include SEARCH_PATH. This line fixes that.
File "/home/appleyuchi/anaconda3/lib/python3.6/site-packages/conda/base/context.py", line 348, in __init__
argparse_args=argparse_args)
File "/home/appleyuchi/anaconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 1271, in __init__
self._set_search_path(search_path)
File "/home/appleyuchi/anaconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 1277, in _set_search_path
self._set_raw_data(load_file_configs(search_path))
File "/home/appleyuchi/anaconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 465, in load_file_configs
raw_data = odict(kv for kv in chain.from_iterable(load_paths))
File "/home/appleyuchi/anaconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 465, in <genexpr>
raw_data = odict(kv for kv in chain.from_iterable(load_paths))
File "/home/appleyuchi/anaconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 440, in _file_yaml_loader
yield fullpath, YamlRawParameter.make_raw_parameters_from_file(fullpath)
File "/home/appleyuchi/anaconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 379, in make_raw_parameters_from_file
return cls.make_raw_parameters(filepath, ruamel_yaml) or EMPTY_MAP
File "/home/appleyuchi/anaconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 359, in make_raw_parameters
for key in from_map)
File "/home/appleyuchi/anaconda3/lib/python3.6/site-packages/conda/common/configuration.py", line 359, in <genexpr>
for key in from_map)
TypeError: string indices must be integers
`$ /home/appleyuchi/anaconda3/bin/conda shell.posix activate Python3.6`
environment variables:
AUTOJUMP_ERROR_PATH=/home/appleyuchi/.local/share/autojump/errors.log
CIO_TEST=<not set>
CLASSPATH=.:/home/appleyuchi/Java/jdk1.8.0_131/lib/dt.jar:/home/appleyuchi/Java/
jdk1.8.0_131/lib/tools.jar:/home/appleyuchi/bigdata/hbase-2.2.4/lib/*.
jar/home/appleyuchi/bigdata/flink-1.12/conf
CONDA_EXE=/home/appleyuchi/anaconda3/bin/conda
CONDA_PYTHON_EXE=/home/appleyuchi/anaconda3/bin/python
CONDA_ROOT=/home/appleyuchi/anaconda3
CONDA_SHLVL=0
HADOOP_CLASSPATH=:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/hadoop-
shim-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/hadoop-
shim-2.8-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
api-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-build-
tools-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
common-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
dag-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
examples-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
ext-service-tests-0.9.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/tez-history-
parser-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
javadoc-tools-0.9.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/tez-job-
analyzer-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
mapreduce-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
protobuf-history-plugin-0.9.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/tez-runtime-
internals-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
runtime-library-0.9.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/tez-tests-0.9.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/tez-yarn-timeline-cache-
plugin-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
yarn-timeline-history-0.9.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/tez-yarn-timeline-history-with-
acls-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-yarn-
timeline-history-with-fs-0.9.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/async-http-
client-1.8.16.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/commons-cli-1.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/commons-
codec-1.4.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/commons-
collections-3.2.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/commons-
collections4-4.1.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/commons-io-2.4.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/commons-
lang-2.6.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/commons-
math3-3.1.1.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/guava-11.0.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/hadoop-hdfs-
client-3.1.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/hadoop-mapreduce-client-
common-3.1.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/hadoop-mapreduce-client-
core-3.1.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/hadoop-yarn-server-timeline-
pluginstorage-3.1.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/jersey-
client-1.19.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/jersey-
json-1.19.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/jettison-1.3.4.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/jetty-
server-9.3.24.v20180605.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/jetty-
util-9.3.24.v20180605.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/jsr305-3.0.0.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/metrics-
core-3.1.0.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/lib/netty
-3.6.2.Final.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/protobuf-
java-2.5.0.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/lib/Roari
ngBitmap-0.5.21.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/servlet-api-2.5.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/slf4j-api-1.7.25.jar:/home/appleyuchi/bigdata/apache
-tez-0.9.2-bin/lib/slf4j-log4j12-1.7.25.jar
HIVE_AUX_JARS_PATH=/home/appleyuchi/bigdata/hadoop-3.1.2/share/hadoop/common/hadoop-
lzo-0.4.13.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/hadoop-
shim-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/hadoop-
shim-2.8-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
api-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-build-
tools-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
common-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
dag-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
examples-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
ext-service-tests-0.9.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/tez-history-
parser-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
javadoc-tools-0.9.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/tez-job-
analyzer-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
mapreduce-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
protobuf-history-plugin-0.9.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/tez-runtime-
internals-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
runtime-library-0.9.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/tez-tests-0.9.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/tez-yarn-timeline-cache-
plugin-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-
yarn-timeline-history-0.9.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/tez-yarn-timeline-history-with-
acls-0.9.2.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/tez-yarn-
timeline-history-with-fs-0.9.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/async-http-
client-1.8.16.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/commons-cli-1.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/commons-
codec-1.4.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/commons-
collections-3.2.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/commons-
collections4-4.1.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/commons-io-2.4.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/commons-
lang-2.6.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/commons-
math3-3.1.1.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/guava-11.0.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/hadoop-hdfs-
client-3.1.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/hadoop-mapreduce-client-
common-3.1.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/hadoop-mapreduce-client-
core-3.1.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/hadoop-yarn-server-timeline-
pluginstorage-3.1.2.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/jersey-
client-1.19.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/jersey-
json-1.19.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/jettison-1.3.4.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/jetty-
server-9.3.24.v20180605.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/jetty-
util-9.3.24.v20180605.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/jsr305-3.0.0.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/metrics-
core-3.1.0.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/lib/netty
-3.6.2.Final.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/protobuf-
java-2.5.0.jar:/home/appleyuchi/bigdata/apache-tez-0.9.2-bin/lib/Roari
ngBitmap-0.5.21.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/servlet-api-2.5.jar:/home/appleyuchi/bigdata/apache-
tez-0.9.2-bin/lib/slf4j-api-1.7.25.jar:/home/appleyuchi/bigdata/apache
-tez-0.9.2-bin/lib/slf4j-log4j12-1.7.25.jar
PATH=/home/appleyuchi/.nvm/versions/node/v12.18.0/bin:/home/appleyuchi/bigd
ata/flink-1.12/bin:/home/appleyuchi/bigdata/apache-maven-3.6.3/bin:/ho
me/appleyuchi/anaconda3/bin:/home/appleyuchi/anaconda3/condabin:/home/
appleyuchi/anaconda3/bin:/home/appleyuchi/bin:/usr/local/sbin:/usr/loc
al/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap
/bin:/home/appleyuchi/Java/jdk1.8.0_131/bin:/home/appleyuchi/bigdata/h
adoop-3.1.2:/home/appleyuchi/bigdata/hadoop-3.1.2/bin:/home/appleyuchi
/bigdata/spark-3.0.0-preview2-bin-hadoop3.2/bin:/home/appleyuchi/bigda
ta/scala-2.11.8//bin:/home/appleyuchi/bigdata/apache-hive-3.0.0-bin/bi
n:/home/appleyuchi/bigdata/hbase-2.2.4/bin:/home/appleyuchi/bigdata/ni
fi-1.11.4/bin:/home/appleyuchi/bigdata/apache-kylin-3.0.2-bin-
hadoop3/bin:/home/appleyuchi/bigdata/zeppelin-0.9.0-preview1-bin-
all/bin:/home/appleyuchi/bigdata/sqoop-1.4.7.bin__hadoop-2.6.0/bin
REQUESTS_CA_BUNDLE=<not set>
SPARK_CLASSPATH=/home/appleyuchi/bigdata/spark-3.0.0-preview2-bin-hadoop3.2/jars/*
SSL_CERT_FILE=<not set>
UBUNTU_MENUPROXY=<set>
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session2
active environment : None
shell level : 0
user config file : /home/appleyuchi/.condarc
populated config files :
conda version : 4.8.3
conda-build version : 3.18.11
python version : 3.6.10.final.0
virtual packages : __glibc=2.31
base environment : /home/appleyuchi/anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /home/appleyuchi/anaconda3/pkgs
/home/appleyuchi/.conda/pkgs
envs directories : /home/appleyuchi/anaconda3/envs
/home/appleyuchi/.conda/envs
platform : linux-64
user-agent : conda/4.8.3 requests/2.22.0 CPython/3.6.10 Linux/5.4.0-47-generic ubuntu/20.04.1 glibc/2.31
UID:GID : 1000:1000
netrc file : None
offline mode : False
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]: y
Upload successful.
Thank you for helping to improve conda.
Opt-in to always sending reports (and not see this message again)
by running
$ conda config --set report_errors true
原因:
sublime开太多,不小心删除了~/.condarc中的内容
解决方案:
编辑~/.condarc,输入以下内容即可:
changeps1: True
auto_update_conda: True
offline: True