Installation Error:builtins.ModuleNotFoundError: No module named 'healthcare' on Docker

I have Installed Frappe and erpnext version 16 . After I install Healthcare through error. frappe@9742e1f8da47:~/frappe-bench$ bench --site site1.localhost install-app healthcare
Could not find app “healthcare”:
No module named ‘healthcare’
An error occurred while installing healthcare: No module named ‘healthcare’
Traceback with variables (most recent call last):
File “apps/frappe/frappe/commands/site.py”, line 522, in install_app
_install_app(app, verbose=context.verbose, force=force)
context = CliCtxObj(force=False, profile=False, sites=[‘site1.localhost’], verbose=False)
apps = (‘healthcare’)
force = False
_install_app = <function install_app at 0x71c1d5a073d0>
filelock = <function filelock at 0x71c1d6d0fc10>
exit_code = 0
site = ‘site1.localhost’
app = ‘healthcare’
err = No module named ‘healthcare’
File “apps/frappe/frappe/installer.py”, line 280, in install_app
app_hooks = frappe.get_hooks(app_name=name)
name = ‘healthcare’
verbose = False
set_as_patched = True
force = False
sync_jobs = <function sync_jobs at 0x71c1d4581bc0>
sync_for = <function sync_for at 0x71c1d4583110>
sync_customizations = <function sync_customizations at 0x71c1d6d8d900>
sync_fixtures = <function sync_fixtures at 0x71c1d45835e0>
File “apps/frappe/frappe/init.py”, line 979, in get_hooks
hooks = _request_cached_load_app_hooks(app_name)
hook = None
default = ‘_KEEP_DEFAULT_LIST’
app_name = ‘healthcare’
File “apps/frappe/frappe/utils/caching.py”, line 71, in wrapper
return_val = func(*args, **kwargs)
args = (‘healthcare’)
kwargs = {}
_cache = collections.defaultdict{<function _load_app_hooks at 0x71c1d7554eb0>: {}}
args_key = ********
func = <function _load_app_hooks at 0x71c1d7554eb0>
File “apps/frappe/frappe/init.py”, line 947, in _load_app_hooks
app_hooks = get_module(f"{app}.hooks")
app_name = ‘healthcare’
hooks = {}
apps = [‘healthcare’]
app = ‘healthcare’
types = <module ‘types’ from ‘/usr/local/lib/python3.14/types.py’>
File “apps/frappe/frappe/init.py”, line 814, in get_module
return importlib.import_module(modulename)
modulename = ‘healthcare.hooks’
File “/usr/local/lib/python3.14/importlib/init.py”, line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
name = ‘healthcare.hooks’
package = None
level = 0
File “”, line 1398, in _gcd_import
name = ‘healthcare.hooks’
package = None
level = 0
File “”, line 1371, in find_and_load
name = ‘healthcare.hooks’
import
= <function _gcd_import at 0x71c1d98ffe20>
module = Traceback (most recent call last):
…traceback_with_variables internal stacks…
File “apps/frappe/frappe/utils/init.py”, line 379, in dict_printer
if key in v:
^^^^^^^^
TypeError: argument of type ‘object’ is not a container or iterable

File “”, line 1314, in find_and_load_unlocked
name = ‘healthcare.hooks’
import
= <function _gcd_import at 0x71c1d98ffe20>
path = None
parent = ‘healthcare’
parent_spec = None
File “”, line 491, in _call_with_frames_removed
f = <function _gcd_import at 0x71c1d98ffe20>
args = (‘healthcare’)
kwds = {}
File “”, line 1398, in _gcd_import
name = ‘healthcare’
package = None
level = 0
File “”, line 1371, in find_and_load
name = ‘healthcare’
import
= <function _gcd_import at 0x71c1d98ffe20>
module = Traceback (most recent call last):
…traceback_with_variables internal stacks…
File “apps/frappe/frappe/utils/init.py”, line 379, in dict_printer
if key in v:
^^^^^^^^
TypeError: argument of type ‘object’ is not a container or iterable

