Dear community
When configuring the POS I have the following error:
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/doctype/tax_rule/tax_rule.py”, line 6, in
from past.builtins import cmp
ImportError: No module named past.builtins
It seems that a module needs to be installed in the bench environment, how can I do the installation manually, or what command should I use to install the missing module,
Regards
Fernando Sánchez
You need a file named init.py (two underscores on each side) in every folder in the hierarchy. This is what python looks for to know that it should access a particular folder. The files are meant to contain initialization instructions but even if you create them empty this will solve it. To get rid of this error “ImportError: No module named”, you just need to create init.py in the appropriate directory and everything will work fine.