Unable to print any document

ERROR -

Traceback (most recent call last):
File “/home/administrator/erpnext/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/administrator/erpnext/apps/frappe/frappe/handler.py”, line 20, in handle
data = execute_cmd(cmd)
File “/home/administrator/erpnext/apps/frappe/frappe/handler.py”, line 55, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/administrator/erpnext/apps/frappe/frappe/init.py”, line 1007, in call
return fn(*args, **newargs)
File “/home/administrator/erpnext/apps/frappe/frappe/utils/print_format.py”, line 109, in print_by_server
except ModuleNotFoundError:
NameError: global name ‘ModuleNotFoundError’ is not defined

PLS HELP WITH APPROPRIATE SOLUTION

please share version details, steps. Please elaborate the query, so that guy on the other end has context.

version detail

administrator@Server:~/erpnext$ bench version
erpnext 11.x.x-develop
foundation 0.0.1
frappe 11.x.x-develop
administrator@Server:~/erpnext$ bench --vesion
Error: no such option: --vesion
administrator@Server:~/erpnext$ bench --version
4.1.0

error
Traceback (most recent call last):
File “/home/administrator/erpnext/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/administrator/erpnext/apps/frappe/frappe/handler.py”, line 20, in handle
data = execute_cmd(cmd)
File “/home/administrator/erpnext/apps/frappe/frappe/handler.py”, line 55, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/administrator/erpnext/apps/frappe/frappe/init.py”, line 1007, in call
return fn(*args, **newargs)
File “/home/administrator/erpnext/apps/frappe/frappe/utils/print_format.py”, line 109, in print_by_server
except ModuleNotFoundError:
NameError: global name ‘ModuleNotFoundError’ is not defined

check if you installed the apps correctly
please check by using
bench version

DO I need to update erpnext?