Custom app not available in installed app and getting app_title error

Hi Team,

I am using frappe developer solution using doc →

issue reproducible steps →

  1. setting up bench
  2. creating site
  3. installing erpnext and other app
  4. Installing custom app (app installation is going fine without any error)

=> However in migration and on browser I am getting below error :

upon troubleshooting I have below observations :
1. list-apps is not showing my custom app
2. from bench console get installed apps not returning my custom app which installed successfully.

In [16]: print(frappe.get_installed_apps())
[‘frappe’, ‘erpnext’, ‘crm’]

  1. on database "select * from tabInstalled Application ; showing only two entries frappe and erpnext

  2. in function add_to_installed_apps during app installation below lines don’t raise any exception for my custom app :

frappe.db.set_global(“installed_apps”, json.dumps(installed_apps))
frappe.db.commit()

#########################################################

frappe.get_single(“Installed Applications”).update_versions()
File “/workspace/frappe-bench/apps/frappe/frappe/core/doctype/installed_applications/installed_applications.py”, line 30, in update_versions
for app in frappe.utils.get_installed_apps_info():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/workspace/frappe-bench/apps/frappe/frappe/utils/init.py”, line 774, in get_installed_apps_info
for app, version_details in get_versions().items()
^^^^^^^^^^^^^^
File “/workspace/frappe-bench/apps/frappe/frappe/utils/typing_validations.py”, line 31, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “/workspace/frappe-bench/apps/frappe/frappe/utils/change_log.py”, line 116, in get_versions
“title”: app_hooks.get(“app_title”)[0],
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: ‘NoneType’ object is not subscriptable

#########################################################

Any help or guidance will be really helpfull thanks :slight_smile:

any suggestions please ?