473,396 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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_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
5 2893
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
6
by: David Stockwell | last post by:
Hi, My background is c/c++ and java. I'm learning python at this point. My question is does python share java's peculiar mode of bit shifting, or does python adhere closer to c's bit shifting?...
18
by: Mark | last post by:
Hi, It seems a lot of people are not aware that a Python Magazine exists. Visit: http://www.pyzine.com to see what we are publishing this quarter and check out our free articles to see...
3
by: Sanjay Arora | last post by:
We are looking to select the language & toolset more suitable for a project that requires getting data from several web-sites in real- time....html parsing/scraping. It would require full emulation...
53
by: Michael Tobis | last post by:
Someone asked me to write a brief essay regarding the value-add proposition for Python in the Fortran community. Slightly modified to remove a few climatology-related specifics, here it is. I...
90
by: John Salerno | last post by:
I'm a little confused. Why doesn't s evaluate to True in the first part, but it does in the second? Is the first statement something different? False print 'hi' hi Thanks.
4
by: cjl | last post by:
As a learning exercise, I am trying to write a web-based version of 'drawbot' in PHP. See: http://just.letterror.com/ltrwiki/DrawBot I am interested in hearing ideas about how to approach...
13
by: 7stud | last post by:
test1.py: -------------------- import shelve s = shelve.open("/Users/me/2testing/dir1/aaa.txt") s = "red" s.close() --------output:------ $ python test1.py
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.