No recent searches
Popular Articles
Sorry! nothing found for
Posted about 5 years ago by cireyennek
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?
0 Votes
nestor posted about 5 years ago Admin Best Answer
Try:
projects: default: 12345 requirements: file: requirements.txt
requirements_file was deprecated a while ago
4 Comments
nestor posted about 5 years ago Admin Answer
nestor posted about 5 years ago Admin
Another thing is that you have "project: default" it should be "projects: default"
cireyennek posted about 5 years ago
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.
Login to post a comment
People who like this
This post will be deleted permanently. Are you sure?
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?
0 Votes
nestor posted about 5 years ago Admin Best Answer
Try:
requirements_file was deprecated a while ago
0 Votes
4 Comments
nestor posted about 5 years ago Admin Answer
Try:
requirements_file was deprecated a while ago
0 Votes
nestor posted about 5 years ago Admin
Another thing is that you have "project: default" it should be "projects: default"
0 Votes
cireyennek posted about 5 years ago
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.
0 Votes
nestor posted about 5 years ago Admin
You need to add dnspython too to your requirements.txt it seems.
0 Votes
Login to post a comment