VMS-IDE 1.5.17 Python Debugger syntax error

Here you can discuss the universal Integrated Development Environment for OpenVMS.
Post Reply

Topic author
compinia
Member
Posts: 7
Joined: Fri Jun 05, 2020 9:51 am
Reputation: 0
Status: Offline

VMS-IDE 1.5.17 Python Debugger syntax error

Post by compinia » Fri Jun 05, 2020 10:24 am

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


sergey_vorfolomeev
VSI Expert
Valued Contributor
Posts: 98
Joined: Thu Aug 22, 2019 12:17 am
Reputation: 0
Status: Offline

Re: VMS-IDE 1.5.17 Python Debugger syntax error

Post by sergey_vorfolomeev » Fri Jun 05, 2020 11:10 am

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


jfp
Contributor
Posts: 16
Joined: Wed Jun 17, 2020 6:34 am
Reputation: 0
Status: Offline

Re: VMS-IDE 1.5.17 Python Debugger syntax error

Post by jfp » Mon Jun 29, 2020 4:10 pm

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

Post Reply