[bug-13423] [project scripts] naming a packge to a previously used script name

I’ve noticed this forum is now for early access releases. I’m currently on 8.0.0 release. If there is a preferred place to report bugs please let me know and I’ll conform.

build: 8.0.0 (b2019040718)
os: win 10 pro

reproduce:
https:/uploads/iatesting/original/2X/1/1deb1cab7554bd6e6b5b6d492f439109bfc1444c.mp4

stacktrace:

TypeError: ‘com.inductiveautomation.ignition.common.script.ScriptModule’ object does not support item assignment

at org.python.core.Py.TypeError(Py.java:265)
at org.python.core.PyObject.setitem(PyObject.java:769)
at org.python.core.PyObject.setitem(PyObject.java:788)
at com.inductiveautomation.ignition.common.script.ScriptManager.addScriptModule(ScriptManager.java:236)
at com.inductiveautomation.ignition.common.script.ModuleLibrary.lambda$install$1(ModuleLibrary.java:44)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.forEach(Unknown Source)
at com.inductiveautomation.ignition.common.script.ModuleLibrary.install(ModuleLibrary.java:40)
at com.inductiveautomation.ignition.common.script.ModuleLibrary.install(ModuleLibrary.java:34)
at com.inductiveautomation.ignition.client.model.AbstractClientContext$ResourceAndManifestListener.resourcesCreated(AbstractClientContext.java:242)
at com.inductiveautomation.ignition.common.project.AbstractProject.notifyResourceListeners(AbstractProject.java:335)
at com.inductiveautomation.ignition.common.project.AbstractProject.updateEffectiveState(AbstractProject.java:151)
at com.inductiveautomation.ignition.designer.project.DesignerProjectTreeImpl.updateEffectiveState(DesignerProjectTreeImpl.java:84)
at com.inductiveautomation.ignition.designer.project.DesignerProjectTreeImpl.createResource(DesignerProjectTreeImpl.java:188)
at com.inductiveautomation.ignition.designer.project.CreateResourceDialog$CreateAction.actionPerformed(CreateResourceDialog.java:144)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

Ignition v8.0.0 (b2019040718)
Java: Azul Systems, Inc. 11.0.2

Yep - we’re tracking this one internally also, though not yet resolved. Thanks for the report!

1 Like

We are getting a similar error at one of our sites as well. However, we are running Ignition 7.9.10 with Vision.

TypeError: ‘com.inductiveautomation.ignition.common.script.ScriptModule’ object does not support item assignment

at org.python.core.Py.TypeError(Py.java:235)
at org.python.core.PyObject.__setitem__(PyObject.java:667)
at org.python.core.PyObject.__setitem__(PyObject.java:686)
at com.inductiveautomation.ignition.common.script.ScriptManager.addScriptModule(ScriptManager.java:217)
at com.inductiveautomation.ignition.common.script.ModuleLibrary.installScriptsUnderPackage(ModuleLibrary.java:89)
at com.inductiveautomation.ignition.common.script.ModuleLibrary.install(ModuleLibrary.java:59)
at com.inductiveautomation.ignition.common.script.ModuleLibrary.install(ModuleLibrary.java:54)
at com.inductiveautomation.factorypmi.application.runtime.ClientContextImpl.startup(ClientContextImpl.java:368)
at com.inductiveautomation.factorypmi.application.runtime.ClientPanel.startupApp(ClientPanel.java:710)
at com.inductiveautomation.factorypmi.application.runtime.ClientPanel$LoginAction$LoginTask.run(ClientPanel.java:547)
at java.lang.Thread.run(Unknown Source)

Ignition v7.9.10 (b2018112821)
Java: Oracle Corporation 1.8.0_221