chat-with-your-data-solution-accelerator icon indicating copy to clipboard operation
chat-with-your-data-solution-accelerator copied to clipboard

Resolve inconsistency with import paths between development and production environments

Open komalg1 opened this issue 9 months ago • 1 comments

We are encountering an issue with module import paths that behave differently in our development and production environments. This inconsistency affects the reliability of our deployment process and could potentially lead to runtime errors.

Issue Details: When using absolute import statements such as: from backend.batch.utilities.helpers.EnvHelper import EnvHelper the application functions correctly in the local development environment. However, in the production environment, the same path causes import errors, and the system requires a relative import path, like: from ..helpers.EnvHelper import EnvHelper

Tasks:

  • [ ] Determine why absolute paths fail in the production environment but work in development.
  • [ ] Implement a solution that supports both absolute and relative import paths in all environments, thereby standardizing our codebase and deployment process.

komalg1 avatar May 07 '24 14:05 komalg1