ImportError: __import__ not found ERPNext

Server scripts run in a restricted context for ensuring security. You can’t import any external python module in server scripts.