Erpnext app installation to site fails

Erpnext app installation to site fails:

bench --site mysite.name install-app erpnext

Gives following error

"share_transfer.py:172: SyntaxWarning: “is not” with a literal. Did you mean “!=”?

Review full error below

Installing erpnext...

Updating DocTypes for erpnext       : [===                                     ]/home/erpteam/shambhavi-bench/apps/erpnext/erpnext/accounts/doctype/share_transfer/share_transfer.py:172: SyntaxWarning: "is not" with a literal. Did you mean "!="?
shareholders = [shareholder for shareholder in shareholders if self.get(shareholder) is not '']
Updating DocTypes for erpnext       : [=============================
Updating customization for address

Please guide further, following are few points

  • Server: Ubuntu Server 20.04 LTS
  • Frappe installed successfully
  • Bench is created successfully
  • Erpnext App downloaded and installed successfully
  • Site is reinstalled (as before erpnext, site config happened)
  • Erpnext App install to site is failing

Thank you.

Are you trying to reinstall ERPNext to a site that had it installed or is this a new site and first attempt to install ERPNext to it?

ErpNext is installed on New Site Reinstalled.

  • Fresh Bench Installed
  • Frappe Installed
  • Site Created
  • Logged In to Site
  • ErpNext App Install Fails as Site is already logged In
  • Site is Recreated with “reinstall” command
  • ErpNext App Installs Fails with above details.

If you want to start with a fresh instance of ERPNext on a new site , drop the old one and then add it and install ERPNext to it
bench --drop-site
bench new-site
bench --site install-app erpext

or try:

bench --site [sitename] --force reinstall Reinstall with fresh database (Caution: Will wipe out old database)

If you are attempting to reinstall ERPNext on top of an existing database, you should backup the site , create a fresh ERPNext site as above then restore the database.

bench drop-site site1.local --force

bench get-app erpnext https://github.com/frappe/erpnext --branch [branch-name]

bench new-site site1.local

bench --site site1.local install-app erpnext
1 Like

This just completed installation of new site as well as erpnext app is installed too without issues.

Thank you, I will review current installation now…