Custom app installation throwingerror

Hi Team,

I am using frappe developer solution using doc →

issue reproducible steps →

setting up bench
creating site
installing erpnext and other app
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’]

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

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:

Check if apps.txt has your custom app name in it… else add it there… it happens to me, sometimes apps.txt is not updated on installing custom app

app name is there : (nextcore)

frappe@57bee5534b4c:/workspace/frappe-bench/sites$ cat apps.txt
frappe
payments
test_app
crm
hrms
erpnext
nextcore

but its not showing in table : -

select app_name from tabInstalled Application ;
±---------+
| app_name |
±---------+
| frappe |
| helpdesk |
| erpnext |
| hrms |
| payments |
| crm |
±---------+
6 rows in set (0.000 sec)

getting below error on browser →

You can use my script to properly spin up a development container in minutes

@Yamen_Zakhour

Thanks for your help !!

But we already done so much for our current setup, Still wants to try little more before give up on it :slight_smile:

any suggestions what could be wrong in our case ?

I have no idea, I use the same development setup for all my clients and projects and have never faced that issue

can we use it on mac /window both ?

All you need is docker with vscode docker extension