Question: what to do, my Python is getting crazy

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

    #1

    Question: what to do, my Python is getting crazy

    Good morning group,

    When I open my Python window, this is appearing instead of the command
    line >>>. (I'm somehow new to Python).

    File "boot_com_serve rs.py", line 21, in <module>
    File "C:\Python25\li b\site-packages\python com.py", line 3, in
    <module>
    pywintypes.__im port_pywin32_sy stem_module__(" pythoncom", globals
    ())
    File "C:\Python25\li b\site-packages\win32\ lib\pywintypes. py", line
    98, in __import_pywin3 2_system_module __
    ('.dll', 'rb', imp.C_EXTENSION ))
    ImportError: DLL load failed: The specified procedure could not be
    found.

    I also noticed that the "queue" is not working, along with other basic
    commands.
    What should I do?
    I'm afraid to update and replace all the modules that I have compiled
    and installed in my directory, and don't know how to do it without
    damaging everything...
    PLEASE HELP!

    Angelica.
  • Gabriel Genellina

    #2
    Re: Question: what to do, my Python is getting crazy

    En Fri, 14 Nov 2008 18:21:17 -0200, Pekeika
    <m.echavarriagr egory@umiami.ed uescribió:
    Good morning group,
    >
    When I open my Python window, this is appearing instead of the command
    line >>>. (I'm somehow new to Python).
    >
    File "boot_com_serve rs.py", line 21, in <module>
    File "C:\Python25\li b\site-packages\python com.py", line 3, in
    <module>
    pywintypes.__im port_pywin32_sy stem_module__(" pythoncom", globals
    ())
    File "C:\Python25\li b\site-packages\win32\ lib\pywintypes. py", line
    98, in __import_pywin3 2_system_module __
    ('.dll', 'rb', imp.C_EXTENSION ))
    ImportError: DLL load failed: The specified procedure could not be
    found.
    Do you mean, you just type python <enterat the command prompt, and get
    the above error?
    Please post the *entire* traceback you get - the first lines are important
    too.
    I also noticed that the "queue" is not working, along with other basic
    commands.
    Which "queue"? Which basic commands?
    What should I do?
    I'm afraid to update and replace all the modules that I have compiled
    and installed in my directory, and don't know how to do it without
    damaging everything...
    PLEASE HELP!
    Try starting Python from an empty directory. Maybe you inadvertidly
    aliased some standard module with another module of your own (like
    "site.py", "user.py".. .)
    Also, try starting Python using: python -v
    and look for some module imported from your own directories, not from the
    Python standard library.

    --
    Gabriel Genellina

    Comment

    • Pekeika

      #3
      Re: Question: what to do, my Python is getting crazy

      Good morning, thanks for the answer Gabriel. THE WEIRD MESSAGE IS NOT
      APPEARING ANYMORE! I DON'T KNOW WHAT HAPPENED, my PC seems to be doing
      extra bad things, I better back up my info...

      For Tim Roberts who wrote:
      >This looks like a problem with mixed versions. Are you saying that you
      >built Python and Python-Win32 from source? If so, may I ask why? There
      >is virtually no benefit to doing so on Windows. The pre-built
      >executables provide everything you need.
      NO, OFF COURSE I DO NOT HAVE OTHER VERSION in addition to PythonWin,
      that'd be silly as you imply. What I was talking about are modules
      like sympy, numpy, Rpy, scipy, mayavi2, vtk, etc; that I have included
      in my directories for my constant use and definetely don't want to
      loose. Is any problem that I use them along with PythonWin?

      Thanks very much,
      Angelica.

      Comment

      • Pekeika

        #4
        Re: Question: what to do, my Python is getting crazy

        10 minutes later after I said thanks... the message came out again...
        this is the complete lines:

        PythonWin 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit
        (Intel)] on win32.
        Portions Copyright 1994-2006 Mark Hammond - see 'Help/About PythonWin'
        for further copyright information.
        >>Traceback (most recent call last):
        File "boot_com_serve rs.py", line 21, in <module>
        File "C:\Python25\li b\site-packages\python com.py", line 3, in
        <module>
        pywintypes.__im port_pywin32_sy stem_module__(" pythoncom", globals
        ())
        File "C:\Python25\li b\site-packages\win32\ lib\pywintypes. py", line
        98, in __import_pywin3 2_system_module __
        ('.dll', 'rb', imp.C_EXTENSION ))
        ImportError: DLL load failed: The specified procedure could not be
        found.

        I know Python 2.5 doesn't load DLL's anymore. Should I change the DLL
        extensions by .pyo or a different extension? in which files, the
        pywintypes?

        Gabriel, you mean, install pythonwin in another empty directory ans
        see if it works?
        and the queue IS working.
        May be this a virus in my PC?
        My web service is also getting crazy,

        Thanks,
        Angelica.

        Comment

        • Gabriel Genellina

          #5
          Re: Question: what to do, my Python is getting crazy

          En Mon, 17 Nov 2008 12:56:07 -0200, Pekeika
          <m.echavarriagr egory@umiami.ed uescribió:
          10 minutes later after I said thanks... the message came out again...
          this is the complete lines:
          >
          PythonWin 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit
          (Intel)] on win32.
          Portions Copyright 1994-2006 Mark Hammond - see 'Help/About PythonWin'
          for further copyright information.
          >>>Traceback (most recent call last):
          File "boot_com_serve rs.py", line 21, in <module>
          File "C:\Python25\li b\site-packages\python com.py", line 3, in
          <module>
          pywintypes.__im port_pywin32_sy stem_module__(" pythoncom", globals
          ())
          File "C:\Python25\li b\site-packages\win32\ lib\pywintypes. py", line
          98, in __import_pywin3 2_system_module __
          ('.dll', 'rb', imp.C_EXTENSION ))
          ImportError: DLL load failed: The specified procedure could not be
          found.
          That reference to boot_com_server s.py is rather strange - it belongs to
          py2exe. Neither the console version of Python, nor PythonWin, use py2exe.
          Have you been playing with it? Do you attempt to execute PythonWin from
          inside an application packaged with py2exe?
          I assume you get the message above just by opening PythonWin, by double
          clicking on its icon, ok?
          I know Python 2.5 doesn't load DLL's anymore. Should I change the DLL
          extensions by .pyo or a different extension? in which files, the
          pywintypes?
          No, the pywin32 package works fine out-of-the-box. You don't need (and
          should not!) change any file extension. A DLL is *not* the same as a .pyo
          file.
          Gabriel, you mean, install pythonwin in another empty directory ans
          see if it works?
          No, I was talking about the command line interpreter ("python.exe "), not
          the PythonWin application.
          and the queue IS working.
          Which "queue"?
          May be this a virus in my PC?
          My web service is also getting crazy,
          Can't tell...

          --
          Gabriel Genellina

          Comment

          • Tim Roberts

            #6
            Re: Question: what to do, my Python is getting crazy

            Pekeika <m.echavarriagr egory@umiami.ed uwrote:
            >
            >10 minutes later after I said thanks... the message came out again...
            >this is the complete lines:
            >
            >PythonWin 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit
            >(Intel)] on win32.
            >Portions Copyright 1994-2006 Mark Hammond - see 'Help/About PythonWin'
            >for further copyright information.
            >>>Traceback (most recent call last):
            File "boot_com_serve rs.py", line 21, in <module>
            File "C:\Python25\li b\site-packages\python com.py", line 3, in
            ><module>
            pywintypes.__im port_pywin32_sy stem_module__(" pythoncom", globals
            >())
            File "C:\Python25\li b\site-packages\win32\ lib\pywintypes. py", line
            >98, in __import_pywin3 2_system_module __
            ('.dll', 'rb', imp.C_EXTENSION ))
            >ImportError: DLL load failed: The specified procedure could not be
            >found.
            If you feel like it, could you do a search for "pythoncom25.dl l" and tell
            us if more than one was found?
            >I know Python 2.5 doesn't load DLL's anymore.
            Where did you read that? It's not true.
            >Gabriel, you mean, install pythonwin in another empty directory ans
            >see if it works?
            >and the queue IS working.
            Queue is part of the standard library, not the Win32 extensions, as
            Pythoncom is.
            --
            Tim Roberts, timr@probo.com
            Providenza & Boekelheide, Inc.

            Comment

            Working...