Erro com Docker
Rodando com Docker como descrito, porém usando portas diferentes: docker run --name xango1 -p 8083:80 bbx-fastapi
Me da esse erro:
Traceback (most recent call last):
File "/usr/local/bin/uvicorn", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/uvicorn/main.py", line 362, in main
run(**kwargs)
File "/usr/local/lib/python3.8/site-packages/uvicorn/main.py", line 386, in run
server.run()
File "/usr/local/lib/python3.8/site-packages/uvicorn/server.py", line 49, in run
loop.run_until_complete(self.serve(sockets=sockets))
File "uvloop/loop.pyx", line 1494, in uvloop.loop.Loop.run_until_complete
File "/usr/local/lib/python3.8/site-packages/uvicorn/server.py", line 56, in serve
config.load()
File "/usr/local/lib/python3.8/site-packages/uvicorn/config.py", line 308, in load
self.loaded_app = import_from_string(self.app)
File "/usr/local/lib/python3.8/site-packages/uvicorn/importer.py", line 20, in import_from_string
module = importlib.import_module(module_str)
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/./baobaxia/acervo.py", line 10, in <module>
from .rest import BaobaxiaAPI
File "/./baobaxia/rest.py", line 14, in <module>
from .root import Baobaxia, BaobaxiaError
File "/./baobaxia/root.py", line 10, in <module>
from .sankofa import Sankofa
File "/./baobaxia/sankofa.py", line 6, in <module>
from datalad.api import Dataset, create
File "/usr/local/lib/python3.8/site-packages/datalad/__init__.py", line 48, in <module>
cfg = ConfigManager()
File "/usr/local/lib/python3.8/site-packages/datalad/config.py", line 346, in __init__
self.reload(force=True)
File "/usr/local/lib/python3.8/site-packages/datalad/config.py", line 399, in reload
self._stores[store_id] = self._reload(runargs)
File "/usr/local/lib/python3.8/site-packages/datalad/config.py", line 427, in _reload
stdout, stderr = self._run(
File "/usr/local/lib/python3.8/site-packages/datalad/config.py", line 789, in _run
out = self._runner.run(self._config_cmd + args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/datalad/cmd.py", line 379, in run
results = event_loop.run_until_complete(
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 592, in run_until_complete
self._check_running()
File "/usr/local/lib/python3.8/asyncio/base_events.py", line 554, in _check_running
raise RuntimeError(
RuntimeError: Cannot run the event loop while another loop is running