Hi Guys
I have installed the flask version of Medtronic as instructed however when I tried to run it with flask run and visit http://127.0.0.1:5000/ in my browser I got the error below in the terminal:
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
Press CTRL+C to quit
'Loading KTBootstrapDefault from _templates.layout._bootstrap.default'
[2022-11-04 05:28:50,893] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/views.py", line 107, in view
return current_app.ensure_sync(self.dispatch_request)(**kwargs)
File "/Users/biyi/web/flask_projects/starterkit/dashboards/views.py", line 37, in dispatch_request
context = KTLayout.init({})
File "/Users/biyi/web/flask_projects/starterkit/_keenthemes/__init__.py", line 17, in init
'layout': KTTheme.setLayout('default.html', context),
File "/Users/biyi/web/flask_projects/starterkit/_keenthemes/libs/theme.py", line 227, in setLayout
KTBootstrap = KTTheme.importClass(module, 'KTBootstrap{}'.format(layout.title().replace('-', '')))
File "/Users/biyi/web/flask_projects/starterkit/_keenthemes/libs/theme.py", line 240, in importClass
module = import_module(fromModule)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/Users/biyi/web/flask_projects/starterkit/_templates/layout/_bootstrap/default.py", line 1, in <module>
from django.conf import settings
ModuleNotFoundError: No module named 'django'
127.0.0.1 - - [04/Nov/2022 05:28:50] "GET / HTTP/1.1" 500 -
Error on request:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/views.py", line 107, in view
return current_app.ensure_sync(self.dispatch_request)(**kwargs)
File "/Users/biyi/web/flask_projects/starterkit/dashboards/views.py", line 37, in dispatch_request
context = KTLayout.init({})
File "/Users/biyi/web/flask_projects/starterkit/_keenthemes/__init__.py", line 17, in init
'layout': KTTheme.setLayout('default.html', context),
File "/Users/biyi/web/flask_projects/starterkit/_keenthemes/libs/theme.py", line 227, in setLayout
KTBootstrap = KTTheme.importClass(module, 'KTBootstrap{}'.format(layout.title().replace('-', '')))
File "/Users/biyi/web/flask_projects/starterkit/_keenthemes/libs/theme.py", line 240, in importClass
module = import_module(fromModule)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/Users/biyi/web/flask_projects/starterkit/_templates/layout/_bootstrap/default.py", line 1, in <module>
from django.conf import settings
ModuleNotFoundError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/werkzeug/serving.py", line 335, in run_wsgi
execute(self.server.app)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/werkzeug/serving.py", line 322, in execute
application_iter = app(environ, start_response)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 2548, in __call__
return self.wsgi_app(environ, start_response)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 2528, in wsgi_app
response = self.handle_exception(e)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1724, in handle_exception
server_error = self.ensure_sync(handler)(server_error)
TypeError: View.as_view.<locals>.view() takes 0 positional arguments but 1 was given
[2022-11-04 05:28:50,965] ERROR in app: Exception on /favicon.ico [GET]
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1785, in dispatch_request
self.raise_routing_exception(req)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1767, in raise_routing_exception
raise request.routing_exception # type: ignore
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/ctx.py", line 351, in match_request
result = self.url_adapter.match(return_rule=True) # type: ignore
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/werkzeug/routing/map.py", line 624, in match
raise NotFound() from None
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1666, in handle_user_exception
return self.handle_http_exception(e)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1606, in handle_http_exception
return self.ensure_sync(handler)(e)
TypeError: View.as_view.<locals>.view() takes 0 positional arguments but 1 was given
127.0.0.1 - - [04/Nov/2022 05:28:50] "GET /favicon.ico HTTP/1.1" 500 -
Error on request:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1785, in dispatch_request
self.raise_routing_exception(req)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1767, in raise_routing_exception
raise request.routing_exception # type: ignore
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/ctx.py", line 351, in match_request
result = self.url_adapter.match(return_rule=True) # type: ignore
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/werkzeug/routing/map.py", line 624, in match
raise NotFound() from None
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1666, in handle_user_exception
return self.handle_http_exception(e)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1606, in handle_http_exception
return self.ensure_sync(handler)(e)
TypeError: View.as_view.<locals>.view() takes 0 positional arguments but 1 was given
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/werkzeug/serving.py", line 335, in run_wsgi
execute(self.server.app)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/werkzeug/serving.py", line 322, in execute
application_iter = app(environ, start_response)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 2548, in __call__
return self.wsgi_app(environ, start_response)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 2528, in wsgi_app
response = self.handle_exception(e)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1724, in handle_exception
server_error = self.ensure_sync(handler)(server_error)
TypeError: View.as_view.<locals>.view() takes 0 positional arguments but 1 was given
Kindly advice
Thanks
The flask app runs smooth locally but when i deploy it on server it gives me the similar errors. I'm trying to deploy it on IIS just like any other APIs.
But it does not find the modules when i deploy it.
Can you please help me with this?
INFO:waitress:Serving on http://127.0.0.1:5050
'Loading KTBootstrapDefault from _templates.layout._bootstrap.default'
ERROR:starterkit:Exception on / [GET]
Traceback (most recent call last):
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\views.py", line 107, in view
return current_app.ensure_sync(self.dispatch_request)(**kwargs)
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\dashboards\views.py", line 42, in dispatch_request
return render_template(self.template_name, title='Dashboard Page', layout=context['layout'])
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\templating.py", line 147, in render_template
return _render(app, template, context)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\templating.py", line 130, in _render
rv = template.render(context)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\jinja2\environment.py", line 1301, in render
self.environment.handle_exception()
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\jinja2\environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\_templates\pages\dashboards\index.html", line 7, in top-level template code
{% extends layout %}
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\_templates\layout\default.html", line 1, in top-level template code
{% extends 'layout/master.html' %}
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\_templates\layout\master.html", line 53, in top-level template code
{% block layout %}
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\_templates\layout\default.html", line 42, in block 'layout'
{% include 'partials/_modals.html' %}
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\_templates\partials\_modals.html", line 7, in top-level template code
{% include 'partials/modals/create-campaign/_main.html' %}
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\_templates\partials\modals\create-campaign\_main.html", line 14, in top-level template code
{{ getSvgIcon('duotune/arrows/arr061.svg', 'svg-icon svg-icon-1') }}
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\_keenthemes\templatetags\theme.py", line 20, in getSvgIcon
return mark_safe(KTTheme.getSvgIcon(path, classNames, folder))
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\_keenthemes\libs\theme.py", line 89, in getSvgIcon
svg = open('.' + KTTheme.asset(folder + path)).read()
FileNotFoundError: [Errno 2] No such file or directory: './assets/media/icons/duotune/arrows/arr061.svg'
ERROR:waitress:Exception while serving /
Traceback (most recent call last):
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\views.py", line 107, in view
return current_app.ensure_sync(self.dispatch_request)(**kwargs)
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\dashboards\views.py", line 42, in dispatch_request
return render_template(self.template_name, title='Dashboard Page', layout=context['layout'])
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\templating.py", line 147, in render_template
return _render(app, template, context)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\templating.py", line 130, in _render
rv = template.render(context)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\jinja2\environment.py", line 1301, in render
self.environment.handle_exception()
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\jinja2\environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\_templates\pages\dashboards\index.html", line 7, in top-level template code
{% extends layout %}
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\_templates\layout\default.html", line 1, in top-level template code
{% extends 'layout/master.html' %}
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\_templates\layout\master.html", line 53, in top-level template code
{% block layout %}
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\_templates\layout\default.html", line 42, in block 'layout'
{% include 'partials/_modals.html' %}
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\_templates\partials\_modals.html", line 7, in top-level template code
{% include 'partials/modals/create-campaign/_main.html' %}
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\_templates\partials\modals\create-campaign\_main.html", line 14, in top-level template code
{{ getSvgIcon('duotune/arrows/arr061.svg', 'svg-icon svg-icon-1') }}
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\_keenthemes\templatetags\theme.py", line 20, in getSvgIcon
return mark_safe(KTTheme.getSvgIcon(path, classNames, folder))
File "C:\inetpub\wwwroot\AcquisitionAI\starterkit\_keenthemes\libs\theme.py", line 89, in getSvgIcon
svg = open('.' + KTTheme.asset(folder + path)).read()
FileNotFoundError: [Errno 2] No such file or directory: './assets/media/icons/duotune/arrows/arr061.svg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\waitress\channel.py", line 428, in service
task.service()
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\waitress\task.py", line 168, in service
self.execute()
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\waitress\task.py", line 434, in execute
app_iter = self.channel.server.application(environ, start_response)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 2548, in __call__
return self.wsgi_app(environ, start_response)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 2528, in wsgi_app
response = self.handle_exception(e)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1724, in handle_exception
server_error = self.ensure_sync(handler)(server_error)
TypeError: view() takes 0 positional arguments but 1 was given
ERROR:starterkit:Exception on /favicon.ico [GET]
Traceback (most recent call last):
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1785, in dispatch_request
self.raise_routing_exception(req)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1767, in raise_routing_exception
raise request.routing_exception # type: ignore
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\ctx.py", line 351, in match_request
result = self.url_adapter.match(return_rule=True) # type: ignore
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\werkzeug\routing\map.py", line 624, in match
raise NotFound() from None
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1666, in handle_user_exception
return self.handle_http_exception(e)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1606, in handle_http_exception
return self.ensure_sync(handler)(e)
TypeError: view() takes 0 positional arguments but 1 was given
ERROR:waitress:Exception while serving /favicon.ico
Traceback (most recent call last):
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1785, in dispatch_request
self.raise_routing_exception(req)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1767, in raise_routing_exception
raise request.routing_exception # type: ignore
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\ctx.py", line 351, in match_request
result = self.url_adapter.match(return_rule=True) # type: ignore
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\werkzeug\routing\map.py", line 624, in match
raise NotFound() from None
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1666, in handle_user_exception
return self.handle_http_exception(e)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1606, in handle_http_exception
return self.ensure_sync(handler)(e)
TypeError: view() takes 0 positional arguments but 1 was given
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\waitress\channel.py", line 428, in service
task.service()
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\waitress\task.py", line 168, in service
self.execute()
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\waitress\task.py", line 434, in execute
app_iter = self.channel.server.application(environ, start_response)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 2548, in __call__
return self.wsgi_app(environ, start_response)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 2528, in wsgi_app
response = self.handle_exception(e)
File "c:\inetpub\wwwroot\acquisitionai\starterkit\new_venv\lib\site-packages\flask\app.py", line 1724, in handle_exception
server_error = self.ensure_sync(handler)(server_error)
TypeError: view() takes 0 positional arguments but 1 was given
Hi,
This is probably a bug. We will fix it.
In the meantime, could you please open this file:
Users/biyi/web/flask_projects/starterkit/_templates/layout/_bootstrap/default.py
Remove this line:
from django.conf import settings
from _keenthemes.settings import settings