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 

Help ist not working

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



Joined: 16 Oct 2012
Posts: 3

PostPosted: Mon Nov 19, 2012 4:46 pm    Post subject: Help ist not working Reply with quote

Hello ,
i do some imports and help is not working.
For example:
>>> import vms
>>> import os
>>> import sys
>>> help (os)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/python_root/lib/site.py", line 475, in __call__
return pydoc.help(*args, **kwds)
File "/python_root/lib/pydoc.py", line 1752, in __call__
self.help(request)
File "/python_root/lib/pydoc.py", line 1799, in help
else: doc(request, 'Help on %s:')
File "/python_root/lib/pydoc.py", line 1536, in doc
pager(render_doc(thing, title, forceload))
File "/python_root/lib/pydoc.py", line 1412, in ttypager
r = inc = int(os.environ.get('LINES', 25)) - 1
ValueError: invalid literal for int() with base 10: 'MC NCP SHOW KNOW LINES COUNT'

Whats wrong ? I did the installation as required ? The same problem occurs with the other IMPORTS.
Thanks and Kind regards
Klaus
Back to top
View user's profile Send private message
jescab



Joined: 28 Jan 2008
Posts: 254

PostPosted: Mon Nov 19, 2012 8:13 pm    Post subject: Reply with quote

Code:

$ tcpip sh ver

  HP TCP/IP Services for OpenVMS Alpha Version V5.7 - ECO 3
  on an AlphaServer DS25 running OpenVMS V8.4   

$ ld sh /all
%LD-I-CONNECTED, Connected _$1$LDA1: to DSA100:[UTIL.PYTHON]JFPLIB0004A.DSK;3
%LD-I-CONNECTED, Connected _$1$LDA2: to DSA100:[UTIL.PYTHON]JFPPY0100A.DSK;1
...

$ python
Python 2.7.2+ (default, Oct  4 2011, 21:13:00) [DECC] on OpenVMS
Type "help", "copyright", "credits" or "license" for more information.
>>> import vms
>>> import os
>>> import sys
>>> help (os)
Help on module os:

NAME
    os - OS routines for Mac, NT, or Posix depending on what system we're on.

FILE
    /python_root/lib/os.py
...
...
Back to top
View user's profile Send private message
klaus



Joined: 16 Oct 2012
Posts: 3

PostPosted: Tue Nov 20, 2012 2:44 pm    Post subject: Help Reply with quote

Hello !
as you can see i have an Itanium-Server. The output of
--> tcpip
--> ld show /all
looks correct, but......

Kind regards Laughing
Klaus



YUCCA$>tcpip show vers

HP TCP/IP Services for OpenVMS Industry Standard 64 Version V5.7 - ECO 2
on an HP rx3600 (1.42GHz/6.0MB) running OpenVMS V8.4

1]UCCA$>ld show /all
%LD-I-CONNECTED, Connected _$1$LDA1: to DSA1166:[PYTHON]JFPLIB0004I.DSK;1 (Shared)
%LD-I-CONNECTED, Connected _$1$LDA2: to DSA1166:[PYTHON]JFPPY0200I.DSK;1 (Shared)

1]YUCCA$>python
Python 2.7.3+ (default, Apr 20 2012, 20:06:26) [DECC] on OpenVMS
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> help (os)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/python_root/lib/site.py", line 475, in __call__
return pydoc.help(*args, **kwds)
File "/python_root/lib/pydoc.py", line 1752, in __call__
self.help(request)
File "/python_root/lib/pydoc.py", line 1799, in help
else: doc(request, 'Help on %s:')
File "/python_root/lib/pydoc.py", line 1536, in doc
pager(render_doc(thing, title, forceload))
File "/python_root/lib/pydoc.py", line 1337, in pager
pager(text)
File "/python_root/lib/pydoc.py", line 1412, in ttypager
r = inc = int(os.environ.get('LINES', 25)) - 1
ValueError: invalid literal for int() with base 10: 'MC NCP SHOW KNOW LINES COUNT'
Back to top
View user's profile Send private message
jfp



Joined: 12 Jul 2004
Posts: 636

PostPosted: Thu Nov 22, 2012 5:08 pm    Post subject: Reply with quote

Hello,

I suspect that you have a symbol LINES defined...

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