@Eoin_Brazil i’m working on the M220P MongoDB for Python Developers in the chapter 0 where we have to run the “python run.py” command, the command window shows this :
File "run.py", line 11, in <module>
app = create_app()
File "C:\Users\ddd\desktop\.vs\try1\mflix\factory.py", line 36, in create_app
app.register_blueprint(movies_api_v1)
File "C:\Users\ddd\anaconda3\lib\site-packages\flask\app.py", line 98, in wrapper_func
return f(self, *args, **kwargs)
File "C:\Users\ddd\anaconda3\lib\site-packages\flask\app.py", line 1168, in register_blueprint
blueprint.register(self, options, first_registration)
File "C:\Users\ddd\anaconda3\lib\site-packages\flask\blueprints.py", line 256, in register
deferred(state)
File "C:\Users\ddd\anaconda3\lib\site-packages\flask\blueprints.py", line 294, in <lambda>
self.record(lambda s: s.add_url_rule(rule, endpoint, view_func, **options))
File "C:\Users\ddd\anaconda3\lib\site-packages\flask\blueprints.py", line 86, in add_url_rule
**options
File "C:\Users\ddd\anaconda3\lib\site-packages\flask\app.py", line 98, in wrapper_func
return f(self, *args, **kwargs)
File "C:\Users\ddd\anaconda3\lib\site-packages\flask\app.py", line 1284, in add_url_rule
"existing endpoint function: %s" % endpoint
AssertionError: View function mapping is overwriting an existing endpoint function: movies_api_v1.wrapper
i’m running all the updated versions of the libraries mentioned in the requirments.txt
As far as get_jwt_claims() is concerned, the function was removed in the last update of the library and replaced with get_jwt().
I also have a question regarding the enviornment mflix we create, why?