FS#74126 - [shadowsocks] is not compatible with Python 3.10

Attached to Project: Community Packages
Opened by Andrey Kashlak (andreymal) - Tuesday, 15 March 2022, 13:52 GMT
Last edited by Felix Yan (felixonmars) - Wednesday, 04 May 2022, 07:29 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

shadowsocks 3.0.0a.20180219-4

When running ssserver, it raises this error:
[lru_cache.py:34] AttributeError: module 'collections' has no attribute 'MutableMapping'
It can easily be fixed by using collections.abc.MutableMapping: https://github.com/shadowsocks/shadowsocks/pull/1489

When running sslocal, it raises this error after connecting:
[common.py:97] AttributeError: 'map' object has no attribute 'insert'
There is no pull request in the upstream repo (yet?), but it can easily be fixed too (common.py, line 96):

v4addr = list(map(lambda x: ('%02X' % ord(x)), v4addr))

After fixing both errors shadowsocks works fine for me (however there may be other bugs that I personally have not encountered).

These are upstream bugs, but since these fixes are trivial, I think it can be patched by PKGBUILD.
This task depends upon

Closed by  Felix Yan (felixonmars)
Wednesday, 04 May 2022, 07:29 GMT
Reason for closing:  Implemented
Additional comments about closing:  shadowsocks 3.0.0a.20180219-5

Loading...