Page 1 of 1

VMS-IDE 1.5.17 Python Debugger syntax error

Posted: Fri Jun 05, 2020 10:24 am
by compinia
Python Version 2.7.13, OpenVMS V8.4-2L1

the Python Code

from vms.rtl.lib import getdvi
from vms.dvidef import DVI__FULLDEVNAM, DVI__FREEBLOCKS, DVI__LOGVOLNAM
disk = "SYS$SYSDEVICE"
# get the full device namme (node name and device name)
devnam = getdvi(DVI__FULLDEVNAM, device_name=disk)[2]
# get the logical name of the volume
logvolnam = getdvi(DVI__LOGVOLNAM, device_name=disk)[2]
# get the number of free blocks on the disk
freeblocks = getdvi(DVI__FREEBLOCKS, device_name=disk)[1]
# print results
print 'disk %s:\n\tlogical name %s\n\t%d free blocks' % (devnam, logvolnam, freeblocks)


The Python Debugger output

File "out/tracer.py", line 310
_, line_incr, *tail = tail
^
SyntaxError: invalid syntax

Any help is appreciated

Re: VMS-IDE 1.5.17 Python Debugger syntax error

Posted: Fri Jun 05, 2020 11:10 am
by sergey_vorfolomeev
Sorry, we did not test tracer on Python 2.7
It will be fixed in the next release.

Added in 18 minutes 3 seconds:
version with this fix is released

Re: VMS-IDE 1.5.17 Python Debugger syntax error

Posted: Mon Jun 29, 2020 4:10 pm
by jfp
If you are on a IA64 box, it would be a good idea to upgrade to 2.7.18 or as you are using V8.4-2L1 to 3.10a0 which contains the same vms modules.

JFP