On a freshly installed CRM I've ran these commands inside the bench container at (/home/frappe/frappe-bench)
1: bench get-app https://github.com/shridarpatil/frappe_whatsapp.git
frappe@870f4dd9b79f:~/frappe-bench$ bench get-app https://github.com/shridarpatil/frappe_whatsapp.git
Getting frappe_whatsapp
$ git clone https://github.com/shridarpatil/frappe_whatsapp.git --origin upstream
Cloning into 'frappe_whatsapp'...
remote: Enumerating objects: 2020, done.
remote: Counting objects: 100% (344/344), done.
remote: Compressing objects: 100% (103/103), done.
remote: Total 2020 (delta 286), reused 245 (delta 241), pack-reused 1676 (from 4)
Receiving objects: 100% (2020/2020), 402.21 KiB | 11.17 MiB/s, done.
Resolving deltas: 100% (1292/1292), done.
Ignoring dependencies of https://github.com/shridarpatil/frappe_whatsapp.git. To install dependencies use --resolve-deps
Installing frappe_whatsapp
$ uv pip install --quiet --upgrade -e /home/frappe/frappe-bench/apps/frappe_whatsapp --python /home/frappe/frappe-bench/env/bin/python
$ bench build --app frappe_whatsapp
✔ Application Assets Linked
yarn run v1.22.22
$ node esbuild --production --apps frappe_whatsapp --run-build-command
File Size
DONE Total Build Time: 318.912ms
Done in 1.70s.
Compiling translations for frappe_whatsapp
2: bench --site crm.*******.com install-app frappe_whatsapp
frappe@870f4dd9b79f:~/frappe-bench$ bench --site crm.*****.com install-app frappe_whatsapp
App frappe_whatsapp already installed (The first time I ran it was a sucess)
3: bench --site crm.*******.com migrate
Migrating crm.*******.com
Updating DocTypes for frappe : [========================================] 100%
Updating DocTypes for crm : [========================================] 100%
Updating DocTypes for frappe_whatsapp: [========================================] 100%
Updating Dashboard for frappe
Updating Dashboard for crm
Updating Dashboard for frappe_whatsapp
Executing `after_migrate` hooks...
Queued rebuilding of search index for crm.*******.com
4: bench restart
when looking at the logs I see this
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'frappe_whatsapp'
root@Helpdesk:~#
On a freshly installed CRM I've ran these commands inside the bench container at (/home/frappe/frappe-bench)
1: bench get-app https://github.com/shridarpatil/frappe_whatsapp.git
2: bench --site crm.*******.com install-app frappe_whatsapp
3: bench --site crm.*******.com migrate
4: bench restart
when looking at the logs I see this
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'frappe_whatsapp'
root@Helpdesk:~#