Hi,
I have a python script that ran fine in 3.x. It no longer works in 4.x via event command. The script does however work running from the command line as the zenoss user. After much troubleshooting, I have narrowed down that the imports in the beginning of the script are causing problems. It seems as though the the environment is set different running the command from the event commands then from the command line. This was narrowed down using try accept clause within the script to capture what the specific error was and then write it out to a file. These are the imports
from SOAPpy import SOAPProxy
import sys
import re
import smtplib
import MySQLdb
import string
import time
from datetime import datetime
# additional Zenoss modules for closing/acknowledging
import Globals
from Products.ZenUtils.ZenScriptBase import ZenScriptBase
from transaction import commit
Thanks for any help