Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve inconsistency with import paths between development and production environments #828

Open
2 tasks
komalg1 opened this issue May 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@komalg1
Copy link
Collaborator

komalg1 commented May 7, 2024

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 komalg1 added the bug Something isn't working label May 7, 2024
@komalg1 komalg1 changed the title Absolute import module path breaks when solution is deployed Resolve Inconsistency with Import Paths Between Development and Production Environments May 7, 2024
@komalg1 komalg1 changed the title Resolve Inconsistency with Import Paths Between Development and Production Environments Resolve inconsistency with import paths between development and production environments May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant