why my scrapy not run? I'm a new user of scrapy and it cannot create csv
In one code I used import - 'from scrapy.crawler import CrawlerProcess'. Then, in other spiders, I began to have the same problem as you. When I commented out the import CrawlerProcess - the problem went away.
Below is all of the error, I think it must be some config or version wrong
2022-11-01 19:43:58 [scrapy.crawler] INFO: Overridden settings:
{'BOT_NAME': 'spider2022', 'NEWSPIDER_MODULE': 'spider2022.spiders', 'REQUEST_FINGERPRINTER_IMPLEMENTATION': '2.7', 'ROBOTSTXT_OBEY': True, 'SPIDER_MODULES': ['spider2022.spiders'], 'TWISTED_REACTOR': 'twisted.internet.asyncioreactor.AsyncioSelectorReactor', 'USER_AGENT': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ' '(KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36'}
packages/scrapy/downloadermiddlewares/retry.py", line 25, in 
from twisted.web.client import ResponseFailed
File "/Users/zhangyiran/opt/anaconda3/lib/python3.9/site-packages/twisted/web/client.py", line 24, in 
from twisted.internet.endpoints import HostnameEndpoint, wrapClientTLS
File "/Users/zhangyiran/opt/anaconda3/lib/python3.9/site-packages/twisted/internet/endpoints.py", line 63, in 
from twisted.python.systemd import ListenFDs
File "/Users/zhangyiran/opt/anaconda3/lib/python3.9/site-packages/twisted/python/systemd.py", line 18, in 
from attrs import Factory, define
ModuleNotFoundError: No module named 'attrs'
(venv) (base) zhangyiran@zhangyirandeair spider2022 % ``
"