python - not able to run the first run.py of eve -
i'm trying learn eve use expose database , i'm starting beginning eve first step.
run.py
from eve import eve app = eve() if __name__ == '__main__': app.run()
settings.py
domain = {'people': {}}
requirements.txt
scrapy==0.24.4 eve==0.5 pymongo==3.0.1
python run.py
eve.io.base.connectionexception: error initializing driver. make sure database serveris running. driver exception: configurationerror('unknown option auto_start_request',)
what's wrong? why there problem database although followed in eve
quickstart?
virtualenv --version
: 12.0.7pip -v
: 6.1.1python --version : 2.7.6
mongodb shell version: 2.4.9
the error getting because running pymongo 3.0.1 breaks backward compatibility in big way. if eve requirements find requires pymongo 2.8 (actually it's 2.7.x in production; 2.8+ on development branch).
if got pymongo 3.0.1, suspect installed requirements hand. ideal way install eve (or other python library really) pip install pypi, better if in virtualenv; see installation page.
for record, pymongo 3.0.1 compatibile branch ready on github, relying on flask-pymongo fork since current flask-pymongo release not compatible pymongo 3+. also, if want run mongodb 3.0 eve can that. pymongo 2.8 compatibile mongodb 3.0.
Comments
Post a Comment