473,739 Members | 11,596 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python COM Makepy Excel 9.0 error

Has anyone seen this? When I run the COM Makepy utility and choose
Microsoft Excel 9.0 Object Library (1.3), I get an application error
message:

PythonWin: Pythonwin.exe - Application Error
The instruction at "0x77fcc87" referenced memory at "0x0307a705 ". The
memory could not be "read".

I do not get this error when I choose the Microsoft Office 9.0 Object
Library (2.1).

I have tried this from one other computer and got a similar error
message. I looked all over the 'net for enlightenment and have so far
been unsuccessful. Does anyone have an idea what can be going on and
how to get around it?

I am using Python 2.4 under Windows 2000SP4. I have also installed
pywin32 (build 203 for Python 2.4) and py2exe-0.5.4 for Python 2.4.

Python 2.3 and the COM Makepy utility (Python 2.3 version) seems to run
okay.

I am writing a rather complicated set of instructions to manipulate a
series of Excel 2000 spreadsheets and have already added quite a few of
the features from Python 2.4, so I hope I do not have to revert back to
Python 2.3. Any suggestions?

Thank you, in advance,
Christopher D. Morgan, P.E., Ph.D.

Jul 18 '05 #1
2 2182
nv*****@gmail.c om wrote:
Has anyone seen this? When I run the COM Makepy utility and choose
Microsoft Excel 9.0 Object Library (1.3), I get an application error
message:

PythonWin: Pythonwin.exe - Application Error
The instruction at "0x77fcc87" referenced memory at "0x0307a705 ". The
memory could not be "read".

I do not get this error when I choose the Microsoft Office 9.0 Object
Library (2.1).

I have tried this from one other computer and got a similar error
message. I looked all over the 'net for enlightenment and have so far
been unsuccessful. Does anyone have an idea what can be going on and
how to get around it?

I am using Python 2.4 under Windows 2000SP4. I have also installed
pywin32 (build 203 for Python 2.4) and py2exe-0.5.4 for Python 2.4.

Python 2.3 and the COM Makepy utility (Python 2.3 version) seems to run
okay.

I am writing a rather complicated set of instructions to manipulate a
series of Excel 2000 spreadsheets and have already added quite a few of
the features from Python 2.4, so I hope I do not have to revert back to
Python 2.3. Any suggestions?

Thank you, in advance,
Christopher D. Morgan, P.E., Ph.D.

I experienced similar problems when moving some code from Python 2.3 to
Python 2.4. Seems that running "makepy -d ..." works. See Mark
Hammond's explanation at:

http://mail.python.org/pipermail/pyt...er/002743.html
[python-win32] WMI scripting makepy error with ActivePython 2.4.0

HTH,
Jim Sizelove
Jul 18 '05 #2
Thank you! That did the trick.

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
35559
by: Allison Bailey | last post by:
Hi Folks, I'm a brand new Python programmer, so please point me in the right direction if this is not the best forum for this question.... I would like to open an existing MS Excel spreadsheet and extract information from specific worksheets and cells. I'm not really sure how to get started with this process. I ran the COM Makepy utility from my PythonWin (IDE from ActiveSTate),
5
2545
by: Reinhard Koenig | last post by:
Hello, I' m using Python 2.3, win32all-157 under W2K. I've applied the makepy utility for the Word 8.0 object library. I now receive: Python 2.3.1 (#47, Sep 23 2003, 23:47:32) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import win32com.client >>> win32com.client.Dispatch("Word.Application")
3
3006
by: Annie | last post by:
I am trying to call a COM object which expects a variant datatype to be passed in to the COM API object. However, I get "<COMObject <unknown>>" and the program fails. Below is my code in Python, and the same code in VB which is working fine... I guess this is a variant problem with python? How can I make this work? Would appreciate if someone can guide me as I am a python newbie... :-)
2
4039
by: Svenn-Ivar Svendsen | last post by:
Hi, I use the makepy tool in pythonwin to generate wrappers for my connection point (event) interfaces in a project. It works fine. The question is; Is it possible, in a python script, to detect if wrappers for COM (event) interfaces the script uses have been created, and in case not somehow call the makepy tool manually before proceeding? How should this be done? Best regards, Svenn-Ivar
0
1747
by: Puneet Jain | last post by:
I am tryin to use Microsoft Works Wordprocessor from Python After generating the .py module from the type library using makepy utility, I runt he following commands, >>> from win32com.client import Dispatch >>> object = Dispatch("MicrosoftWorks.WordProcessor.AppControl") and I get the following error, Traceback (most recent call last):
1
1689
by: Matthew | last post by:
Hi: I recently installed Python 2.4 and the Win 32 extensions on Windows XP. I had some problems with the COM makepy utility for the Excel COM libraries. I reported this problem to the sourceforge bug tracker. My question is , is python 2.3 and the win32 extensions more stable than Python 2.4?
3
1812
by: Mudcat | last post by:
Howdy, I could have sworn I downloaded a version of python win that supported object library 11.0 at some point. However I just downloaded versions 204 and 203, and the highest version they have is OL 9.0. Does anyone know if this is a mistake or if Excel 2003 isn't yet supported with the extensions? Thanks,
3
4007
by: dan_roman | last post by:
Hi, I developed a script with a nice interface in Tkinter that allows me to edit some formulas and to generate an Excel worksheet with VBA macros within it. The script runs perfectlly in Office 2000, but in Office 2003 crash at line: "wbc = workbook.VBProject.VBComponents.Add(1)" Please help me :-( the code of the module that crash is (only in Excel 2003, in 2000 not): import os
4
3465
by: suzhi18 | last post by:
Hallo, I've a problem getting makepy running. When I start the tool on my machine with doubleclick everything is fine. But when I try this in my Code: makepy.py -i "Microsoft Excel 11.0 Object Library(1.5)" I am getting an Syntax Error and command:
0
9337
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
9266
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
9209
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
8215
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
6754
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
6054
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4570
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...
1
3280
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2193
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.