macOS big sur python3.8.2, __init__() got an unexpected keyword argument 'encoding'
HOWIE-CH opened this issue · comments
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/scrapy_redis/connection.py", line 60, in get_redis_from_settings
return get_redis(**params)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/scrapy_redis/connection.py", line 90, in get_redis
return redis_cls(**kwargs)
builtins.TypeError: init() got an unexpected keyword argument 'encoding'
environment: macOS big sur
python version: python3.8.2
scrapy_redis
using utf-8
as default encoding, If you encounter a garbled message, please change your encoding setting in your python local package at scrapy-redis/src/scrapy_redis/defaults.py
by changing REDIS_ENCODING = 'utf-8'
.