Comments (3)
I was having the same issue... Apparently it has something to do with the flask-pymongo
version that is not compatible with Eve's most recent version. I fixed it by running:
pip install flask-pymongo==0.5.2
from flask-sentinel.
pip install flask-pymongo==0.5.2
Also, werkzeug must be < 0.14.1 and Redis < 3.
from flask-sentinel.
Trying to upgrade/use Eve 0.9.2 and I see the same issue currently. Any recent information what versions are currently needed for flask-sentinel to work with Eve 0.9.2 for flask-pymongo, werkzeug and Redis?
Traceback (most recent call last):
File "run.py", line 39, in
ResourceOwnerPasswordCredentials(app)
File "/usr/local/lib/python3.7/site-packages/flask_sentinel/flask_sentinel.py", line 22, in init
self.init_app(app)
File "/usr/local/lib/python3.7/site-packages/flask_sentinel/flask_sentinel.py", line 44, in init_app
mongo.init_app(app, config_prefix='SENTINEL_MONGO')
File "/usr/local/lib/python3.7/site-packages/flask_pymongo/init.py", line 154, in init_app
self.cx = MongoClient(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pymongo/mongo_client.py", line 647, in init
dict(common.validate(k, v) for k, v in keyword_opts.items()))
File "/usr/local/lib/python3.7/site-packages/pymongo/mongo_client.py", line 647, in
dict(common.validate(k, v) for k, v in keyword_opts.items()))
File "/usr/local/lib/python3.7/site-packages/pymongo/common.py", line 725, in validate
value = validator(option, value)
File "/usr/local/lib/python3.7/site-packages/pymongo/common.py", line 143, in raise_config_error
raise ConfigurationError("Unknown option %s" % (key,))
pymongo.errors.ConfigurationError: Unknown option config_prefix
from flask-sentinel.
Related Issues (20)
- How to validate user data by cerberus?
- Error while trying to generate a new token :: 'bytes' object has no attribute 'encode' HOT 2
- Pypi package not updated (0.0.5 vs 0.0.6) HOT 2
- pip install breaks pip / fails HOT 1
- user hash encoding with python 3 HOT 4
- how to refresh token? HOT 5
- invalid_grant
- Problem with flask config
- 500 Internal Server Error for "oauth/management"
- Authorization not working HOT 1
- No check for duplicate username
- Project Requires MongoDB, Doesn't provide other DB support.
- How can I generate client token using post api?
- Linking client_id to a specific endpoint
- 500 Error on correct username and password.
- Cannot import module HOT 1
- Breaking changes with werkzeug==1.0.0 HOT 3
- Switch to authlib HOT 1
- v0.0.7 'save_token' is not handling 'access_token' typecasting according to how redis wants it HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flask-sentinel.