Question: what to do, my Python is getting crazy

P

Pekeika

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_servers.py", line 21, in <module>
File "C:\Python25\lib\site-packages\pythoncom.py", line 3, in
<module>
pywintypes.__import_pywin32_system_module__("pythoncom", globals
())
File "C:\Python25\lib\site-packages\win32\lib\pywintypes.py", line
98, in __import_pywin32_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.
 
G

Gabriel Genellina

En Fri, 14 Nov 2008 18:21:17 -0200, Pekeika
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_servers.py", line 21, in <module>
File "C:\Python25\lib\site-packages\pythoncom.py", line 3, in
<module>
pywintypes.__import_pywin32_system_module__("pythoncom", globals
())
File "C:\Python25\lib\site-packages\win32\lib\pywintypes.py", line
98, in __import_pywin32_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 <enter> at 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.
 
P

Pekeika

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...
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.
 
P

Pekeika

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. File "boot_com_servers.py", line 21, in <module>
File "C:\Python25\lib\site-packages\pythoncom.py", line 3, in
<module>
pywintypes.__import_pywin32_system_module__("pythoncom", globals
())
File "C:\Python25\lib\site-packages\win32\lib\pywintypes.py", line
98, in __import_pywin32_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.
 
G

Gabriel Genellina

En Mon, 17 Nov 2008 12:56:07 -0200, Pekeika
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.File "boot_com_servers.py", line 21, in <module>
File "C:\Python25\lib\site-packages\pythoncom.py", line 3, in
<module>
pywintypes.__import_pywin32_system_module__("pythoncom", globals
())
File "C:\Python25\lib\site-packages\win32\lib\pywintypes.py", line
98, in __import_pywin32_system_module__
('.dll', 'rb', imp.C_EXTENSION))
ImportError: DLL load failed: The specified procedure could not be
found.

That reference to boot_com_servers.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...
 
T

Tim Roberts

Pekeika said:
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.File "boot_com_servers.py", line 21, in <module>
File "C:\Python25\lib\site-packages\pythoncom.py", line 3, in
<module>
pywintypes.__import_pywin32_system_module__("pythoncom", globals
())
File "C:\Python25\lib\site-packages\win32\lib\pywintypes.py", line
98, in __import_pywin32_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.dll" 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top