Hi I am getting the Key Error when starting shotgunEventDaemon. SGDAEMON_SGJIRA_NAME is exported to environment variable along with others.
INFO:engine:Using Shotgun Python API version 3.2.4
INFO:engine:Loading plugin at /home/tsg/Documents/SG_Jira/sg-jira-bridge/triggers/sg_jira_event_trigger.py
Traceback (most recent call last):
File “shotgunEventDaemon.py”, line 1251, in emit
smtp.connect(self.mailhost, port)
File “/usr/lib/python2.7/smtplib.py”, line 317, in connect
self.sock = self._get_socket(host, port, self.timeout)
File “/usr/lib/python2.7/smtplib.py”, line 292, in _get_socket
return socket.create_connection((host, port), timeout)
File “/usr/lib/python2.7/socket.py”, line 575, in create_connection
raise err
error: [Errno 111] Connection refused
Logged from file shotgunEventDaemon.py, line 868
CRITICAL:engine:Error running register callback function from plugin at /home/tsg/Documents/SG_Jira/sg-jira-bridge/triggers/sg_jira_event_trigger.py.
Traceback (most recent call last):
File “shotgunEventDaemon.py”, line 863, in load
regFunc(Registrar(self))
File “/home/tsg/Documents/SG_Jira/sg-jira-bridge/triggers/sg_jira_event_trigger.py”, line 67, in registerCallbacks
os.environ[“SGDAEMON_SGJIRA_NAME”],
File “/usr/lib/python2.7/UserDict.py”, line 40, in getitem
raise KeyError(key)
KeyError: ‘SGDAEMON_SGJIRA_NAME’
INFO:engine:Loading plugin at /home/tsg/Documents/SG_Jira/sg-jira-bridge/triggers/init.py
Traceback (most recent call last):
File “shotgunEventDaemon.py”, line 1251, in emit
smtp.connect(self.mailhost, port)
File “/usr/lib/python2.7/smtplib.py”, line 317, in connect
self.sock = self._get_socket(host, port, self.timeout)
File “/usr/lib/python2.7/smtplib.py”, line 292, in _get_socket
return socket.create_connection((host, port), timeout)
File “/usr/lib/python2.7/socket.py”, line 575, in create_connection
raise err
error: [Errno 111] Connection refused
Logged from file shotgunEventDaemon.py, line 873
CRITICAL:engine:Did not find a registerCallbacks function in plugin at /home/tsg/Documents/SG_Jira/sg-jira-bridge/triggers/init.py.