When I run my spider, I get the error:
ImportError: No module named pymongo
I have set up a dependency in my .yml file. It looks like:
project: default: 431098 requirements_file: requirements.txt
The only line in my requirements.txt file is:
pymongo==3.8.0
This is my folder setup:
Any ideas on what I'm doing wrong?
Try:
projects: default: 12345 requirements: file: requirements.txt
requirements_file was deprecated a while ago
Another thing is that you have "project: default" it should be "projects: default"
Thanks for the response. I made the suggested adjustments. While I'm no longer getting the import error, I'm now getting a configuration error:
ConfigurationError: The "dnspython" module must be installed to use mongodb+srv:// URIs
I've done some searching and I'm not able to find any documentation on how to address that error.
You need to add dnspython too to your requirements.txt it seems.
cireyennek
When I run my spider, I get the error:
I have set up a dependency in my .yml file. It looks like:
The only line in my requirements.txt file is:
This is my folder setup:
Any ideas on what I'm doing wrong?
Try:
requirements_file was deprecated a while ago
- Oldest First
- Popular
- Newest First
Sorted by Oldest Firstnestor
Try:
requirements_file was deprecated a while ago
nestor
Another thing is that you have "project: default" it should be "projects: default"
cireyennek
Thanks for the response. I made the suggested adjustments. While I'm no longer getting the import error, I'm now getting a configuration error:
I've done some searching and I'm not able to find any documentation on how to address that error.
nestor
You need to add dnspython too to your requirements.txt it seems.
-
Unable to select Scrapy project in GitHub
-
ScrapyCloud can't call spider?
-
Unhandled error in Deferred
-
Item API - Filtering
-
newbie to web scraping but need data from zillow
-
ValueError: Invalid control character
-
Cancelling account
-
Best Practices
-
Beautifulsoup with ScrapingHub
-
Delete a project in ScrapingHub
See all 438 topics