I have a vanilla install of GLUU 3.1.5 and configured the Twilio SMS without script modifications and after enabling it it now is red and shows the following error:
`File "twilio_sms.py", line 17, in <module>`
ImportError: No module named twilio
Here's the whole stack trace:
org.xdi.exception.PythonException: Failed to load python file 'java.io.ByteArrayInputStream@47f6d3b5'
at org.xdi.service.PythonService.loadPythonScript(PythonService.java:182)
at org.xdi.service.PythonService$Proxy$_$$_WeldClientProxy.loadPythonScript(Unknown Source)
at org.xdi.service.custom.script.CustomScriptManager.createExternalTypeFromStringWithPythonException(CustomScriptManager.java:383)
at org.xdi.service.custom.script.CustomScriptManager$Proxy$_$$_WeldSubclass.createExternalTypeFromStringWithPythonException(Unknown Source)
at org.xdi.service.custom.script.CustomScriptManager.createExternalType(CustomScriptManager.java:351)
at org.xdi.service.custom.script.CustomScriptManager.reloadCustomScriptConfigurations(CustomScriptManager.java:261)
at org.xdi.service.custom.script.CustomScriptManager.reloadImpl(CustomScriptManager.java:158)
at org.xdi.service.custom.script.CustomScriptManager.reload(CustomScriptManager.java:145)
at org.xdi.service.custom.script.CustomScriptManager.reloadTimerEvent(CustomScriptManager.java:121)
at org.xdi.service.custom.script.CustomScriptManager$Proxy$_$$_WeldSubclass.reloadTimerEvent(Unknown Source)
at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:95)
at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:85)
at org.jboss.weld.injection.MethodInvocationStrategy$SimpleMethodInvocationStrategy.invoke(MethodInvocationStrategy.java:129)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:330)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:308)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:286)
at javax.enterprise.inject.spi.ObserverMethod.notify(ObserverMethod.java:124)
at org.jboss.weld.util.Observers.notify(Observers.java:166)
at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:285)
at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:273)
at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:177)
at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:159)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:632)
at org.jboss.weld.util.ForwardingBeanManager.fireEvent(ForwardingBeanManager.java:104)
at org.xdi.service.timer.TimerJob.execute(TimerJob.java:37)
at org.xdi.service.timer.JobExecutionDelegate.execute(JobExecutionDelegate.java:29)
at org.xdi.service.timer.JobExecutionDelegate$Proxy$_$$_WeldClientProxy.execute(Unknown Source)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: Traceback (most recent call last):
File "twilio_sms.py", line 17, in <module>
ImportError: No module named twilio
at org.python.core.Py.ImportError(Py.java:334)
at org.python.core.imp.import_logic(imp.java:913)
at org.python.core.imp.import_module_level(imp.java:970)
at org.python.core.imp.importName(imp.java:1057)
at org.python.core.ImportFunction.__call__(__builtin__.java:1280)
at org.python.core.PyObject.__call__(PyObject.java:450)
at org.python.core.__builtin__.__import__(__builtin__.java:1232)
at org.python.core.imp.importOneAs(imp.java:1093)
at org.python.pycode._pyx3.f$0(twilio_sms.py:27)
at org.python.pycode._pyx3.call_function(twilio_sms.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1614)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:296)
at org.xdi.service.PythonService.loadPythonScript(PythonService.java:179)
... 31 more
==================Further details============================
Failed to load python file 'java.io.ByteArrayInputStream@47f6d3b5'