why would 'import win32com' fail?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bill

    why would 'import win32com' fail?

    All,

    I am trying to access Excel from Python. Many of the examples started
    with:

    import win32com
    ....
    blah, blah

    I try that from my Python shell and it fails. What am I missing here?


    TIA,

    Bill
  • Chris Rebert

    #2
    Re: why would 'import win32com' fail?

    On Thu, Oct 23, 2008 at 12:21 PM, bill <wgrigg@draper. comwrote:
    All,
    >
    I am trying to access Excel from Python. Many of the examples started
    with:
    >
    import win32com
    ....
    blah, blah
    >
    I try that from my Python shell and it fails. What am I missing here?
    It's not a standard library module. You'll need to install it from:


    Cheers,
    Chris
    --
    Follow the path of the Iguana...

    Comment

    • Marc 'BlackJack' Rintsch

      #3
      Re: why would 'import win32com' fail?

      On Thu, 23 Oct 2008 12:21:29 -0700, bill wrote:
      I am trying to access Excel from Python. Many of the examples started
      with:
      >
      import win32com
      ....
      blah, blah
      >
      I try that from my Python shell and it fails. What am I missing here?
      The `win32com` module? It is not part of the standard library.

      Ciao,
      Marc 'BlackJack' Rintsch

      Comment

      • Mike Driscoll

        #4
        Re: why would 'import win32com' fail?

        On Oct 23, 2:21 pm, bill <wgr...@draper. comwrote:
        All,
        >
        I am trying to access Excel from Python. Many of the examples started
        with:
        >
              import win32com
              ....
              blah, blah
        >
        I try that from my Python shell and it fails. What am I missing here?
        >
        TIA,
        >
        Bill
        Dunno. Does it give a traceback? Does the interpreter just die? Or
        what? My guess is you need to uninstall Pywin32 and then reinstall it.
        I've seen it get goofy like this when I upgrade Pywin32 too.

        Mike

        Comment

        • drobinow@gmail.com

          #5
          Re: why would 'import win32com' fail?

          On Oct 23, 3:21 pm, bill <wgr...@draper. comwrote:
          All,
          >
          I am trying to access Excel from Python. Many of the examples started
          with:
          >
                import win32com
                ....
                blah, blah
          >
          I try that from my Python shell and it fails. What am I missing here?
          You need to download and install the Python Extensions for Windows.


          Comment

          • bill

            #6
            Re: why would 'import win32com' fail?

            On Oct 23, 3:21 pm, bill <wgr...@draper. comwrote:
            All,
            >
            I am trying to access Excel from Python. Many of the examples started
            with:
            >
                  import win32com
                  ....
                  blah, blah
            >
            I try that from my Python shell and it fails. What am I missing here?
            >
            TIA,
            >
            Bill

            Thanks for the responses. I did not realize it had to be downloaded.

            Bill

            Comment

            Working...