Error Installing New custom App

Hi,
I have followed the tutorial on creating a new app, i called mine Learning_Management but kept pretty much everything else the same from the tutorial (it is called Library_Management).
After creating the app we have to install the app on our site, now the site works fine, i have already created some custom fields and DocTypes in the HR Module. Hoping some one can help here please :smile:

So I ran the command and get the following:
frappeuser@linux5:~/frappe-bench/apps$ bench --site site1.local install-app Learning_Management
Installing Learning_Management…
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 162, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/frappeuser/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
main()
File “/home/frappeuser/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/frappeuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 700, in call
return self.main(*args, **kwargs)
File “/home/frappeuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 680, in main
rv = self.invoke(ctx)
File “/home/frappeuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappeuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1027, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappeuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 873, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappeuser/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 508, in invoke
return callback(*args, **kwargs)
File “/home/frappeuser/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 16, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/frappeuser/frappe-bench/apps/frappe/frappe/commands.py”, line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/frappeuser/frappe-bench/apps/frappe/frappe/commands.py”, line 164, in install_app
_install_app(app, verbose=context.verbose)
File “/home/frappeuser/frappe-bench/apps/frappe/frappe/installer.py”, line 124, in install_app
add_to_installed_apps(name)
File “/home/frappeuser/frappe-bench/apps/frappe/frappe/installer.py”, line 143, in add_to_installed_apps
post_install(rebuild_website)
File “/home/frappeuser/frappe-bench/apps/frappe/frappe/installer.py”, line 187, in post_install
statics.sync().start()
File “/home/frappeuser/frappe-bench/apps/frappe/frappe/website/statics.py”, line 32, in start
self.sync_for_app(app)
File “/home/frappeuser/frappe-bench/apps/frappe/frappe/website/statics.py”, line 36, in sync_for_app
self.statics_path = frappe.get_app_path(app, “www”)
File “/home/frappeuser/frappe-bench/apps/frappe/frappe/init.py”, line 603, in get_app_path
return get_pymodule_path(app_name, *joins)
File “/home/frappeuser/frappe-bench/apps/frappe/frappe/init.py”, line 617, in get_pymodule_path
return os.path.join(os.path.dirname(get_module(scrub(modulename)).file), *joins)
File “/home/frappeuser/frappe-bench/apps/frappe/frappe/init.py”, line 580, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named learning_management
frappeuser@linux5:~/frappe-bench/apps

Thanks
Jamie

Might be Case related issue. Can you try everything in lower case (app name, module name etc)?

Another thing you should be in frappe-bench directory while running the commands.