我该如何调试? AttributeError:“ StdoutLogger”对象没有属性“ buffer”

我的scrapy代码在Scraping Hub上收到此错误,但不是在本地。 AFAICT我在两个地方都使用Python 3.8和Scrapy 2.1.0。

Anybody know what's going on here? I can't find the source to StdoutLogger to try figuring it out.

File "/usr/local/lib/python3.8/site-packages/scrapy/extensions/feedexport.py", line 68, in __init__
    _stdout = sys.stdout.buffer