clash.service - A rule based proxy in Go.
Loaded: loaded (/usr/lib/systemd/user/clash.service; disabled; vendor preset: enabled)
Drop-In: /etc/systemd/user/clash.service.d
ββclashup.conf
Active: failed (Result: exit-code) since Mon 2021-04-19 10:04:06 CST; 6s ago
Process: 19317 ExecStartPre=/usr/bin/clashup --pre (code=exited, status=1/FAILURE)
4ζ 19 10:04:06 king-pc clashup[19317]: File "/usr/bin/clashup", line 95, in update
4ζ 19 10:04:06 king-pc clashup[19317]: parsed_clash_conf = self.parse_config(raw_clash_conf)
4ζ 19 10:04:06 king-pc clashup[19317]: File "/usr/bin/clashup", line 76, in parse_config
4ζ 19 10:04:06 king-pc clashup[19317]: self._load_conf(config, 'http_port', 'port')
4ζ 19 10:04:06 king-pc clashup[19317]: File "/usr/bin/clashup", line 73, in _load_conf
4ζ 19 10:04:06 king-pc clashup[19317]: config[config_key] = self.config[local_config_key]
4ζ 19 10:04:06 king-pc clashup[19317]: TypeError: 'str' object does not support item assignment
4ζ 19 10:04:06 king-pc systemd[1610]: clash.service: Control process exited, code=exited, status=1/FAILURE
4ζ 19 10:04:06 king-pc systemd[1610]: clash.service: Failed with result 'exit-code'.
4ζ 19 10:04:06 king-pc systemd[1610]: Failed to start A rule based proxy in Go..
I don't know why this line of code reports an error, is the python version reason?
config[config_key] = self.config[local_config_key]
~ >>> python --version [2]
Python 3.9.3