Skip to content

Web server isn't running

The current implementation to run the web server could work for some people, but it has some issues that avoid launching it:

  1. The dccServer.py imports defines a single try-except that can fail at multiple places. All of these errors will just complain with the messages "Fast-API is not installed" (when this is not always the case). The try-except block should be minimized to the lines that require so (with their correct fail message).
  2. The local import is not consistent and can be a cause of error. This should be updated to an absolute import pkg_name.module.
  3. It seems that to run it, it is required to locally call the dccServer file with uvicorn. Instead, a new script can be created that uses uvicorn.run(). Then, a single CLI command (that is installed with the package) can be linked to this script. All other errors can also be moved in here.