File “”, line 1335, in find_and_load_unlocked
name = ‘healthcare’
import
= <function _gcd_import at 0x71c1d98ffe20>
path = None
parent = ‘’
parent_spec = None
spec = None
builtins.ModuleNotFoundError: No module named ‘healthcare’
frappe@9742e1f8da47:~/frappe-bench$ cd apps
frappe@9742e1f8da47:~/frappe-bench/apps$ rm -rf healthcare
frappe@9742e1f8da47:~/frappe-bench/apps$ cd ..
frappe@9742e1f8da47:~/frappe-bench$ git clone GitHub - earthians/marley: Open Source, Enterprise and Modern Health Information System
Cloning into ‘marley’…
remote: Enumerating objects: 22279, done.
remote: Counting objects: 100% (631/631), done.
remote: Compressing objects: 100% (296/296), done.
remote: Total 22279 (delta 446), reused 353 (delta 335), pack-reused 21648 (from 5)
Receiving objects: 100% (22279/22279), 13.22 MiB | 8.50 MiB/s, done.
Resolving deltas: 100% (15833/15833), done.
frappe@9742e1f8da47:~/frappe-bench$ bench --site site1.localhost install-app healthcare
Could not find app “healthcare”:
No module named ‘healthcare’
An error occurred while installing healthcare: No module named ‘healthcare’
Traceback with variables (most recent call last):
File “apps/frappe/frappe/commands/site.py”, line 522, in install_app
_install_app(app, verbose=context.verbose, force=force)
context = CliCtxObj(force=False, profile=False, sites=[‘site1.localhost’], verbose=False)
apps = (‘healthcare’)
force = False
_install_app = <function install_app at 0x7d16c65133d0>
filelock = <function filelock at 0x7d16c783bc10>
exit_code = 0
site = ‘site1.localhost’
app = ‘healthcare’
err = No module named ‘healthcare’
File “apps/frappe/frappe/installer.py”, line 280, in install_app
app_hooks = frappe.get_hooks(app_name=name)
name = ‘healthcare’
verbose = False
set_as_patched = True
force = False
sync_jobs = <function sync_jobs at 0x7d16c5091bc0>
sync_for = <function sync_for at 0x7d16c5093110>
sync_customizations = <function sync_customizations at 0x7d16c78b9900>
sync_fixtures = <function sync_fixtures at 0x7d16c50935e0>
File “apps/frappe/frappe/init.py”, line 979, in get_hooks
hooks = _request_cached_load_app_hooks(app_name)
hook = None
default = ‘_KEEP_DEFAULT_LIST’
app_name = ‘healthcare’
File “apps/frappe/frappe/utils/caching.py”, line 71, in wrapper
return_val = func(*args, **kwargs)
args = (‘healthcare’)
kwargs = {}
_cache = collections.defaultdict{<function _load_app_hooks at 0x7d16c7e84eb0>: {}}
args_key = ********
func = <function _load_app_hooks at 0x7d16c7e84eb0>
File “apps/frappe/frappe/init.py”, line 947, in _load_app_hooks
app_hooks = get_module(f"{app}.hooks")
app_name = ‘healthcare’
hooks = {}
apps = [‘healthcare’]
app = ‘healthcare’
types = <module ‘types’ from ‘/usr/local/lib/python3.14/types.py’>
File “apps/frappe/frappe/init.py”, line 814, in get_module
return importlib.import_module(modulename)
modulename = ‘healthcare.hooks’
File “/usr/local/lib/python3.14/importlib/init.py”, line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
name = ‘healthcare.hooks’
package = None
level = 0
File “”, line 1398, in _gcd_import
name = ‘healthcare.hooks’
package = None
level = 0
File “”, line 1371, in find_and_load
name = ‘healthcare.hooks’
import
= <function _gcd_import at 0x7d16ca413e20>
module = Traceback (most recent call last):
…traceback_with_variables internal stacks…
File “apps/frappe/frappe/utils/init.py”, line 379, in dict_printer
if key in v:
^^^^^^^^
TypeError: argument of type ‘object’ is not a container or iterable

File “”, line 1314, in find_and_load_unlocked
name = ‘healthcare.hooks’
import
= <function _gcd_import at 0x7d16ca413e20>
path = None
parent = ‘healthcare’
parent_spec = None
File “”, line 491, in _call_with_frames_removed
f = <function _gcd_import at 0x7d16ca413e20>
args = (‘healthcare’)
kwds = {}
File “”, line 1398, in _gcd_import
name = ‘healthcare’
package = None
level = 0
File “”, line 1371, in find_and_load
name = ‘healthcare’
import
= <function _gcd_import at 0x7d16ca413e20>
module = Traceback (most recent call last):
…traceback_with_variables internal stacks…
File “apps/frappe/frappe/utils/init.py”, line 379, in dict_printer
if key in v:
^^^^^^^^
TypeError: argument of type ‘object’ is not a container or iterable

File “”, line 1335, in find_and_load_unlocked
name = ‘healthcare’
import
= <function _gcd_import at 0x7d16ca413e20>
path = None
parent = ‘’
parent_spec = None
spec = None
builtins.ModuleNotFoundError: No module named ‘healthcare’

bench get-app healthcare

bench --site site1.localhost install-app healthcare

ok. Thanks. But I again through me error on my frappe desktop. How to solve the issuse and I have install erpnext and frappe using docker.

@subasri
so in docker you have to rebuild the image as its immutable and the volumes are non persistent

Try this instead: -

Ok . Thanks