Python3.7 scrapy遇到async报错


2018.08.01
版本:
python3.7 64bit
Scrapy 1.5.1
Twisted 18.7.0


出现报错:

File”c:\users\name\appdata\locall\programs\python37\lib\site-packages\twisted\conch\manhole.py”, line 12,in from twisted.conch import manhole, telnet

def write(self, data, async=false):
File”c:\users\name\appdata\locall\programs\python37\lib\site-packages\twisted\conch\manhole.py”, line 154
def write(self, data, async=false):

Python3.7 scrapy遇到async报错

每当出新语法糖,这些单词就会成为关键字,禁止当作变量名了。
这里async下面出现报错,因为await async成为了3.7的关键字,不能作为变量名使用。
进入manhole.py将async全改成async1就阔以了。

或者…重装Python3.6可破。

相关文章:

  • 2021-04-13
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2021-07-14
  • 2021-08-07
  • 2021-05-19
  • 2022-01-18
猜你喜欢
  • 2021-12-09
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-01-22
相关资源
相似解决方案