python attempted relative import with no known parent package code example

Example: from ..items import QuotesScrapyItem ImportError: attempted relative import with no known parent package

# it will happend because of you are try to run scrapy generated python file directly.
python quotes.py
# ImportError: attempted relative import with no known parent package
# Because scrapy generate items.py file ouside the spiders folder so you will get this error
# To resolve this just copy this items.py file into spiders folder That's it you will resolve the issue.