Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named spiders #1959

Closed
ghost opened this issue Apr 28, 2016 · 4 comments
Closed

ImportError: No module named spiders #1959

ghost opened this issue Apr 28, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 28, 2016

I'm sure my script is ok because it can run on my old computer ,but on my new computer it get this error

E:\python\python27\python.exe E:/pycharm/PycharmProjects/spider/test/novelspider/main.py
Traceback (most recent call last):
  File "E:/pycharm/PycharmProjects/spider/test/novelspider/main.py", line 3, in <module>
    cmdline.execute("scrapy crawl novspider".split())
  File "E:\python\python27\lib\site-packages\scrapy\cmdline.py", line 142, in execute
    cmd.crawler_process = CrawlerProcess(settings)
  File "E:\python\python27\lib\site-packages\scrapy\crawler.py", line 209, in __init__
    super(CrawlerProcess, self).__init__(settings)
  File "E:\python\python27\lib\site-packages\scrapy\crawler.py", line 115, in __init__
    self.spider_loader = _get_spider_loader(settings)
  File "E:\python\python27\lib\site-packages\scrapy\crawler.py", line 296, in _get_spider_loader
    return loader_cls.from_settings(settings.frozencopy())
  File "E:\python\python27\lib\site-packages\scrapy\spiderloader.py", line 30, in from_settings
    return cls(settings)
  File "E:\python\python27\lib\site-packages\scrapy\spiderloader.py", line 21, in __init__
    for module in walk_modules(name):
  File "E:\python\python27\lib\site-packages\scrapy\utils\misc.py", line 63, in walk_modules
    mod = import_module(path)
  File "E:\python\python27\lib\importlib\__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named spiders

I do not know where the problem is , please help me !

@redapple
Copy link
Contributor

redapple commented May 2, 2016

@Zjw-ML ,
what version of scrapy are you using?
is it different from the version on your old compter? (use scrapy version -v to check)

@lothbrek
Copy link

@Zjw-ML ,

Have you solved the issue?

If it worked on your old computer but not your new one, is it possible you haven't installed the necessary libraries?

  • Matt

@korsunowk
Copy link

korsunowk commented Jul 1, 2016

If you can import scrapy try write code not in PyCharm.. i write code in normal notepad and start project in terminal and all worked, but if i start project in PyCharm i have the same problem like in you.
If you cant import scrapy_package try rename package with scrapy project and try again. I have the same error with import my_scrapy_project.items. I rename project to other name and all worked. I hope its help for you.

@redapple
Copy link
Contributor

redapple commented Jul 5, 2016

@Zjw-ML , are you still having this issue?
If not, can I close this one?

@ghost ghost closed this as completed Jul 6, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants