79750471

Date: 2025-08-29 15:08:34
Score: 7
Natty: 4
Report link

I am working on an astrology application with the following directory structure. I am running a test in it- .\run_pytest_explicit.ps1; I am getting may errors in it-1. ModuleNotFoundError: No module named 'app.main'.2.No module named 'M2_HouseCalculation' 3.ModuleNotFoundError: No module named 'src'4.ModuleNotFoundError: No module named 'app.core.time_location_service'5. 6. ModuleNotFoundError: No module named 'app.pipeline.julian_day'7. ModuleNotFoundError: No module named 'app.pipeline.time_utils' ; Please tell me in beginner friendly way how to solve them? astro-backend

├── src/

│ ├── _init_.py # optional, usually src is not a package root

│ ├── app/

│ │ ├── _init_.py # marks app as package

│ │ ├── app.py # your main FastAPI app entrypoint

│ │ ├── core/

│ │ │ ├── _init_.py

│ │ │ └── ... # core utilities, helpers

│ │ ├── services/

│ │ │ ├── _init_.py

│ │ │ └── ... # app-wide service logic

│ │ ├── routes/

│ │ │ ├── _init_.py

│ │ │ └── ... # route definitions (optional)

│ │ └── ai_service/

│ │ ├── _init_.py

│ │ └── main.py # AI microservice router

│ ├── modules/

│ │ ├── _init_.py

│ │ ├── module3/

│ │ │ ├── _init_.py

│ │ │ ├── service.py

│ │ │ └── ai_service/

│ │ │ ├── _init_.py

│ │ │ └── main.py # AI microservice alternative location

│ │ └── other_modules/

│ └── tests/

│ ├── _init_.py # marks tests as package

│ └── ... # all test files and folders

├── .venv/ # your pre-existing virtual environment folder

├── PYTHONPATH_Set.ps1 # your PowerShell script to run tests

└── other project files...

Reasons:
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (2.5): Please tell me
  • RegEx Blacklisted phrase (1.5): how to solve them?
  • RegEx Blacklisted phrase (1): I am getting may error
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Anil Sharma