India_compliance not getting installed

I’m using ERPnext 15 and bench 15 so downloaded 15 version of india compliance.

bench get-app --branch version-15 GitHub - resilient-tech/india-compliance: Simple, yet powerful compliance solutions for Indian businesses

Then tried to isntall.

frappe@ip-182-81-4850:~/frappe-bench$ bench --site gigertech.in install-app india_compliance
App erpnext already installed

Installing india_compliance…
Incompatible ERPNext Version:
ERPNext version 15.16.1 not compatible with India Compliance 15.7.4
Please upgrade {app_name} to version {required_version} or above to use the current version of India Compliance.

How can i get compatible version of indain coimplaince . . V15 ?

How can i fix it?

For now, If you want to install the latest india_compliance (v15.7.4) then frappe must be in the 15.3.0 and erpnext must be in the 15.19.3. so I think, you should update the erpnext.

VERSIONS_TO_COMPARE = [
    {
        "app_name": "Frappe",
        "current_version": version.parse(frappe.__version__),
        "required_versions": {"version-14": "14.57.0", "version-15": "15.3.0"},
    },
    {
        "app_name": "ERPNext",
        "current_version": version.parse(erpnext.__version__),
        "required_versions": {"version-14": "14.66.5", "version-15": "15.19.3"},
    },
]

Please check it.

@NCP that would break other apps right? This is my current installed apps.

frappe 15.17.0 version-15
erpnext 15.16.1 version-15
hrms 15.12.0 version-15
payments 0.0.1 develop

frappe@ip-172-31-42-50:~/frappe-bench$ bench --version
5.22.3

I suspect it would break my hrms and other apps installed.

What to do? tell me the exact commands please

Just run bench update after taking backup?

Yes !

Will it affect the other installed apps you think?

when you run the bench update, logically, if you update, all the apps are updated.

@NCP No joy. . I have updated bench and apps.

frappe 15.26.0 version-15
erpnext 15.23.0 version-15
hrms 15.20.3 version-15
payments 0.0.1 develop

downloaded app and installed it.

bench --site grtguru.in install-app india_compliance

But it is failing with errors.

App erpnext already installed

