Zyte Scrapy Cloud + Python dataclasses doesn't works

Posted over 3 years ago by Daniel García

Post a topic
Un Answered
D
Daniel García

Hi everybody.


I developed my spider and I use Python dataclasses (as documentation says: https://docs.scrapy.org/en/latest/topics/items.html#dataclass-items). In my local PC it works fine, but when I deployed to Cloud it fails and raises me this message:


"[sh_scrapy.extension] Wrong item type: [DATACLASS NAME] ...."


I use latest stack of Scrapy and I don't what I'm doing wrong. My scrapinghub.yml file :

project: XXXXXX
stack: scrapy:2.4-latest
requirements:
file: requirements.txt

0 Votes


0 Comments

Login to post a comment