473,322 Members | 1,562 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,322 software developers and data experts.

getting errors in import (win32com)

I am new to python
whenever i import win32com.client i get the following error message:


RuntimeWarning: Python C API version mismatch for module win32api: This Python has API version ...

how to decide which build (e.g. 201/202/203/...) of win32com.client has to be install
Nov 9 '06 #1
4 2925
bartonc
6,596 Expert 4TB
I am new to python
whenever i import win32com.client i get the following error message:


RuntimeWarning: Python C API version mismatch for module win32api: This Python has API version ...

how to decide which build (e.g. 201/202/203/...) of win32com.client has to be install
I've got
Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32
and
Expand|Select|Wrap|Line Numbers
  1. import win32com.client 
  2.  
works. I believe that any complete install will update import win32com.client. I can also try 2.5 if that's where you are having trouble.
Nov 9 '06 #2
Thanks bartonc
i installed a patch of pywin32 module.it now works
Nov 9 '06 #3
bartonc
6,596 Expert 4TB
Thanks bartonc
i installed a patch of pywin32 module.it now works
Any time! Can you tell us where you found the patch and what version it is for?
Nov 9 '06 #4
Hi,
Please anyone say how to find win32api.py file and where its present??

i am Getting the below error...

from win32com.shell import shell
File "C:\Python25\Lib\site-packages\win32com\__init__.py", line 5, in <module>
import win32api, sys, os
ImportError: No module named win32api
Nov 30 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Michael P. Nugent | last post by:
How do I get the underlying values from Win::OLE=Hash(0x...) type objects? I can do it in Perl, but not in Python. For instance, I get CN=Fred <COMObject <unknown>> <COMObject <unknown>> ...
4
by: Achim Domma (Procoders) | last post by:
Hi, in my __init__.py of module A.B if have something like: from win32com.client import Dispatch obj=Dispatch('...') VERSION=tuple() del obj Now I should be able to write:
3
by: Ron | last post by:
I've written a screen saver which opens multiple copies on windows 98. I'm trying to check the process list to determine if it is already running. So far all the example win32 routines I've...
1
by: joe_public34 | last post by:
How can I use Python to get the HTML source for a webpage that is already loaded into Firefox? So far, all I've seen is reference to building Mozilla and XPCOM, but if there's any other way, I...
3
by: muttu2244 | last post by:
Hi all Am trying to read an html page using win32com in the following way. from win32com.client import Dispatch ie = Dispatch("InternetExplorer.Application")
3
by: Mudcat | last post by:
I am not that familiar with Crystal Reports, but having read some other posts I know that the way to integrate the API with Python is through the COM interface provide by win32all. However, I...
0
by: Ramdas | last post by:
How do I trap errors from win32com.client. I have tried the com_error classes from pywintypes and pythoncom sub modules. It is not catching for all cases. Is there any docs available?
11
by: Bill Davy | last post by:
I am trying to edit Contacts in Outlook. This is so I can transfer numbers from my address book which is an Excel spreadsheet to my mobile phone. I came across the following snippet of code which...
5
by: bill | last post by:
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?
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.