Installing india_compliance…
Installation for India Compliance failed due to an error. Please try re-installing the app or report the issue on Sign in to GitHub · GitHub if not resolved.
An error occurred while installing india_compliance: Could not find DocType: Bill of Entry
Traceback with variables (most recent call last):
File “apps/frappe/frappe/commands/site.py”, line 445, in install_app
_install_app(app, verbose=context.verbose, force=force)
context = {‘sites’: [‘myoffice.xpayback.in’], ‘force’: False, ‘verbose’: False, ‘profile’: False}
apps = (‘india_compliance’,)
force = False
_install_app = <function install_app at 0x7efdaf55ae60>
filelock = <function filelock at 0x7efdaf55ab00>
exit_code = 0
site = ‘myoffice.xpayback.in’
app = ‘india_compliance’
err = LinkValidationError(‘Could not find DocType: Bill of Entry’)
File “apps/frappe/frappe/installer.py”, line 311, in install_app
frappe.get_attr(after_install)()
name = ‘india_compliance’
verbose = False
set_as_patched = True
force = False
sync_jobs = <function sync_jobs at 0x7efdae12d990>
sync_for = <function sync_for at 0x7efdae12e440>
sync_customizations = <function sync_customizations at 0x7efdaf509900>
sync_fixtures = <function sync_fixtures at 0x7efdae12e680>
app_hooks = {‘accounting_dimension_doctypes’: [‘Bill of Entry’, ‘Bill of Entry Item’], ‘after_app_install’: [‘india_compliance.install.after_app_install’], ‘after_install’: [‘india_compliance.install.after_install’], ‘after_migrate’: [‘india_compliance.audit_trail.setup.after_migrate’], ‘app_color’: [‘grey’], ‘app_description’: [‘ERPNext app to simplify compliance with Indian Rules and Regulations’], ‘app_email’: [‘hello@indiacompliance.app’], ‘app_icon’: [‘octicon octicon-file-directory’], ‘app_include_js’: [‘india_compliance.bundle.js’], ‘app_license’: [‘GNU General Public License (v3)’], ‘app_name’: [‘india_compliance’], ‘app_publisher’: [‘Resilient Tech’], ‘app_title’: [‘India Compliance’], ‘audit_trail_doctypes’: [‘Accounts Settings’, ‘Dunning’, ‘Invoice Discounting’, ‘Journal Entry’, ‘Payment Entry’, ‘Period Closing Voucher’, ‘Process Deferred Accounting’, ‘Purchase Invoice’, ‘Sales Invoice’, ‘Asset’, ‘Asset Capitalization’, ‘Asset Repair’, ‘Delivery Note’, ‘Landed Cost Voucher’, 'Purchase R…
installed_apps = [‘frappe’, ‘erpnext’, ‘hrms’, ‘payments’]
app = ‘frappe/erpnext’
required_app = ‘erpnext’
before_install = ‘india_compliance.patches.check_version_compatibility.execute’
out = None
after_install = ‘india_compliance.install.after_install’
File “apps/india_compliance/india_compliance/install.py”, line 73, in after_install
raise e
File “apps/india_compliance/india_compliance/install.py”, line 52, in after_install
setup_audit_trail()
File “apps/india_compliance/india_compliance/audit_trail/setup.py”, line 15, in setup_fixtures
create_property_setters_for_versioning()
File “apps/india_compliance/india_compliance/audit_trail/setup.py”, line 35, in create_property_setters_for_versioning
property_setter.insert()
doctype = ‘Bill of Entry’
property_setter_data = {‘doctype_or_field’: ‘DocType’, ‘doc_type’: ‘Bill of Entry’, ‘property’: ‘track_changes’, ‘value’: ‘1’, ‘property_type’: ‘Check’, ‘is_system_generated’: 1}
property_setter = <PropertySetter: unsaved>
File “apps/frappe/frappe/model/document.py”, line 283, in insert
self._validate_links()
self = <PropertySetter: unsaved>
ignore_permissions = None
ignore_links = None
ignore_if_duplicate = False
ignore_mandatory = None
set_name = None
set_child_names = True
File “apps/frappe/frappe/model/document.py”, line 930, in validate_links
frappe.throw(
(“Could not find {0}”).format(msg), frappe.LinkValidationError)
self = <PropertySetter: unsaved>
invalid_links = [(‘doc_type’, ‘Bill of Entry’, ‘DocType: Bill of Entry’)]
cancelled_links =
msg = ‘DocType: Bill of Entry’
File “apps/frappe/frappe/init.py”, line 645, in throw
msgprint(
msg = ‘Could not find DocType: Bill of Entry’
exc = <class ‘frappe.exceptions.LinkValidationError’>
title = None
is_minimizable = False
wide = False
as_list = False
primary_action = None
File “apps/frappe/frappe/init.py”, line 610, in msgprint
_raise_exception()
title = None
as_table = False
as_list = False
indicator = ‘red’
alert = False
primary_action = None
is_minimizable = False
wide = False
realtime = False
sys = <module ‘sys’ (built-in)>
_raise_exception = <function msgprint.._raise_exception at 0x7efdab7c2f80>
inspect = <module ‘inspect’ from ‘/usr/lib/python3.10/inspect.py’>
msg = ‘Could not find DocType: Bill of Entry’

Is this a hug i need to report or how can i fix it?

It broke ERPnext system fully by the looks of it.

@NCP it worked. Thanks a bunch man.

However, listing the apps on backend. it does not show up.

Installing india_compliance…
Updating DocTypes for india_compliance: [========================================] 100%
Setting up Income Tax…
Setting up GST…
Patching Existing Data…
Thank you for installing India Compliance!
Updating Dashboard for india_compliance
frappe@ip-172-31-42-50:~/frappe-bench$
frappe@ip-172-31-42-50:~/frappe-bench$
frappe@ip-172-31-42-50:~/frappe-bench$
frappe@ip-172-31-42-50:~/frappe-bench$ bench --site grtgurun.in list-apps

frappe 15.26.0 version-15
erpnext 15.23.0 version-15
hrms 15.20.3 version-15
payments 0.0.1 develop

Why is that?

migrate the site and build app (bench build --force).

Then check it.

Done in 39.52s.
Compiling translations for frappe
Compiling translations for india_compliance
Compiling translations for payments
Compiling translations for hrms
Compiling translations for erpnext
frappe@ip-172-31-42-50:~/frappe-bench$
frappe@ip-172-31-42-50:~/frappe-bench$
frappe@ip-172-31-42-50:~/frappe-bench$ bench --site grtguru.in list-apps

frappe 15.26.0 version-15
erpnext 15.23.0 version-15
hrms 15.20.3 version-15
payments 0.0.1 develop

Still not showing up. But it works on frond end btw. What would be that?

I only did bench build --force.

Anything else need to do? please give me the exact command to migrate and build

@NCP

bench --site your-sitename.com migrate
bench build --force

Perfect !!! You rock always !! Thank you very much @NCP