Healthcare app not working with ERPNext v15 on Docker — “No module named healthcare” error

Hey everyone :waving_hand:

I’m trying to install the Healthcare app alongside ERPNext v15 (using the official Docker setup), but it’s not working correctly.
The setup completes without visible errors, yet when I open the site or run bench build, I keep getting this error:

ModuleNotFoundError: No module named 'healthcare'

Even though the app is cloned correctly under /home/frappe/frappe-bench/apps/healthcare, it doesn’t load and the site breaks.


What I’ve already tried:

  • Rebuilt custom image from frappe/erpnext:v15.84.0 with Node.js 18 + Yarn preinstalled

  • Verified that ERPNext works fine before adding Healthcare

  • Recreated the site and reinstalled both apps using

    bench new-site frontend --mariadb-user-host-login-scope='%' --admin-password=admin
    bench --site frontend install-app erpnext
    bench --site frontend install-app healthcare
    
  • Confirmed containers and network are healthy

  • Still getting ModuleNotFoundError during or after setup


Expected:

Healthcare should install and work like any other app on ERPNext v15 Docker setup.

Actual:

ModuleNotFoundError + broken site, even though the app files exist.


Any suggestions or known fixes from anyone who successfully ran Healthcare with ERPNext v15 Docker would be hugely appreciated :folded_hands:


(Tags: erpnext, healthcare, installation_problem, docker)

Are you manually running the command after the core frappe & erpnext has been loaded or you are adding the application using a docker container?

Share your docker compose yaml file?

so first problem is that ERPNext health is now outsourced at GitHub - earthians/marley: Open Source, Enterprise and Modern Health Information System

second problem you cant use bench build/get-app/install-app in docker you need to create docker multi-site and multi-app please use easy-install.py: -

  1. wget https://raw.githubusercontent.com/frappe/bench/develop/easy-install.py

  2. git clone GitHub - frappe/frappe_docker: Docker images for production and development setups of the Frappe framework and ERPNext

  3. In “frappe_docker/development/apps-example.json” edit your apps with their branch: -
    [
    { “url”: “https://github.com/frappe/erpnext”, “branch”: “version-15” },
    { “url”: “https://github.com/frappe/hrms”, “branch”: “version-15” },
    { “url”: “https://github.com/frappe/education”, “branch”: “version-15” },
    { “url”: “https://github.com/frappe/crm”, “branch”: “main” },
    { “url”: “https://github.com/frappe/wiki”, “branch”: “master”},
    { “url”: “https://github.com/Aakvatech-Limited/CSF_TZ”, “branch”: “master”}
    ]

  4. python3 easy-install.py build

  5. python3 easy-install.py deploy --image=custom-apps --version=latest --sitename=bench3site1.duckdns.org --sitename=bench3site2.duckdns.org --sitename=bench3site3.duckdns.org --app=erpnext --app=hrms --app=education --app=crm --app=wiki --app=csf_tz

For step 4 and 5 if you want more options rather than default values please check out GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps

Don’t forget to add the sites to your host file

2 Likes

Hi @asieftejani,

Thanks a lot for the detailed response — that really clarified the Docker part :folded_hands:

Just wanted to check one thing: since the original ERPNext Healthcare module is now discontinued and outsourced to Marley by Earthians,
what’s the recommended option now for running healthcare-related use-cases within the Frappe/ERPNext ecosystem?

For example, if someone needs hospital management, patient records, appointments, or lab modules —
should we:

  1. Install Marley separately (as a standalone system), or

  2. Is there any maintained healthcare app that still works with ERPNext v15 (Docker or non-Docker)?

Would appreciate your guidance on how healthcare setups are being handled in the new ERPNext ecosystem :raising_hands:

Hi @sureshkhichi I’m from the Marley team, not much has changed regrding deployment since the separation of domains from ERPNext core - you can continue using the healthcare module. To answer you -

1 - Marley has a dependency on ERPNext and is not a stand alone Frappe app

2 - There’s no other Healthcare app from Frappe (official). The ownership of maintenance is currently shifted to earthians but I guess its safe to say Marley is the goto app for use in a healthcare setup.

Hope this clarifies.

@sureshkhichi - if Marley health is dependent on ERPNext and not just a standalone Frappe app then maybe the github site should not link frappe bench (GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps) rather frappe ERPNext (GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP))