Unable to install erpnextswiss app in frappe bench version 15

Getting error

frappe_env) saloni@saloni-HP-EliteBook-840-G6:~/Saloni/frappe_testing_bench/apps$  bench install-app erpnextswiss

Installing erpnextswiss...
Updating DocTypes for erpnextswiss  : [===                                     ] 8%An error occurred while installing erpnextswiss: Module import failed for EDI File, the DocType you're trying to open might be deleted.
Error: cannot import name 'create_new_folder' from 'frappe.core.doctype.file.file' (/home/saloni/Saloni/frappe_testing_bench/apps/frappe/frappe/core/doctype/file/file.py)
Traceback with variables (most recent call last):
  File "apps/frappe/frappe/commands/site.py", line 484, in install_app
    _install_app(app, verbose=context.verbose, force=force)
      context = {'sites': ['eponet_site'], 'force': False, 'verbose': False, 'profile': False}
      apps = ('erpnextswiss',)
      force = False
      _install_app = <function install_app at 0x7d2f20006700>
      filelock = <function filelock at 0x7d2f21b6ef20>
      exit_code = 0
      site = 'eponet_site'
      app = 'erpnextswiss'
      err = ImportError("Module import failed for EDI File, the DocType you're trying to open might be deleted.\nError: cannot import name 'create_new_folder' from 'frappe.core.doctype.file.file' (apps/frappe/frappe/core/doctype/file/file.py)")
  File "apps/frappe/frappe/installer.py", line 316, in install_app
    sync_for(name, force=force, reset_permissions=True)
      name = 'erpnextswiss'
      verbose = False
      set_as_patched = True
      force = False
      sync_jobs = <function sync_jobs at 0x7d2f2007dda0>
      sync_for = <function sync_for at 0x7d2f2007eb60>
      sync_customizations = <function sync_customizations at 0x7d2f21bb1b20>
      sync_fixtures = <function sync_fixtures at 0x7d2f2007ee80>
      app_hooks = {'after_install': ['erpnextswiss.setup.install.after_install'], 'app_color': ['#92d050'], 'app_description': ['ERPNext application for Switzerland-specific use cases'], 'app_email': ['info@libracore.com'], 'app_icon': ['fa fa-diamond'], 'app_include_js': ['/assets/erpnextswiss/js/swiss_common.js', '/assets/erpnextswiss/js/iban.js', '/assets/erpnextswiss/js/email.js', 'assets/js/erpnextswiss_templates.min.js'], 'app_license': ['AGPL'], 'app_name': ['erpnextswiss'], 'app_publisher': ['libracore (https://www.libracore.com)'], 'app_title': ['ERPNextSwiss'], 'app_version': ['1.31.2'], 'doc_events': {'Contact': {'on_update': ['erpnextswiss.erpnextswiss.nextcloud.contacts.send_contact_to_nextcloud'], 'on_trash': ['erpnextswiss.erpnextswiss.nextcloud.contacts.delete_contact_from_nextcloud']}}, 'doctype_js': {'Item': ['public/js/item.js'], 'Quotation': ['public/js/quotation.js'], 'Sales Order': ['public/js/sales_order.js'], 'Sales Invoice': ['public/js/sales_invoice.js'], 'Purchase Invoice': ['...
      installed_apps = ['frappe', 'erpnext', 'crm_eponet_app']
  File "apps/frappe/frappe/model/sync.py", line 111, in sync_for
    import_file_by_path(
      app_name = 'erpnextswiss'
      force = False
      reset_permissions = True
      files = ['apps/erpnextswiss/erpnextswiss/erpnextswiss/doctype/contract/contract.json', 'apps/erpnextswiss/erpnextswiss/erpnextswiss/doctype/salary_certificate/salary_certificate.json', 'apps/erpnextswiss/erpnextswiss/erpnextswiss/doctype/salary_component_link/salary_component_link.json', 'apps/erpnextswiss/erpnextswiss/erpnextswiss/doctype/abacus_export_file/abacus_export_file.json', 'apps/erpnextswiss/erpnextswiss/erpnextswiss/doctype/bankimport_template/bankimport_template.json', 'apps/erpnextswiss/erpnextswiss/erpnextswiss/doctype/edi_sales_report/edi_sales_report.json', 'apps/erpnextswiss/erpnextswiss/erpnextswiss/doctype/erpnextswiss_settings_payment_reminder_level_blocking_period/erpnextswiss_settings_paym...
      module_name = 'scripts'
      folder = 'apps/erpnextswiss/erpnextswiss/scripts'
      l = 110
      i = 9
      doc_path = 'apps/erpnextswiss/erpnextswiss/erpnextswiss/doctype/edi_file/edi_file.json'
  File "apps/frappe/frappe/modules/import_file.py", line 146, in import_file_by_path
    import_doc(
      path = 'apps/erpnextswiss/erpnextswiss/erpnextswiss/doctype/edi_file/edi_file.json'
      force = False
      data_import = False
      pre_process = None
      ignore_version = True
      reset_permissions = True
      docs = [{'autoname': 'naming_series:', 'creation': '2022-05-08 20:33:33.615799', 'doctype': 'DocType', 'editable_grid': 1, 'engine': 'InnoDB', 'fields': [{'fieldname': 'edi_connection', 'fieldtype': 'Link', 'label': 'EDI Connection', 'options': 'EDI Connection', 'read_only': 1, 'doctype': 'DocField'}, {'fetch_from': 'edi_connection.edi_type', 'fieldname': 'edi_type', 'fieldtype': 'Data', 'in_list_view': 1, 'label': 'EDI Type', 'read_only': 1, 'doctype': 'DocField'}, {'default': 'ME.######', 'fieldname': 'naming_series', 'fieldtype': 'Select', 'label': 'Naming Series', 'options': 'ME.######', 'doctype': 'DocField'}, {'fieldname': 'column_head', 'fieldtype': 'Column Break', 'doctype': 'DocField'}, {'fieldname': 'date', 'fieldtype': 'Datetime', 'in_list_view': 1, 'label': 'Date', 'doctype': 'DocField'}, {'fieldname': 'title', 'fieldtype': 'Data', 'label': 'Title', 'doctype': 'DocField'}, {'fieldname': 'amended_from', 'fieldtype': 'Link', 'label': 'Amended From', 'no_copy': 1, 'options': 'EDI Fil...
      calculated_hash = '8539097b26cd75f111468d02c7e62b1d'
      doc = {'autoname': 'naming_series:', 'creation': '2022-05-08 20:33:33.615799', 'doctype': 'DocType', 'editable_grid': 1, 'engine': 'InnoDB', 'fields': [{'fieldname': 'edi_connection', 'fieldtype': 'Link', 'label': 'EDI Connection', 'options': 'EDI Connection', 'read_only': 1, 'doctype': 'DocField'}, {'fetch_from': 'edi_connection.edi_type', 'fieldname': 'edi_type', 'fieldtype': 'Data', 'in_list_view': 1, 'label': 'EDI Type', 'read_only': 1, 'doctype': 'DocField'}, {'default': 'ME.######', 'fieldname': 'naming_series', 'fieldtype': 'Select', 'label': 'Naming Series', 'options': 'ME.######', 'doctype': 'DocField'}, {'fieldname': 'column_head', 'fieldtype': 'Column Break', 'doctype': 'DocField'}, {'fieldname': 'date', 'fieldtype': 'Datetime', 'in_list_view': 1, 'label': 'Date', 'doctype': 'DocField'}, {'fieldname': 'title', 'fieldtype': 'Data', 'label': 'Title', 'doctype': 'DocField'}, {'fieldname': 'amended_from', 'fieldtype': 'Link', 'label': 'Amended From', 'no_copy': 1, 'options': 'EDI File...
      db_modified_timestamp = None
      is_db_timestamp_latest = None
  File "apps/frappe/frappe/modules/import_file.py", line 239, in import_doc
    doc.insert()
      docdict = {'autoname': 'naming_series:', 'creation': '2022-05-08 20:33:33.615799', 'doctype': 'DocType', 'editable_grid': 1, 'engine': 'InnoDB', 'fields': [{'fieldname': 'edi_connection', 'fieldtype': 'Link', 'label': 'EDI Connection', 'options': 'EDI Connection', 'read_only': 1, 'doctype': 'DocField'}, {'fetch_from': 'edi_connection.edi_type', 'fieldname': 'edi_type', 'fieldtype': 'Data', 'in_list_view': 1, 'label': 'EDI Type', 'read_only': 1, 'doctype': 'DocField'}, {'default': 'ME.######', 'fieldname': 'naming_series', 'fieldtype': 'Select', 'label': 'Naming Series', 'options': 'ME.######', 'doctype': 'DocField'}, {'fieldname': 'column_head', 'fieldtype': 'Column Break', 'doctype': 'DocField'}, {'fieldname': 'date', 'fieldtype': 'Datetime', 'in_list_view': 1, 'label': 'Date', 'doctype': 'DocField'}, {'fieldname': 'title', 'fieldtype': 'Data', 'label': 'Title', 'doctype': 'DocField'}, {'fieldname': 'amended_from', 'fieldtype': 'Link', 'label': 'Amended From', 'no_copy': 1, 'options': 'EDI File...
      data_import = False
      pre_process = None
      ignore_version = True
      reset_permissions = True
      path = 'apps/erpnextswiss/erpnextswiss/erpnextswiss/doctype/edi_file/edi_file.json'
      controller = <class 'frappe.core.doctype.doctype.doctype.DocType'>
      doc = <DocType: EDI File>
  File "apps/frappe/frappe/model/document.py", line 334, in insert
    self.run_post_save_methods()
      self = <DocType: EDI File>
      ignore_permissions = None
      ignore_links = None
      ignore_if_duplicate = False
      ignore_mandatory = None
      set_name = None
      set_child_names = True
      d = <DocPerm: gv2k7lij77 parent=EDI File>
  File "apps/frappe/frappe/model/document.py", line 1173, in run_post_save_methods
    self.run_method("on_update")
      self = <DocType: EDI File>
  File "apps/frappe/frappe/model/document.py", line 1007, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
      self = <DocType: EDI File>
      method = 'on_update'
      args = ()
      kwargs = {}
      fn = <function Document.run_method.<locals>.fn at 0x7d2f088f2660>
  File "apps/frappe/frappe/model/document.py", line 1367, in composer
    return composed(self, method, *args, **kwargs)
      self = <DocType: EDI File>
      args = ()
      kwargs = {}
      hooks = [<function build_domain_restriced_doctype_cache at 0x7d2f21bc9da0>, <function clear_doctype_notifications at 0x7d2f08a36c00>, <function process_workflow_actions at 0x7d2f08d1b7e0>, <function attach_files_to_document at 0x7d2f22368ae0>, <function apply at 0x7d2f08d0ee80>, <function update_due_date at 0x7d2f08d0f100>, <function apply_permissions_for_non_standard_user_type at 0x7d2f08a504a0>]
      method = 'on_update'
      doc_events = {'*': {'on_update': ['frappe.desk.notifications.clear_doctype_notifications', 'frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions', 'frappe.core.doctype.file.utils.attach_files_to_document', 'frappe.automation.doctype.assignment_rule.assignment_rule.apply', 'frappe.automation.doctype.assignment_rule.assignment_rule.update_due_date', 'frappe.core.doctype.user_type.user_type.apply_permissions_for_non_standard_user_type'], 'after_rename': ['frappe.desk.notifications.clear_doctype_notifications'], 'on_cancel': ['frappe.desk.notifications.clear_doctype_notifications', 'frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions', 'frappe.automation.doctype.assignment_rule.assignment_rule.apply'], 'on_trash': ['frappe.desk.notifications.clear_doctype_notifications', 'frappe.workflow.doctype.workflow_action.workflow_action.process_workflow_actions'], 'on_update_after_submit': ['frappe.workflow.doctype.workflow_action.workflow_action.process_w...
      handler = 'frappe.core.doctype.user_type.user_type.apply_permissions_for_non_standard_user_type'
      composed = <function Document.hook.<locals>.compose.<locals>.runner at 0x7d2f088f28e0>
      compose = <function Document.hook.<locals>.compose at 0x7d2f088f27a0>
      f = <function Document.run_method.<locals>.fn at 0x7d2f088f2660>
  File "apps/frappe/frappe/model/document.py", line 1349, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
      self = <DocType: EDI File>
      method = 'on_update'
      args = ()
      kwargs = {}
      add_to_return_value = <function Document.hook.<locals>.add_to_return_value at 0x7d2f088f2840>
      fn = <function Document.run_method.<locals>.fn at 0x7d2f088f2660>
      hooks = (<function build_domain_restriced_doctype_cache at 0x7d2f21bc9da0>, <function clear_doctype_notifications at 0x7d2f08a36c00>, <function process_workflow_actions at 0x7d2f08d1b7e0>, <function attach_files_to_document at 0x7d2f22368ae0>, <function apply at 0x7d2f08d0ee80>, <function update_due_date at 0x7d2f08d0f100>, <function apply_permissions_for_non_standard_user_type at 0x7d2f08a504a0>)
  File "apps/frappe/frappe/model/document.py", line 1004, in fn
    return method_object(*args, **kwargs)
      self = <DocType: EDI File>
      args = ()
      kwargs = {}
      method_object = <bound method DocType.on_update of <DocType: EDI File>>
      method = 'on_update'
  File "apps/frappe/frappe/core/doctype/doctype/doctype.py", line 534, in on_update
    self.run_module_method("on_doctype_update")
      self = <DocType: EDI File>
      allow_doctype_export = False
  File "apps/frappe/frappe/core/doctype/doctype/doctype.py", line 632, in run_module_method
    module = load_doctype_module(self.name, self.module)
      self = <DocType: EDI File>
      method = 'on_doctype_update'
      load_doctype_module = <function load_doctype_module at 0x7d2f21bb2160>
  File "apps/frappe/frappe/modules/utils.py", line 258, in load_doctype_module
    raise ImportError(msg) from e
      doctype = 'EDI File'
      module = 'ERPNextSwiss'
      prefix = ''
      suffix = ''
      app = 'erpnextswiss'
      key = ********
      module_name = 'erpnextswiss.erpnextswiss.doctype.edi_file.edi_file'
      msg = "Module import failed for EDI File, the DocType you're trying to open might be deleted.\nError: cannot import name 'create_new_folder' from 'frappe.core.doctype.file.file' (apps/frappe/frappe/core/doctype/file/file.py)"
builtins.ImportError: Module import failed for EDI File, the DocType you're trying to open might be deleted.
Error: cannot import name 'create_new_folder' from 'frappe.core.doctype.file.file' (apps/frappe/frappe/core/doctype/file/file.py)
(frappe_env) saloni@saloni-HP-EliteBook-840-G6:~/Saloni/frappe_testing_bench/apps$