Scrapy: ImportError: No module named items

From this message on google groups:

Your spider module is named the same as your scrapy project module, so
python is trying to import items relative to byub.py spider.

You are facing a common regret of python imports, see
http://www.python.org/dev/peps/pep-0328

quicks fixes:

  • rename your spider module to byub_org.py or similar.
  • or use from __future__ import absolute_import in byub.py spider.
  • or rename your project to something like byubbot.

Leave a Comment