forum.vmspython.org Forum Index forum.vmspython.org
Forum system
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

function vms.starlet.filescan not working with version 2.7.8

 
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> Python for OpenVMS
View previous topic :: View next topic  
Author Message
dlaroche-ca



Joined: 03 Jul 2013
Posts: 32
Location: Montréal, Québec, Canada

PostPosted: Tue Sep 30, 2014 5:50 pm    Post subject: function vms.starlet.filescan not working with version 2.7.8 Reply with quote

I use the following code with Python 2.7.2+ on VMS 8.3 I64 and it works fine:
Code:

MANGA: python
Python 2.7.2+ (default, Oct  7 2011, 10:23:46) [DECC] on OpenVMS
Type "help", "copyright", "credits" or "license" for more information.
>>> from vms.starlet import filescan
>>> from vms.itemList import itemList
>>> from vms.fscndef import FSCN__DEVICE, FSCN__DIRECTORY, FSCN__NAME, \
...      FSCN__ROOT, FSCN__TYPE
>>>
>>> itl=[itemList(code=FSCN__DEVICE), itemList(code=FSCN__DIRECTORY),
... itemList(code=FSCN__NAME), itemList(code=FSCN__TYPE)]
>>> status, fdflags, auxout, resdic = filescan("tdd_root:[000000]testdatae.py", itl)
>>> print resdic
{3: 'tdd_root:', 5: '[000000]', 6: 'testdatae', 7: '.py'}


The same code executed with version 2.7.8 on the same box fails:
Code:

MANGA: python
Python 2.7.8 (default, Sep  9 2014, 11:50:54) [DECC] on OpenVMS
Type "help", "copyright", "credits" or "license" for more information.
>>> from vms.starlet import filescan
...
>>> status, fdflags, auxout, resdic = filescan("tdd_root:[000000]testdatae.py", itl)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_starlet.pyx", line 1351, in vms.starlet._starlet.filescan (PYTHON_ROOT:[local.vms.starlet]_st
arlet.c;1:17537)
TypeError: an integer is required


Thanks again for all the good work.
Back to top
View user's profile Send private message Send e-mail
jfp



Joined: 12 Jul 2004
Posts: 618

PostPosted: Wed Oct 01, 2014 10:14 am    Post subject: Reply with quote

Found and fixed the bug.

See http://hg.vmspython.org/vmspython/rev/abd41ae2e786

I have put online a new version of _starlet.exe :
http://downloads.vmspython.org/anonymous/kits/tmp/ia64/starlet_278.zip
http://downloads.vmspython.org/anonymous/kits/tmp/axp/starlet_278.zip

Thanks for reporting.


JF


Last edited by jfp on Thu Oct 02, 2014 9:31 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dlaroche-ca



Joined: 03 Jul 2013
Posts: 32
Location: Montréal, Québec, Canada

PostPosted: Wed Oct 01, 2014 5:58 pm    Post subject: Reply with quote

Ok thanks. I just put the new _starlet.exe in place and it works.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vmspython.org Forum Index -> Python for OpenVMS All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group