-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Hi,
I launch the application with command : docker-compose up in the Chapter11 directory and I got this error :
app_1 | wait-for-it: db-postgres:5432 is available after 0 seconds
app_1 | wait-for-it: waiting 15 seconds for db-redis:6379
app_1 | wait-for-it: db-redis:6379 is available after 0 seconds
app_1 | /usr/local/lib/python3.10/site-packages/sanic_jwt/configuration.py:134: DeprecationWarning: There is no current event loop
app_1 | if asyncio.get_event_loop().is_running():
app_1 | Traceback (most recent call last):
app_1 | File "/usr/local/lib/python3.10/site-packages/sanic/cli/app.py", line 146, in _get_app
app_1 | app = app(self.args)
app_1 | File "/app/booktracker/server.py", line 47, in create_app
app_1 | setup_modules(app, *module_names)
app_1 | TypeError: Value after * must be an iterable, not Namespace
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/usr/local/bin/sanic", line 8, in
app_1 | sys.exit(main())
app_1 | File "/usr/local/lib/python3.10/site-packages/sanic/main.py", line 12, in main
app_1 | cli.run()
app_1 | File "/usr/local/lib/python3.10/site-packages/sanic/cli/app.py", line 85, in run
app_1 | app = self._get_app()
app_1 | File "/usr/local/lib/python3.10/site-packages/sanic/cli/app.py", line 148, in _get_app
app_1 | app = app()
app_1 | File "/app/booktracker/server.py", line 36, in create_app
app_1 | app = Sanic("BooktrackerApp", request_class=BooktrackerRequest)
app_1 | File "/usr/local/lib/python3.10/site-packages/sanic/app.py", line 223, in init
app_1 | self.class.register_app(self)
app_1 | File "/usr/local/lib/python3.10/site-packages/sanic/app.py", line 1461, in register_app
app_1 | raise SanicException(f'Sanic app name "{name}" already in use.')
app_1 | sanic.exceptions.SanicException: Sanic app name "BooktrackerApp" already in use.
booktracker_app_1 exited with code 1
Can you help me ?
Thanks