Bench remove-app onedock

administrator@ERPTest2:~/frappe-bench/apps$ bench remove-app onedock
Traceback (most recent call last):
File “/usr/lib/python3.6/runpy.py”, line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File “/usr/lib/python3.6/runpy.py”, line 109, in get_module_details
import(pkg_name)
File “/home/administrator/frappe-bench/apps/frappe/frappe/init.py”, line 1620, in
def log_error(message=None, title=
(“Error”)):
File “/home/administrator/frappe-bench/apps/frappe/frappe/init.py”, line 63, in _
from frappe.translate import get_full_dict
File “/home/administrator/frappe-bench/apps/frappe/frappe/translate.py”, line 18, in
from frappe.model.utils import render_include, InvalidIncludePath
File “/home/administrator/frappe-bench/apps/frappe/frappe/model/utils/init.py”, line 9, in
from frappe.build import html_to_js_template
File “/home/administrator/frappe-bench/apps/frappe/frappe/build.py”, line 18, in
import psutil
ModuleNotFoundError: No module named ‘psutil’

Traceback (most recent call last):
File “/usr/lib/python3.6/runpy.py”, line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File “/usr/lib/python3.6/runpy.py”, line 109, in get_module_details
import(pkg_name)
File “/home/administrator/frappe-bench/apps/frappe/frappe/init.py”, line 1620, in
def log_error(message=None, title=
(“Error”)):
File “/home/administrator/frappe-bench/apps/frappe/frappe/init.py”, line 63, in _
from frappe.translate import get_full_dict
File “/home/administrator/frappe-bench/apps/frappe/frappe/translate.py”, line 18, in
from frappe.model.utils import render_include, InvalidIncludePath
File “/home/administrator/frappe-bench/apps/frappe/frappe/model/utils/init.py”, line 9, in
from frappe.build import html_to_js_template
File “/home/administrator/frappe-bench/apps/frappe/frappe/build.py”, line 18, in
import psutil
ModuleNotFoundError: No module named ‘psutil’
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/administrator/.bench/bench/cli.py”, line 41, in cli
bench_command()
File “/usr/local/lib/python3.6/dist-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python3.6/dist-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python3.6/dist-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python3.6/dist-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/administrator/.bench/bench/commands/make.py”, line 76, in remove_app
remove_app(app_name)
File “/home/administrator/.bench/bench/app.py”, line 207, in remove_app
out = subprocess.check_output([“bench”, “–site”, site, “list-apps”], cwd=bench_path).decode(‘utf-8’)
File “/usr/lib/python3.6/subprocess.py”, line 356, in check_output
**kwargs).stdout
File “/usr/lib/python3.6/subprocess.py”, line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[‘bench’, ‘–site’, ‘onedock.com’, ‘list-apps’]’ returned non-zero exit status 1.

I NEED TO UNINSTALL THE APPS IN THE FRAPPE-BENCH
BUT THIS ERROR POP UP
CAN YOU PLEASE HELP ME TO SOLVE THE PROBLEM

bench --site yoursite console

env/bin/pip install psutil

After this installs successfully, try the remove-app command again.

New error appeared

Traceback (most recent call last):
File “/usr/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/administrator/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 101, in
main()
File “/home/administrator/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/administrator/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/home/administrator/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home/administrator/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/administrator/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/administrator/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/administrator/frappe-bench/env/lib/python3.6/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/administrator/frappe-bench/env/lib/python3.6/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/administrator/frappe-bench/apps/frappe/frappe/commands/init.py”, line 27, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/administrator/frappe-bench/apps/frappe/frappe/commands/site.py”, line 222, in list_apps
apps = frappe.get_single(“Installed Applications”).installed_applications
File “/home/administrator/frappe-bench/apps/frappe/frappe/init.py”, line 841, in get_single
return get_doc(doctype, doctype)
File “/home/administrator/frappe-bench/apps/frappe/frappe/init.py”, line 815, in get_doc
doc = frappe.model.document.get_doc(*args, **kwargs)
File “/home/administrator/frappe-bench/apps/frappe/frappe/model/document.py”, line 72, in get_doc
controller = get_controller(doctype)
File “/home/administrator/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 73, in get_controller
site_controllers[doctype] = _get_controller()
File “/home/administrator/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 37, in _get_controller
module_name, custom = frappe.db.get_value(“DocType”, doctype, (“module”, “custom”), cache=True)
File “/home/administrator/frappe-bench/apps/frappe/frappe/database/database.py”, line 406, in get_value
order_by, cache=cache, for_update=for_update)
File “/home/administrator/frappe-bench/apps/frappe/frappe/database/database.py”, line 450, in get_values
out = self._get_values_from_table(fields, filters, doctype, as_dict, debug, order_by, update, for_update=for_update)
File “/home/administrator/frappe-bench/apps/frappe/frappe/database/database.py”, line 603, in _get_values_from_table
values, as_dict=as_dict, debug=debug, update=update)
File “/home/administrator/frappe-bench/apps/frappe/frappe/database/database.py”, line 121, in sql
self.connect()
File “/home/administrator/frappe-bench/apps/frappe/frappe/database/database.py”, line 74, in connect
self._conn = self.get_connection()
File “/home/administrator/frappe-bench/apps/frappe/frappe/database/mariadb/database.py”, line 90, in get_connection
local_infile = frappe.conf.local_infile)
File “/home/administrator/frappe-bench/env/lib/python3.6/site-packages/pymysql/init.py”, line 94, in Connect
return Connection(*args, **kwargs)
File “/home/administrator/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py”, line 325, in init
self.connect()
File “/home/administrator/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py”, line 599, in connect
self._request_authentication()
File “/home/administrator/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py”, line 861, in _request_authentication
auth_packet = self._read_packet()
File “/home/administrator/frappe-bench/env/lib/python3.6/site-packages/pymysql/connections.py”, line 684, in _read_packet
packet.check_error()
File “/home/administrator/frappe-bench/env/lib/python3.6/site-packages/pymysql/protocol.py”, line 220, in check_error
err.raise_mysql_exception(self._data)
File “/home/administrator/frappe-bench/env/lib/python3.6/site-packages/pymysql/err.py”, line 109, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (1045, “Access denied for user ‘_e2d14886110e7204’@‘localhost’ (using password: YES)”)
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/administrator/.bench/bench/cli.py”, line 41, in cli
bench_command()
File “/usr/local/lib/python3.6/dist-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python3.6/dist-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python3.6/dist-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python3.6/dist-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/administrator/.bench/bench/commands/make.py”, line 76, in remove_app
remove_app(app_name)
File “/home/administrator/.bench/bench/app.py”, line 207, in remove_app
out = subprocess.check_output([“bench”, “–site”, site, “list-apps”], cwd=bench_path).decode(‘utf-8’)
File “/usr/lib/python3.6/subprocess.py”, line 356, in check_output
**kwargs).stdout
File “/usr/lib/python3.6/subprocess.py”, line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[‘bench’, ‘–site’, ‘onedock.com’, ‘list-apps’]’ returned non-zero exit status 1.

Check if MySQL is running

This thread may help.