473,772 Members | 3,731 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

getting errors in import (win32com)

14 New Member
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 2942
bartonc
6,596 Recognized Expert Expert
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
learnerofpython
14 New Member
Thanks bartonc
i installed a patch of pywin32 module.it now works
Nov 9 '06 #3
bartonc
6,596 Recognized Expert Expert
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
reginpc
2 New Member
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\Li b\site-packages\win32c om\__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
1856
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>> when running
4
1670
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
2770
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 found, through google, only work on newer xp and nt versions of windows. This is the current attempt to get the process list on windows 98: def GetProcessNameList(): from win32com.client import GetObject WMI = GetObject('winmgmts:')
1
1563
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 want to know. I already tried import win32com.client mb = win32com.client.Dispatch('MOZILLACONTROLLib.Application') Thanks. (using Python 2.4 on Windows)
3
5856
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
15054
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 have been unable to find any other information on how to get started. I've used the COM interface before in integrating Excel and a couple of other things. So I am familiar with how that works. But there are at least 40 options dealing with Crystal...
0
1124
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
7738
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 enabled me to the contacts at least list. I had to root around to discover CdoDefaultFolderContacts (though it was guessable; how could I enumerate win32com.client.constants?). I now want to work through the Contacts in Outlook patching in...
5
5804
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
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10104
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9912
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8934
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.