Failing to install hrms on ubuntu22 throws error

Good Day

Failing to install hrms and i am getting error below

ubuntu22-lab@ubuntu22lab-virtual-machine:~/frappe-bench$ bench get-app hrms
A directory for the application ‘hrms’ already exists. Do you want to continue and overwrite it? [y/N]: y
Getting hrms
$ git clone hrms --branch develop --depth 1 --origin upstream
fatal: repository ‘hrms’ does not exist
ERROR:
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
sys.exit(cli())
File “/usr/local/lib/python3.10/dist-packages/bench/cli.py”, line 121, in cli
raise e
File “/usr/local/lib/python3.10/dist-packages/bench/cli.py”, line 111, in cli
bench_command()
File “/usr/lib/python3/dist-packages/click/core.py”, line 1128, in call
return self.main(*args, **kwargs)
File “/usr/lib/python3/dist-packages/click/core.py”, line 1053, in main
rv = self.invoke(ctx)
File “/usr/lib/python3/dist-packages/click/core.py”, line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python3/dist-packages/click/core.py”, line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python3/dist-packages/click/core.py”, line 754, in invoke
return __callback(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/commands/make.py”, line 156, in get_app
get_app(
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 413, in get_app
app.get()
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 110, in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/app.py”, line 184, in get
self.bench.run(
File “/usr/local/lib/python3.10/dist-packages/bench/bench.py”, line 47, in run
return exec_cmd(cmd, cwd=cwd or self.cwd)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/init.py”, line 153, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError

Hello @gurungo_lovemore,

If you want to install hrms in version 14 then please apply the below command:

bench get-app --branch version-14 hrms

Thank You!

it worked, thank you so much

Hello @NCP
I have been trying to install hrms with ERPNext v14. I got stuck with an error below:
fatal: repository ‘hrms’ does not exist

Hi @Raj_Kishore,

First remove the HRMS app on site and also from app.

Then reinstall the HRMS app and install on site.

Then migrate the site and check it.

Thank You!

Hi @NCP,
I did the installation successfully. Thank you.

Even after uninstalling app from site and removing app from bench, then add app back to bench and install app to site and run migrate, I still get the Internal Server Error as soon as hrms is installed. If I uninstalled the app, the Internal Server Error disappears.

I am following the production docker install method documented here:

Anyone has advice what could be wrong?

Adding on in case this might give some clues. When install-app hrms to a site, I get the following:

Patching Existing Data...
rename_field: kra_title not found in table for: Appraisal Template
rename_field: kra_template not found in table for: Appraisal
Thank you for installing Frappe HR!

I think I figured that Supervisor could not be restarted because it did not exist. I finally tried to restart the whole server and containers and it is working now this morning.

When I began using docker yamls with frappe (and reading docker documentation), I didn’t expect startup being somewhat slowish, like about 5 minutes or so (depending on machine, ram, etc., of course).

When having learned that I can follow (aka inspect) the startup process, I dicovered that there are some configuration steps, which take their time, before the whole service zoo of an instance gets what each “animal” (animated aka moved by by software and electricity) in it wants in terms of its needs (configuration items, surrounding team animals). So one can observe startup failures of auto-restarting ones for some minutes, and once the prerequisites and team mates are there, suddenly everything is up.

Also, Frappe is agile, so sometimes you might just get lucky retrying it some time later.
The corollary to this lazifying but not necessarily reliably fortunate eventuality is that:
Bug-reports and help-requests also can be instrumental to have a problem solved.

Especially now that they presented the functionalities of their new help-desk module (FOSS) and how it’s used, at frappeverse 2023.

Im working in version 13 can’t i use hrms in version 13 itself

bench get-app --resolve-deps hrms
Following apps will be installed
1. frappe/erpnext (required by hrms)
2. hrms 
fatal: ref refs/remotes/upstream/HEAD is not a symbolic ref
Incompatible version of erpnext is already installed
ERROR: sync() got an unexpected keyword argument 'required_list'
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.8/dist-packages/bench/cli.py", line 121, in cli
    raise e
  File "/usr/local/lib/python3.8/dist-packages/bench/cli.py", line 111, in cli
    bench_command()
  File "/home/prerana/.local/lib/python3.8/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/prerana/.local/lib/python3.8/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/prerana/.local/lib/python3.8/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/prerana/.local/lib/python3.8/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/prerana/.local/lib/python3.8/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/bench/commands/make.py", line 156, in get_app
    get_app(
  File "/usr/local/lib/python3.8/dist-packages/bench/app.py", line 388, in get_app
    install_resolved_deps(
  File "/usr/local/lib/python3.8/dist-packages/bench/app.py", line 477, in install_resolved_deps
    app.update_app_state()
  File "/usr/local/lib/python3.8/dist-packages/bench/app.py", line 261, in update_app_state
    bench.apps.sync(app_dir=self.app_name, app_name=self.name,
TypeError: sync() got an unexpected keyword argument 'required_list'

If i try just

bench get-app hrms https://github.com/frappe/hrms.git
A directory for the application 'hrms' already exists. Do you want to continue and overwrite it? [y/N]: y
Getting hrms
$ git clone https://github.com/frappe/hrms.git  --depth 1 --origin upstream
Cloning into 'hrms'...
remote: Enumerating objects: 1327, done.
remote: Counting objects: 100% (1327/1327), done.
remote: Compressing objects: 100% (1087/1087), done.
remote: Total 1327 (delta 327), reused 769 (delta 176), pack-reused 0
Receiving objects: 100% (1327/1327), 2.84 MiB | 9.61 MiB/s, done.
Resolving deltas: 100% (327/327), done.
ERROR: [Errno 2] No such file or directory: '/home/prerana/Desktop/hrms/apps/hrms/setup.py'
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.8/dist-packages/bench/cli.py", line 121, in cli
    raise e
  File "/usr/local/lib/python3.8/dist-packages/bench/cli.py", line 111, in cli
    bench_command()
  File "/home/prerana/.local/lib/python3.8/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/prerana/.local/lib/python3.8/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/prerana/.local/lib/python3.8/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/prerana/.local/lib/python3.8/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/prerana/.local/lib/python3.8/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/bench/commands/make.py", line 156, in get_app
    get_app(
  File "/usr/local/lib/python3.8/dist-packages/bench/app.py", line 420, in get_app
    app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
  File "/usr/local/lib/python3.8/dist-packages/bench/utils/render.py", line 110, in wrapper_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/bench/app.py", line 217, in install
    app_name = get_app_name(self.bench.name, self.app_name)
  File "/usr/local/lib/python3.8/dist-packages/bench/utils/app.py", line 224, in get_app_name
    with open(app_path, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/prerana/Desktop/hrms/apps/hrms/setup.py'

I am getting this error, please anyone help me

hrms is supported only v14 and v14+

Thank you for the information

i got below error while installing hrms version 15 i have already install frappe and erpnext

  1. frappe/erpnext (required by hrms)
  2. hrms
    fatal: ref refs/remotes/upstream/HEAD is not a symbolic ref
    Incompatible version of erpnext is already installed
    ERROR: [Errno 2] No such file or directory: ‘./apps/frappe/erpnext/erpnext/init.py’
    Traceback (most recent call last):
    File “/home/frappe/.local/bin/bench”, line 8, in
    sys.exit(cli())
    ^^^^^
    File “/home/frappe/.bench/bench/cli.py”, line 132, in cli
    bench_command()
    File “/home/frappe/.local/lib/python3.11/site-packages/click/core.py”, line 1157, in call
    return self.main(*args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/home/frappe/.local/lib/python3.11/site-packages/click/core.py”, line 1078, in main
    rv = self.invoke(ctx)
    ^^^^^^^^^^^^^^^^
    File “/home/frappe/.local/lib/python3.11/site-packages/click/core.py”, line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/home/frappe/.local/lib/python3.11/site-packages/click/core.py”, line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/home/frappe/.local/lib/python3.11/site-packages/click/core.py”, line 783, in invoke
    return __callback(*args, **kwargs)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/home/frappe/.bench/bench/commands/make.py”, line 181, in get_app
    get_app(
    File “/home/frappe/.bench/bench/app.py”, line 731, in get_app
    install_resolved_deps(
    File “/home/frappe/.bench/bench/app.py”, line 836, in install_resolved_deps
    app.update_app_state()
    File “/home/frappe/.bench/bench/app.py”, line 294, in update_app_state
    bench.apps.sync(
    File “/home/frappe/.bench/bench/bench.py”, line 271, in sync
    self.update_apps_states(
    File “/home/frappe/.bench/bench/bench.py”, line 224, in update_apps_states
    version = get_current_version(app_name, self.bench.name)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File “/home/frappe/.bench/bench/utils/app.py”, line 297, in get_current_version
    with open(init_path) as f:
    ^^^^^^^^^^^^^^^
    FileNotFoundError: [Errno 2] No such file or directory: ‘./apps/frappe/erpnext/erpnext/init.py’

@NCP can u help me with this error mentioned above

If frappe and erpnext version 15 then hrms must be in version 15. if not work then uninstall it and again install. Then after build the app and migrate the site.

Thanks @NCP !!.