运行scrapy脚本时出现Python Twisted Value Error

时间:2018-06-04 13:09:26

标签: python scrapy vagrant twisted

我有, Python 3.6.5& 扭曲18.0.1

在运行scrapy crawler的脚本时,我收到了以下错误

Traceback (most recent call last):
 File "/opt/envs/skuscraper/bin/scrapy", line 7, in <module>
from scrapy.cmdline import execute
File "/opt/envs/skuscraper/lib/python3.6/site-packages/scrapy/__init__.py", line 27, in <module>
from . import _monkeypatches
File "/opt/envs/skuscraper/lib/python3.6/site-packages/scrapy/_monkeypatches.py", line 20, in <module>
import twisted.persisted.styles  # NOQA
File "/opt/envs/skuscraper/lib/python3.6/site-packages/twisted/persisted/styles.py", line 24, in <module>
from twisted.python import log
File "/opt/envs/skuscraper/lib/python3.6/site-packages/twisted/python/log.py", line 26, in <module>
from twisted.logger import (
ValueError: source code string cannot contain null bytes

我不明白这里发生了什么?

0 个答案:

没有答案