Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]arch-Python3.10.4-AttributeError #125

Open
Katzeee opened this issue May 13, 2022 · 1 comment
Open

[bug]arch-Python3.10.4-AttributeError #125

Katzeee opened this issue May 13, 2022 · 1 comment

Comments

@Katzeee
Copy link

Katzeee commented May 13, 2022

2022-05-13 14:25:12:264 [info] run command: %s python /home/xac/.config/electron-ssr/shadowsocksr/shadowsocks/local.py -s shallaz4.dnsflix.com -p 566 -k ****** -m chacha20-ietf -O auth_aes128_md5 -G 7515:-2Wt64CqdUoX]3 -o plain -b 127.0.0.1 -l 1080
2022-05-13 14:25:12:292 [info] Traceback (most recent call last):
2022-05-13 14:25:12:292 [info]   File "/home/xac/.config/electron-ssr/shadowsocksr/shadowsocks/local.py", line 31, in <module>
2022-05-13 14:25:12:292 [info]     from shadowsocks import shell, daemon, eventloop, tcprelay, udprelay, asyncdns
2022-05-13 14:25:12:292 [info]   File "/home/xac/.config/electron-ssr/shadowsocksr/shadowsocks/../shadowsocks/shell.py", line 26, in <module>
2022-05-13 14:25:12:292 [info]     from shadowsocks.common import to_bytes, to_str, IPNetwork, PortRange
2022-05-13 14:25:12:293 [info]   File "/home/xac/.config/electron-ssr/shadowsocksr/shadowsocks/../shadowsocks/common.py", line 27, in <module>
2022-05-13 14:25:12:293 [info]     from shadowsocks import lru_cache
2022-05-13 14:25:12:293 [info]   File "/home/xac/.config/electron-ssr/shadowsocksr/shadowsocks/../shadowsocks/lru_cache.py", line 44, in <module>
2022-05-13 14:25:12:293 [info]     class LRUCache(collections.MutableMapping):
2022-05-13 14:25:12:293 [info] AttributeError: module 'collections' has no attribute 'MutableMapping'
2022-05-13 14:25:12:293 [info] 
2022-05-13 14:25:12:296 [error] Python SSR quit with code: 1

Solution: vim ~/.config/electron-ssr/shadowsocksr/shadowsocks/lru_cache.py
change class LRUCache(collections.MutableMapping): to class LRUCache(collections.abc.MutableMapping): in line 44

@shaoyingrui
Copy link

shaoyingrui commented Sep 19, 2024


Thank u for your solution

 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants