Trying to install India-Compliance is failing in ERPNext 14

I download virtual box image of ERPNext 14.x from Bitnami and installed it. This VM is powered by Debian 11.

The VM is up and running but when I try to getIndia Compliance from Github using the command

bench get-app https://github.com/resilient-tech/india-compliance.git

It is failing with message CommandFailedError.

How to solve this?

Regards,

Check this

Command changes to

bench get-app --branch version-14 https://github.com/resilient-tech/india-compliance.git
2 Likes

what about ERPNext 15 how to install this India-compliance app

Hi @Futureaiit,

If you want to install the India compliance for version 15, please apply it.

bench get-app --branch version-15 https://github.com/resilient-tech/india-compliance.git

Thank You!

I installed using these commands on erpnext v15.
[githublink] is the github link (for some reason it wont let me post links in this forum so i replaced all links in this error with “[githublink]”
bench get-app --branch version-15 --resolve-deps [githublink]
bench --site [site name] install-app india_compliance

i got the following error:
Could not find DocType: Bill of Entry

erp@mmcl:~/frappe-bench$ bench get-app --branch version-15 --resolve-deps [githublink]
Following apps will be installed

  1. [githublink]
    Getting india-compliance
    $ git clone GitHub - resilient-tech/india-compliance: Simple, yet powerful compliance solutions for Indian businesses --branch version-15 --depth 1 --origin upstream
    Cloning into ‘india-compliance’…
    remote: Enumerating objects: 463, done.
    remote: Counting objects: 100% (463/463), done.
    remote: Compressing objects: 100% (427/427), done.
    remote: Total 463 (delta 42), reused 240 (delta 26), pack-reused 0
    Receiving objects: 100% (463/463), 970.22 KiB | 5.45 MiB/s, done.
    Resolving deltas: 100% (42/42), done.
    Installing india_compliance
    $ /home/erp/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /home/erp/frappe-bench/apps/india_compliance
    $ bench build --app india_compliance
    :heavy_check_mark: Application Assets Linked

yarn run v1.22.22
$ node esbuild --production --apps india_compliance --run-build-command
File Size

india_compliance/dist/js/
├─ india_compliance.bundle.IFJ5RQFL.js 22.80 Kb
├─ india_compliance_account.bundle.MLELNMXP.js 140.01 Kb
├─ india_compliance_account.bundle.PSWQKOQV.css 7.27 Kb
└─ purchase_reconciliation_tool.bundle.WAZMBN4Q.js 5.41 Kb

india_compliance/dist/css/
└─ india_compliance_account.bundle.7V25CWTA.css 3.10 Kb

india_compliance/dist/css-rtl/
└─ india_compliance_account.bundle.2JQA4LVR.css 3.10 Kb

DONE Total Build Time: 881.965ms

Done in 2.08s.
$ supervisorctl restart frappe-bench-web:
frappe-bench-web:frappe-bench-node-socketio: stopped
frappe-bench-web:frappe-bench-frappe-web: stopped
frappe-bench-web:frappe-bench-frappe-web: started
frappe-bench-web:frappe-bench-node-socketio: started
$ supervisorctl restart frappe-bench-workers:
frappe-bench-workers:frappe-bench-frappe-schedule: stopped
frappe-bench-workers:frappe-bench-frappe-long-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-short-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-schedule: started
frappe-bench-workers:frappe-bench-frappe-short-worker-0: started
frappe-bench-workers:frappe-bench-frappe-long-worker-0: started
erp@mmcl:~/frappe-bench$ bench --site site.local install-app india_compliance
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 424, in install_app
_install_app(app, verbose=context.verbose, force=force)
context = {‘sites’: [‘site.local’], ‘force’: False, ‘verbose’: False, ‘profile’: False}
apps = (‘india_compliance’,)
force = False
_install_app = <function install_app at 0x7f3ab4acdea0>
filelock = <function filelock at 0x7f3ab4acdb40>
exit_code = 0
site = ‘site.local’
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 0x7f3ab3bbb520>
sync_for = <function sync_for at 0x7f3ab3670040>
sync_customizations = <function sync_customizations at 0x7f3ab4c85870>
sync_fixtures = <function sync_fixtures at 0x7f3ab3670280>
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’]
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 281, 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 928, 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 602, 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 567, 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 0x7f3ab1344790>
inspect = <module ‘inspect’ from ‘/usr/lib/python3.10/inspect.py’>
msg = ‘Could not find DocType: Bill of Entry’
out = {‘message’: ‘Could not find DocType: Bill of Entry’, ‘title’: ‘Message’, ‘indicator’: ‘red’, ‘raise_exception’: 1, ‘__frappe_exc_id’: ‘487fc8e5b911372e8fb7118f6c061ab9f5f0960bdb2b0f97f78e5b67’}
raise_exception = <class ‘frappe.exceptions.LinkValidationError’>
File “apps/frappe/frappe/init.py”, line 518, in _raise_exception
raise exc
exc = LinkValidationError(‘Could not find DocType: Bill of Entry’)
inspect = <module ‘inspect’ from ‘/usr/lib/python3.10/inspect.py’>
msg = ‘Could not find DocType: Bill of Entry’
out = {‘message’: ‘Could not find DocType: Bill of Entry’, ‘title’: ‘Message’, ‘indicator’: ‘red’, ‘raise_exception’: 1, ‘__frappe_exc_id’: ‘487fc8e5b911372e8fb7118f6c061ab9f5f0960bdb2b0f97f78e5b67’}
raise_exception = <class ‘frappe.exceptions.LinkValidationError’>
frappe.exceptions.LinkValidationError: Could not find DocType: Bill of Entry
erp@mmcl:~/frappe-bench$

Hey, could you look into this?

I think it’s your post. Please check it and try again.

1 Like

yes, thank you for the quick reply.

i tried installing into a production environment. Now it doesnt work anymore. even if i use the “–resolve-deps” tag. Do you know why its behaving like this?

i have also attached the versions here for your reference here:

ERPNext: v15.17.4 (version-15)

Frappe Framework: v15.18.0 (version-15)

again raised the issue on github.

Thank You!