View Full Version : Error message when loading script - Unsupported opcode: GET_ITER
kbanks
05-15-2008, 09:00 AM
(this came in as an email, and I posted it for the customer)
I was trying to upload your Snappy script - "topology2" and got the following error:
Error in script, tellPing: Unsupported opcode: GET_ITER at Line: 9
The only change I made to the script before uploading was to change myPortalAddr to the default. I got a similar error in one of my own scripts, so if you could explain why I am getting this error I would appreciate it greatly.
kbanks
05-15-2008, 09:02 AM
I tried your script on my system, and the only way I could get the error you describe was to try and load the script into the SNAP Nodes.
Python script topology2.py is a Portal script, and should be loaded into Portal, not the individual nodes (topoHelper2.py is the SNAPpy script that goes in each node).
In Portal 2.0.x:
Portal scripts are loaded (into Portal) using the “green arrow that points to the right” on the upper toolbar.
SNAPpy scripts are loaded (into SNAP nodes) using the “green arrow that points upwards” on the smaller toolbar that is part of the Node Info window.
In Portal 2.1.x:
In the 2.1 GUI, the toolbar buttons were changed so that the same button was used regardless of the type of script being uploaded.
However, my original comment remains valid - put each script into the correct place.
bdfloyd
05-16-2008, 09:26 AM
If this becomes something that happens with increasing frequency (and to other than new or infrequent users), perhaps adding a script identifer would help. For example: Portal_topology2.py and SNAP_topoHelper2.py
or a more concise version, like: P_topology2.py and S_topoHelper2.py
cbowen12345
05-16-2008, 02:20 PM
Kevin,
I was reading this thread and was interested in the topology script but cannot locate it on the web site or the scripts included with Portal Pro. Where is it located on the web site.
R
kbanks
09-30-2008, 08:10 AM
These scripts are not officially released. Attached is an unoffical copy :)
vBulletin® v3.7.5, Copyright ©2000-2010, Jelsoft Enterprises Ltd.