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 

Newbie problem: Errno 22

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



Joined: 03 Jul 2012
Posts: 3
Location: Germany

PostPosted: Tue Jul 03, 2012 4:55 pm    Post subject: Newbie problem: Errno 22 Reply with quote

Hi all,
perhaps someone can give me a hint: I get the traceback:
...
f = open(self._path, 'rt')
IOError: [Errno 22] invalid mode ('rt') or filename: '/AXP040$DKC0/CITEST/INCHI-CERT_NOV24/test/inchikey/ali_ring_het_5/input/inchi/ali_ring_het_5-std-all.inchi'
The file exists, is readable for the process, and is a text file.
Any ideas where to look?
Axel
Back to top
View user's profile Send private message
jfp



Joined: 12 Jul 2004
Posts: 636

PostPosted: Wed Jul 04, 2012 7:44 am    Post subject: Reply with quote

Hello,
which version of Python?
mode 't' is not supported by the OpenVMS CRTL, try using only 'r'.

JF
Back to top
View user's profile Send private message Send e-mail Visit poster's website
parlow



Joined: 03 Jul 2012
Posts: 3
Location: Germany

PostPosted: Wed Jul 04, 2012 8:41 am    Post subject: Reply with quote

Thanks, JF. This did the trick. It is version 2.7.3+
Axel
Back to top
View user's profile Send private message
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