Open pmopedro opened 3 years ago
Hi @pmopedro
Have you managed to make it work? I am stuck with the same error as you.
Hey Vlad!
Unfortunately no. I think it is something due to the version it uses.
If you find out what it is. I'm very curious too and would like to know what has happened.
On Sat, May 15, 2021, 15:40 Vlad Dumitru @.***> wrote:
Hi @pmopedro https://github.com/pmopedro
Have you managed to make it work? I am stuck with the same error as you.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Bviveksingh/Personal-blog-flask/issues/2#issuecomment-841706675, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK5DCFRU5F6SZFIZY6DWZ5TTN253LANCNFSM4ZJAK6UQ .
Hey @Vivek Bisht
I have followed all the tutorial and I keep having some issues in blogs.wrapper.
Every time I try to create the database it throws this error: “AssertionError: View function mapping is overwriting an existing endpoint function: blogs.wrapper”
Traceback: File "", line 1, in
File "/home/pedro/Desktop/personal_projects/clonedBlog/Personal-blog-flask/api/init.py", line 21, in create_app
app.register_blueprint(blogs)
File "/home/pedro/Desktop/personal_projects/clonedBlog/Personal-blog-flask/venv/lib/python3.8/site-packages/flask/app.py", line 98, in wrapper_func
return f(self, args, kwargs)
File "/home/pedro/Desktop/personal_projects/clonedBlog/Personal-blog-flask/venv/lib/python3.8/site-packages/flask/app.py", line 1168, in register_blueprint
blueprint.register(self, options, first_registration)
File "/home/pedro/Desktop/personal_projects/clonedBlog/Personal-blog-flask/venv/lib/python3.8/site-packages/flask/blueprints.py", line 256, in register
deferred(state)
File "/home/pedro/Desktop/personal_projects/clonedBlog/Personal-blog-flask/venv/lib/python3.8/site-packages/flask/blueprints.py", line 294, in
self.record(lambda s: s.add_url_rule(rule, endpoint, view_func, options))
File "/home/pedro/Desktop/personal_projects/clonedBlog/Personal-blog-flask/venv/lib/python3.8/site-packages/flask/blueprints.py", line 81, in add_url_rule
self.app.add_url_rule(
File "/home/pedro/Desktop/personal_projects/clonedBlog/Personal-blog-flask/venv/lib/python3.8/site-packages/flask/app.py", line 98, in wrapper_func
return f(self, args, **kwargs)
File "/home/pedro/Desktop/personal_projects/clonedBlog/Personal-blog-flask/venv/lib/python3.8/site-packages/flask/app.py", line 1282, in add_url_rule
raise AssertionError(
AssertionError: View function mapping is overwriting an existing endpoint function: blogs.wrapper
I think it might be something related to dependencies or blueprint conflict, but I couldn’t fix my self. Any idea?
I’m running python 3.8.5 and the dependencies are
click 7.1.2 Flask 1.1.2 Flask-Cors 3.0.10 Flask-JWT-Extended 4.1.0 Flask-SQLAlchemy 2.4.4 greenlet 1.0.0 itsdangerous 1.1.0 Jinja2 2.11.3 MarkupSafe 1.1.1 pip 21.0.1 PyJWT 2.0.1 setuptools 47.1.0 six 1.15.0 SQLAlchemy 1.4.0 Werkzeug 1.0.1
Thank you