Python online help utility

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • autodidact
    New Member
    • Sep 2007
    • 24

    Python online help utility

    Hey guys anytime i type in help ('print') i get the following error;

    "Sorry, topic and keyword documentation is not available because the Python
    HTML documentation files could not be found. If you have installed them,
    please set the environment variable PYTHONDOCS to indicate their location.

    On the Microsoft Windows operating system, the files can be built by
    running "hh -decompile . PythonNN.chm" in the C:\PythonNN\Doc > directory"


    I'm working with Python 2.5, i presume thats the latest version.

    TIA!
    Last edited by bartonc; Oct 14 '07, 05:47 AM. Reason: rules against bold tags everywhere
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by autodidact
    Hey guys anytime i type in help ('print') i get the following error;

    "Sorry, topic and keyword documentation is not available because the Python
    HTML documentation files could not be found. If you have installed them,
    please set the environment variable PYTHONDOCS to indicate their location.

    On the Microsoft Windows operating system, the files can be built by
    running "hh -decompile . PythonNN.chm" in the C:\PythonNN\Doc > directory"


    I'm working with Python 2.5, i presume thats the latest version.

    TIA!
    That's what I get too. The docs are in the Start menu under Programs -> Python 2.5.

    Comment

    • autodidact
      New Member
      • Sep 2007
      • 24

      #3
      Originally posted by bartonc
      That's what I get too. The docs are in the Start menu under Programs -> Python 2.5.
      I do see it, but shouldn't i be able to access it from my python shell?

      Comment

      • bartonc
        Recognized Expert Expert
        • Sep 2006
        • 6478

        #4
        Originally posted by autodidact
        I do see it, but shouldn't i be able to access it from my python shell?
        That depends on which shell you are using. The (generally useless) command line prompt which has poor editing capabilities and no menus will bring up help if you leave out the quotes, (print won't work, but just about anything else will). But even the simplest IDE like IDLE has a help menu that will bring up the docs for you.

        Comment

        • autodidact
          New Member
          • Sep 2007
          • 24

          #5
          Originally posted by bartonc
          That depends on which shell you are using. The (generally useless) command line prompt which has poor editing capabilities and no menus will bring up help if you leave out the quotes, (print won't work, but just about anything else will). But even the simplest IDE like IDLE has a help menu that will bring up the docs for you.

          I can find it manually by going to the help menu as you suggested, but isn't the whole philosophy of programming to be lazy? but thats besides the point.

          I did try it without the quotes like help (if) and it gives me a syntax error.

          I should've also added in the first post that the error included the following:

          On the Microsoft Windows operating system, the files can be built by running "hh -decompile . PythonNN.chm" in the C:\PythonNN\Doc > directory.

          How do i do that?

          I'm also using the shell that comes with python.

          Comment

          • bartonc
            Recognized Expert Expert
            • Sep 2006
            • 6478

            #6
            Originally posted by autodidact
            I can find it manually by going to the help menu as you suggested, but isn't the whole philosophy of programming to be lazy? but thats besides the point.

            I did try it without the quotes like help (if) and it gives me a syntax error.
            Yep. That would be the expected behavior when putting reserved words between parentheses like that. The help system does work. Just type help() and it will guide you.
            I should've also added in the first post that the error included the following:

            On the Microsoft Windows operating system, the files can be built by running "hh -decompile . PythonNN.chm" in the C:\PythonNN\Doc > directory.

            How do i do that?

            I'm also using the shell that comes with python.
            Ok. I think I see what you're getting at. I wouldn't go around decompiling the help file just yet.

            To start help programmaticly, you could:[CODE=python]
            >>> import os
            >>> os.startfile(r' D:\Python24\Doc \Python24.chm')
            >>> [/CODE]
            Last edited by bartonc; Oct 14 '07, 03:29 PM.

            Comment

            • autodidact
              New Member
              • Sep 2007
              • 24

              #7
              Originally posted by bartonc
              Yep. That would be the expected behavior when putting reserved words between parentheses like that. The help system does work. Just type help() and it will guide you.

              Ok. I think I see what you're getting at. I wouldn't go around decompiling the help file just yet.

              To start help programmaticly, you could:[CODE=python]
              >>> import os
              >>> os.startfile(r' D:\Python24\Doc \Python24.chm')
              >>> [/CODE]

              Thanks, it brought up the Doc file, how can i want to get specific help?

              Comment

              • oler1s
                Recognized Expert Contributor
                • Aug 2007
                • 671

                #8
                Why don't you guys just do the hh -decompile thing? That's what I did...

                Comment

                • autodidact
                  New Member
                  • Sep 2007
                  • 24

                  #9
                  Originally posted by oler1s
                  Why don't you guys just do the hh -decompile thing? That's what I did...
                  Um so how do you do the decompile thing? I have no clue whatsoever

                  Comment

                  • bartonc
                    Recognized Expert Expert
                    • Sep 2006
                    • 6478

                    #10
                    Originally posted by autodidact
                    Um so how do you do the decompile thing? I have no clue whatsoever
                    Start -> Run cmd
                    Navigate to the doc directory (like cd C:\Python25\Doc)
                    Code:
                    C:\Python25\Doc> hh -decompile . Python25.chm
                    But that will strew your doc folder full of little HTML files. Have fun!
                    Last edited by bartonc; Oct 14 '07, 05:51 PM.

                    Comment

                    • autodidact
                      New Member
                      • Sep 2007
                      • 24

                      #11
                      Originally posted by bartonc
                      Start -> Run cmd
                      Navigate to the doc directory (like cd C:\Python25\Doc)
                      Code:
                      C:\Python25\Doc> hh -decompile . Python25.chm
                      But that will strew your doc folder full of little HTML files. Have fun!
                      I can't help but ask dumb questions, but could you rephrase what you meant by "strew your doc folder full of little HTML files"

                      In my doc folder i got 2 files namely python25.chm and python25.chw



                      Thx

                      Comment

                      • zupergfs
                        New Member
                        • Feb 2008
                        • 1

                        #12
                        Originally posted by autodidact
                        I can't help but ask dumb questions, but could you rephrase what you meant by "strew your doc folder full of little HTML files"

                        In my doc folder i got 2 files namely python25.chm and python25.chw



                        Thx
                        my friend you have to do one thing so

                        1 st go to command prompt and type cd C:\Python25\Doc to navigate there
                        2 exit the python idle
                        3 hit space once (in the command prompt window)
                        4 so Then type hh -decompile . Python25.chm and hit ENTER
                        5 so only if you type it correctly you will find in the "Doc" directory the decompiled html files.
                        6 if you have decompiled them just re-open IDLE and
                        7 Have fun !!!

                        Comment

                        • VictorWoo
                          New Member
                          • Feb 2008
                          • 1

                          #13
                          C:\Python25\Doc >hh -Decompile . Python25.chm
                          refresh the folder, success:)

                          Comment

                          Working...