Skip to content

Add missing __init__.py files for services packages - #18

Open
aacritea wants to merge 2 commits into
ruxailab:mainfrom
aacritea:mycode
Open

Add missing __init__.py files for services packages#18
aacritea wants to merge 2 commits into
ruxailab:mainfrom
aacritea:mycode

Conversation

@aacritea

@aacritea aacritea commented Mar 12, 2026

Copy link
Copy Markdown

Problem

While running the API locally, the import

from services.data.firebase_imp import FirebaseImp

raised ModuleNotFoundError: No module named 'services.data'.

Cause

The services directory was not recognized as a Python package when executing app.py.

Fix

Added __init__.py files to the relevant directories so that Python treats them as packages and the imports resolve correctly.

This issue was encountered while setting up and running the project locally following the README instructions.
If this behaviour was environment-specific, please let me know and I can adjust the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant