-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Spider has no attribute 'update_settings' #1849
Comments
@DeckerCHAN could you please provide an example code which fails with this error? |
This is my repo. You may explore this code. |
@DeckerCHAN you're passing a module to process.crawl, while it accepts either a Spider instance or a spider name. See http://doc.scrapy.org/en/latest/topics/api.html#scrapy.crawler.CrawlerProcess.crawl |
@DeckerCHAN it looks like pypa/pip#2783; before Python 3.5 default install dir was without spaces, but 3.5 is installed in Program Files. Could you try
I don't think it can be fixed in Scrapy. |
After re-install python at root of driver D and upgrade pip with easy_install, everything works good! Thank you for your assistance! Helps a lot! |
"D:\Program Files\Python\Python35-32\python.exe" G:/Python/ParkingSearch/entry_point.py
2016-03-06 12:43:40 [scrapy] INFO: Scrapy 1.0.5 started (bot: scrapybot)
2016-03-06 12:43:40 [scrapy] INFO: Optional features available: http11, ssl
2016-03-06 12:43:40 [scrapy] INFO: Overridden settings: {}
Traceback (most recent call last):
File "G:/Python/ParkingSearch/entry_point.py", line 16, in
main()
File "G:/Python/ParkingSearch/entry_point.py", line 11, in main
process.crawl(go_and_see_aus_spider)
File "D:\Program Files\Python\Python35-32\lib\site-packages\scrapy\crawler.py", line 150, in crawl
crawler = self._create_crawler(crawler_or_spidercls)
File "D:\Program Files\Python\Python35-32\lib\site-packages\scrapy\crawler.py", line 166, in _create_crawler
return Crawler(spidercls, self.settings)
File "D:\Program Files\Python\Python35-32\lib\site-packages\scrapy\crawler.py", line 32, in init
self.spidercls.update_settings(self.settings)
AttributeError: module 'crawler.spiders.test_spider' has no attribute 'update_settings'
The text was updated successfully, but these errors were encountered: