Untitled

 avatar
user_1391036
plain_text
2 months ago
3.1 kB
5
Indexable
(edgardo) PS C:\Users\quiet\Desktop\projetos scrapy\varredor_de_sites> scrapy crawl duvida -O duvida.json
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\quiet\Desktop\projetos scrapy\edgardo\scripts\scrapy.exe\__main__.py", line 7, in <module>       
    sys.exit(execute())
             ~~~~~~~^^
  File "C:\Users\quiet\Desktop\projetos scrapy\edgardo\Lib\site-packages\scrapy\cmdline.py", line 187, in execute 
    cmd.crawler_process = CrawlerProcess(settings)
                          ~~~~~~~~~~~~~~^^^^^^^^^^
  File "C:\Users\quiet\Desktop\projetos scrapy\edgardo\Lib\site-packages\scrapy\crawler.py", line 424, in __init__
    super().__init__(settings)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "C:\Users\quiet\Desktop\projetos scrapy\edgardo\Lib\site-packages\scrapy\crawler.py", line 295, in __init__
    self.spider_loader: SpiderLoader = self._get_spider_loader(settings)
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "C:\Users\quiet\Desktop\projetos scrapy\edgardo\Lib\site-packages\scrapy\crawler.py", line 289, in _get_spider_loader
    return cast("SpiderLoader", loader_cls.from_settings(settings.frozencopy()))
                                ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\quiet\Desktop\projetos scrapy\edgardo\Lib\site-packages\scrapy\spiderloader.py", line 81, in from_settings
    return cls(settings)
  File "C:\Users\quiet\Desktop\projetos scrapy\edgardo\Lib\site-packages\scrapy\spiderloader.py", line 36, in __init__
    self._load_all_spiders()
    ~~~~~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\quiet\Desktop\projetos scrapy\edgardo\Lib\site-packages\scrapy\spiderloader.py", line 65, in _load_all_spiders
    for module in walk_modules(name):
                  ~~~~~~~~~~~~^^^^^^
  File "C:\Users\quiet\Desktop\projetos scrapy\edgardo\Lib\site-packages\scrapy\utils\misc.py", line 98, in walk_modules
    submod = import_module(fullpath)
  File "C:\Users\quiet\AppData\Local\Programs\Python\Python313\Lib\importlib\__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1022, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "C:\Users\quiet\Desktop\projetos scrapy\varredor_de_sites\varredor_de_sites\spiders\duvida.py", line 3, in <module>
    from varredor_de_sites.items import CitacaoItem
  File "C:\Users\quiet\Desktop\projetos scrapy\varredor_de_sites\varredor_de_sites\items.py", line 7, in <module>
    from scrapy.loader.processors import MapCompose, TakeFirst, Join
ModuleNotFoundError: No module named 'scrapy.loader.processors'
Leave a Comment