Maria-Liakata-NLP-Group / long

"LoNG" is a web user interface for performing longitudinal NLP analysis.
2 stars 0 forks source link

Issues with relative imports in web app code #66

Open dsj976 opened 1 year ago

dsj976 commented 1 year ago

There appear to be some issues with relative imports in the web application Python code in src/.

For instance, when running docker compose up, the webapp service created from src/Dockerfile fails with the following error: No module named 'app'. This can be fixed by making the following change in src/Dockerfile: -CMD ["gunicorn", "--forwarded-allow-ips", "'*'", "-b", "0.0.0.0", "app:server"] +CMD ["gunicorn", "--forwarded-allow-ips", "'*'", "-b", "0.0.0.0", "long.app:server"]

Note that this is not the only issue with relative imports in the src/ directory.