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 

pdb sees script as single line

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



Joined: 05 Mar 2015
Posts: 5

PostPosted: Thu Mar 05, 2015 10:43 am    Post subject: pdb sees script as single line Reply with quote

Hi!
I have been using Python 2.5.4 on OpenVMS for many years.
Now I tried 2.7.9 (default, Dec 11 2014, 09:54:04) on Itanium OpenVMS V8.4.
When stopping at pdb.set_trace(), the line command shows my script as a single line!
The break command says "End of file" for line numbers > 2.
Single-stepping seems to work, but you are blind to your location.

Has anyone encountered this problem?
Back to top
View user's profile Send private message
jfp



Joined: 12 Jul 2004
Posts: 618

PostPosted: Fri Mar 06, 2015 6:37 pm    Post subject: Reply with quote

You probably need to convert your files to stmlf.

You can use the pystmlf tool.

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



Joined: 28 Jan 2008
Posts: 252

PostPosted: Fri Mar 06, 2015 6:51 pm    Post subject: Reply with quote

Is that some new requirement?

I'm still on Alpha and has never done anything but
edit/create the .py files with EDT and just run.

I have seen other "ported" products that also have this
"stream" requirement and frankly, I do not like that at all.
Back to top
View user's profile Send private message
dagbirger



Joined: 05 Mar 2015
Posts: 5

PostPosted: Mon Mar 09, 2015 4:05 pm    Post subject: Reply with quote

Ok, when I convert the file it looks normal in pdb.

So it is a permanent requirement when using 2.7.9 to make sure all your scripts are stmlf?
Back to top
View user's profile Send private message
jfp



Joined: 12 Jul 2004
Posts: 618

PostPosted: Tue Mar 10, 2015 10:46 am    Post subject: Reply with quote

If you take a look at the history http://www.vmspython.org/doku.php?id=history :
Quote:
30-SEP-2011
Put online the first port of Python 2.7.2+
PCSI kit and image LD (JFPPY0100x)
Python on OpenVMS, now, support the universal newline open file mode.
/!\ this version need that Python source files to be streamlf, pystmlf utility can be used to convert.


The main stream introduce the use of of universal newline open mode for the source, so it become difficult to don't use it.
If I remember correctly there is some decc feature in recent OpenVMS version to bypass this.

So you will have to convert all source Python to streamlf.
Anyway this is a requirement for more and more product, included mercurial fir example.

Sorry for the inconvenience.

JF
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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