-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues
Problem statement
Hey there, a colleague and me love this project, great work. Currently I am containerizing it for multiple purposes (local/remote machine).
I found a minor issue when bringing up the backend:
license = "Databricks License" should be e.g.: license = {text = "Databricks License"}
and sincerely ending up starting the backend with:
yarn run v1.22.22
$ hatch -e dev run dev-backend
INFO: Will watch for changes in these directories: ['/app/src/frontend']
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: Started reloader process [144] using StatReload
Process SpawnProcess-1:
Traceback (most recent call last):
File "/root/.local/share/hatch/env/virtual/.pythons/3.10/python/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/root/.local/share/hatch/env/virtual/.pythons/3.10/python/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/root/.local/share/hatch/env/virtual/ontos/GPaIsmRp/dev/lib/python3.10/site-packages/uvicorn/_subprocess.py", line 80, in subprocess_started
target(sockets=sockets)
File "/root/.local/share/hatch/env/virtual/ontos/GPaIsmRp/dev/lib/python3.10/site-packages/uvicorn/server.py", line 67, in run
return asyncio_run(self.serve(sockets=sockets), loop_factory=self.config.get_loop_factory())
File "/root/.local/share/hatch/env/virtual/ontos/GPaIsmRp/dev/lib/python3.10/site-packages/uvicorn/_compat.py", line 60, in asyncio_run
return loop.run_until_complete(main)
File "/root/.local/share/hatch/env/virtual/.pythons/3.10/python/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/root/.local/share/hatch/env/virtual/ontos/GPaIsmRp/dev/lib/python3.10/site-packages/uvicorn/server.py", line 71, in serve
await self._serve(sockets)
File "/root/.local/share/hatch/env/virtual/ontos/GPaIsmRp/dev/lib/python3.10/site-packages/uvicorn/server.py", line 78, in _serve
config.load()
File "/root/.local/share/hatch/env/virtual/ontos/GPaIsmRp/dev/lib/python3.10/site-packages/uvicorn/config.py", line 439, in load
self.loaded_app = import_from_string(self.app)
File "/root/.local/share/hatch/env/virtual/ontos/GPaIsmRp/dev/lib/python3.10/site-packages/uvicorn/importer.py", line 22, in import_from_string
raise exc from None
File "/root/.local/share/hatch/env/virtual/ontos/GPaIsmRp/dev/lib/python3.10/site-packages/uvicorn/importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
File "/root/.local/share/hatch/env/virtual/.pythons/3.10/python/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 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'src'And the frontend is just pushing "connection refused" errors then.
a minimal compose file for local dev is working fine so far:
services:
ontos-app:
container_name: ontos-app
env_file:
- .env
environment:
- ENV=LOCAL
ports:
- "3000:3000"
build:
context: .
dockerfile: Dockerfile.dev
networks:
- default
ontos-db:
container_name: ontos-db
image: postgres:15
env_file:
- .env
volumes:
- ./db:/var/lib/postgresql/data
networks:
- defaultProposed Solution
chang license = "Databricks License" should be e.g.: license = {text = "Databricks License"} o link to the license file here. There should be an explainati why the change of license from real open source to this.
Maybe, if actually not my fault: Take a look at the error i pasted.
Additional Context
No response