skad
June 2, 2024, 9:26pm
1
I installed the offline version of erpnext but it installed frappe version 15.29 but india_compliance app requires frappe version 16 to install, this was the error I got.
bench --site one.example.com install-app india_compliance
App erpnext already installed
Installing india_compliance…
Incompatible Frappe Version:
Frappe version 15.29.0 not compatible with India Compliance 16.0.0.dev0
Please switch to version 16 of Frappe to use the current version of India Compliance.
skad
June 2, 2024, 9:27pm
2
These are the steps I used in wsl on my win PC to install everything…
curl -fsSL https://get.docker.com | bash
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins
curl -SL https://github.com/docker/compose/releases/download/v2.27.1/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
git clone GitHub - frappe/frappe_docker: Docker images for production and development setups of the Frappe framework and ERPNext
cd frappe_docker
mkdir ~/gitops
echo ‘TRAEFIK_DOMAIN=traefik.example.com ’ > ~/gitops/traefik.env
echo ‘EMAIL=hetsukhwani@gmail.com’ >> ~/gitops/traefik.env
echo ‘HASHED_PASSWORD=’$(openssl passwd -apr1 changeit | sed ‘s/$/\$/g’) >> ~/gitops/traefik.env
sudo docker compose --project-name traefik
–env-file ~/gitops/traefik.env
-f overrides/compose.traefik.yaml up -d
echo “DB_PASSWORD=changeit” > ~/gitops/mariadb.env
sudo docker compose --project-name mariadb --env-file ~/gitops/mariadb.env -f overrides/compose.mariadb-shared.yaml up -d
cp example.env ~/gitops/erpnext-one.env
sed -i ‘s/DB_PASSWORD=123/DB_PASSWORD=changeit/g’ ~/gitops/erpnext-one.env
sed -i ‘s/DB_HOST=/DB_HOST=mariadb-database/g’ ~/gitops/erpnext-one.env
sed -i ‘s/DB_PORT=/DB_PORT=3306/g’ ~/gitops/erpnext-one.env
sed -i ‘s/SITES=erp.example.com
/SITES=`one.example.com`/g’ ~/gitops/erpnext-one.env
echo ‘ROUTER=erpnext-one’ >> ~/gitops/erpnext-one.env
echo “BENCH_NETWORK=erpnext-one” >> ~/gitops/erpnext-one.env
docker compose --project-name erpnext-one
–env-file ~/gitops/erpnext-one.env
-f compose.yaml
-f overrides/compose.redis.yaml
-f overrides/compose.multi-bench.yaml config > ~/gitops/erpnext-one.yaml
sudo docker compose --project-name erpnext-one -f ~/gitops/erpnext-one.yaml up -d
sudo docker compose --project-name erpnext-one exec backend \
bench new-site one.example.com --no-mariadb-socket --mariadb-root-password changeit --install-app erpnext --admin-password changeit
NCP
June 3, 2024, 4:42am
3
Not idea about the installation of docker but issue is
If you install Frappe/ERPNext version 15, then India Compliance must in version 15, because India Compliance has a version 15 branch.
Why India Compliance does not install:
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__),
…
To use version 15, I forked indiacompliance’s repo and switched the default branch of the fork to version 15. then I used the command bench get-app https://github.com/manjotsk/india-compliance.git
instead of bench get-app https://github.com/resilient-tech/india-compliance.git