Module not found 'india_compliance'

I have managed to install this app after many struggle. This is by far one of the most difficult things i have ever done. Finally after a week i managed to have it installed and the dashboard shows india compliance as installed. However when i try to import a csv file with all the banks, the background job fails, with reason:

Traceback (most recent call last):
File “apps/frappe/frappe/core/doctype/data_import/importer.py”, line 149, in import_data
doc = self.process_doc(doc)
^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/core/doctype/data_import/importer.py”, line 251, in process_doc
return self.insert_record(doc)
^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/core/doctype/data_import/importer.py”, line 270, in insert_record
new_doc.insert()
File “apps/frappe/frappe/model/document.py”, line 334, in insert
self.run_post_save_methods()
File “apps/frappe/frappe/model/document.py”, line 1190, in run_post_save_methods
self.save_version()
File “apps/frappe/frappe/model/document.py”, line 1320, in save_version
version.insert(ignore_permissions=True)
File “apps/frappe/frappe/model/document.py”, line 309, in insert
self.run_before_save_methods()
File “apps/frappe/frappe/model/document.py”, line 1136, in run_before_save_methods
self.run_method(“validate”)
File “apps/frappe/frappe/model/document.py”, line 1007, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/model/document.py”, line 1364, in composer
hooks.append(frappe.get_attr(handler))
^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/init.py”, line 1726, in get_attr
return getattr(get_module(modulename), methodname)
^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/init.py”, line 1436, in get_module
return importlib.import_module(modulename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1126, in _find_and_load_unlocked
File “”, line 241, in _call_with_frames_removed
File “”, line 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1126, in _find_and_load_unlocked
File “”, line 241, in _call_with_frames_removed
File “”, line 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1126, in _find_and_load_unlocked
File “”, line 241, in _call_with_frames_removed
File “”, line 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘india_compliance’

i have no idea how to tackle this. The india compliance module seems to work in most if not all other parts, and i can see it in the dashboard. please help.

There is some issue with installation.

Can you specify how you installed the app?
Is it through docker?

What i did was the following:

  1. git clone GitHub - frappe/frappe_docker: Docker images for production and development setups of the Frappe framework and ERPNext
  2. cd frappe_docker
  3. docker compose -f pwd.yml up -d
  4. docker exec -it frappe_docker-backend-1 bash
  5. bench get-app GitHub - resilient-tech/india-compliance: Simple, yet powerful compliance solutions for Indian businesses --branch version-15
  6. bench --site frontend install-app india_compliance
  7. exit
  8. docker stop frappe_docker-backend-1
  9. docker start frappe_docker-backend-1

and this yields an installed india compliance, erpnext and frappe, where the CSS is not broken but yields a number of errors like the one described above and:

  • GST settings yields errors: let out = india_compliance.is_api_enabled(doc); return out utils.js:1082:11

Uncaught (in promise) Error: Invalid “depends_on” expression and results in a blank page, you are not able to set GST settings

  • India compliance account yields Uncaught SyntaxError: expected expression, got ‘<’, blank page, unusable

  • New purschase invoice yields: Uncaught (in promise) ReferenceError: gst_settings is not defined, blank page, unusable

  • GST Sales Regsiter: TypeError: ‘NoneType’ object is not subscriptable
    Possible source of error: india_compliance (app)

This is the just the errors im aware of. there might be more.

Help is no longer needed. We have abandoned the project. ‘india compliance’ was nessecery but its too broken, too bugged, too indian. We cannot continue with this and give up on the project.

We thank you in a 1000 languages for your hard work.

Sorry for the inconvience caused.

The issue is likely due to improper installation.
All the errors seem to be due to an issue in the js assets due to improper build.
Make sure the installation is done correctly, or try using Frappe Cloud for an easier solution.

I recovered.

The trick was to make your own image, and when doing that it DOES work, error free

Yes,

You need to create your own image for docker. Steps specified here: