By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,987 Members | 997 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,987 IT Pros & Developers. It's quick & easy.

Question: what to do, my Python is getting crazy

P: n/a
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__("pytho ncom", 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.
Nov 14 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
En Fri, 14 Nov 2008 18:21:17 -0200, Pekeika
<m.*****************@umiami.eduescribió:
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__("pytho ncom", 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 <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

Nov 15 '08 #2

P: n/a
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.
Nov 17 '08 #3

P: n/a
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_servers.py", line 21, in <module>
File "C:\Python25\lib\site-packages\pythoncom.py", line 3, in
<module>
pywintypes.__import_pywin32_system_module__("pytho ncom", 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.
Nov 17 '08 #4

P: n/a
En Mon, 17 Nov 2008 12:56:07 -0200, Pekeika
<m.*****************@umiami.eduescribió:
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_servers.py", line 21, in <module>
File "C:\Python25\lib\site-packages\pythoncom.py", line 3, in
<module>
pywintypes.__import_pywin32_system_module__("pytho ncom", 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...

--
Gabriel Genellina

Nov 17 '08 #5

P: n/a
Pekeika <m.*****************@umiami.eduwrote:
>
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_servers.py", line 21, in <module>
File "C:\Python25\lib\site-packages\pythoncom.py", line 3, in
<module>
pywintypes.__import_pywin32_system_module__("pytho ncom", 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.
--
Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Nov 18 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.