I am new to flask and started following this video tutorial... I completed it yesterday and came back to it today wherein, the EXACT SAME code which worked nicely till then, started displaying the following error:
Traceback (most recent call last):
File "app.py", line 5, in <module>
app = Flask(__name__)
File "C:\Users\VS\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\app.py", line 558, in __init__
self.add_url_rule(
File "C:\Users\VS\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\app.py", line 66, in wrapper_func
return f(self, *args, **kwargs)
File "C:\Users\VS\AppData\Local\Programs\Python\Python38-32\lib\site-packages\flask\app.py", line 1216, in add_url_rule
self.url_map.add(rule)
File "C:\Users\VS\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\routing.py", line 1562, in add
rule.bind(self)
File "C:\Users\VS\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\routing.py", line 711, in bind
self.compile()
File "C:\Users\VS\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\routing.py", line 767, in compile
self._build = self._compile_builder(False)
File "C:\Users\VS\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\routing.py", line 1128, in _compile_builder
return self.BuilderCompiler(self).compile(append_unknown)
File "C:\Users\VS\AppData\Local\Programs\Python\Python38-32\lib\site-packages\werkzeug\routing.py", line 1119, in compile
co = types.CodeType(*code_args)
TypeError: code() takes at least 14 arguments (13 given)
P.S.:Source code is in the video description... Thanks in advance:)