Can not install new app

Hi,

I am already installed erpnext.

When i try to install new app it shows error.I was trying to install agricultural puposes app using command

bench get-app farm https://github.com/fderyckel/Ifitwala

it shows error

ImportError: No module named farm
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==2.0.0’, ‘console_scripts’, ‘bench’)()
File “/home/access/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/access/bench-repo/bench/commands/make.py”, line 28, in get_app
get_app(name, git_url, branch=branch)
File “/home/access/bench-repo/bench/app.py”, line 59, in get_app
build_assets(bench=bench)
File “/home/access/bench-repo/bench/utils.py”, line 139, in build_assets
run_frappe_cmd(‘build’, bench=bench)
File “/home/access/bench-repo/bench/utils.py”, line 468, in run_frappe_cmd
raise CommandFailedError(args)
bench.utils.CommandFailedError: (‘build’,)

Hi @renjukumar

Try this

bench get-app farm_management https://github.com/fderyckel/Ifitwala

It is working.Please let me know what is the issue.should i follow anything for app name

I’ve visited your repo and get the app name from here

https://github.com/fderyckel/Ifitwala/blob/master/setup.py

Your app name is farm_management not farm and the correct command is

bench get-app APP_NAME GIT_LINK
so it will be
bench get-app farm_management https://github.com/fderyckel/Ifitwala

Thank you

1 Like