473,835 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

win32com and Python2.4: Interpreter crashing!

Hi,

When trying to use win32com functionality with Python2.4, the
interpreter often crashes!

I don't know if it's a known problem already that will be fixed in an
upcoming Python2.4.1 version.

Basically, the problem is:
makepy.py generates a (large, nearly 2mb) Python file for use with COM
interfaces of an MS Excel. Generating the file seems to work fine.
However, when trying to import this file, the interpreter crashes
trying to compile it into a .pyc file.

The same file gives no such problems with Python 2.3.5.

I first just used makepy.py with Python2.4, but it crashed after
generating a large Python file.

Then I created the file using python2.3.5, and copied it to my
python2.4 installation, and that crashes python2.4 when importing it.
So as I said before: is this a known problem already fixed for the next
release, or should I collect crash-information for this problem?
cheers,

--Tim

Jul 18 '05 #1
1 1632
There's a bug in the tokenizer that's triggered by the long
lines generated by makepy. See
http://sourceforge.net/tracker/index...18&atid=551954
and
www.python.org/sf/1089395

Roger
"Tim N. van der Leeuw" <ti************ *@nl.unisys.com > wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.com.. .
Hi,

When trying to use win32com functionality with Python2.4, the
interpreter often crashes!

I don't know if it's a known problem already that will be fixed in an
upcoming Python2.4.1 version.

Basically, the problem is:
makepy.py generates a (large, nearly 2mb) Python file for use with COM
interfaces of an MS Excel. Generating the file seems to work fine.
However, when trying to import this file, the interpreter crashes
trying to compile it into a .pyc file.

The same file gives no such problems with Python 2.3.5.

I first just used makepy.py with Python2.4, but it crashed after
generating a large Python file.

Then I created the file using python2.3.5, and copied it to my
python2.4 installation, and that crashes python2.4 when importing it.
So as I said before: is this a known problem already fixed for the next
release, or should I collect crash-information for this problem?
cheers,

--Tim



----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Jul 18 '05 #2

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

Similar topics

0
1803
by: Xavier | last post by:
Greetings, While messing around with the "dl" module I ran into a segfault. *DO NOTE THAT THE FOLLOWING OCCURED ON 2 OF MY LINUX WORKSTATIONS* ------ # python -c 'import dl; a=dl.open("libc.so.6"); print a.call("getenv")' or while in the interpreter:
3
7037
by: RJ | last post by:
Hi, I've been going over the Quick Start to Client side COM and Python and many other sources, but cannot find an example that will get my com/ActiveX .ocx USB device driver imported. The Excel and Word examples run fine. win32com.client.Dispatch("Excel.Application") etc., but how does one know the ("<foo>.<bar>") to type in? Excel looks only vaguely like "Excel.Application" in the com browser.
0
1365
by: neblackcat | last post by:
This is a heads-up on a possible memory corruption type of bug in recent and present versions of Python/win32com. I dont know if its general, or specific to using win32com.client to access CDO as my example does. My script was tiny - it just opens a MAPI/CDO session and traverses the email folders - but it keeps crashing Python at random places. After 2 days of trying everything without success, I've finally discovered that it depends...
1
1625
by: Leeuw van der, Tim | last post by:
Hi, I'm using the following combination of software: - Pydev Eclipse plugin (pydev 0.8.5) - eclipse 3.0.1 - windows XP SP1 - pygtk 2.4.1 - GTK 2.6.1 (for windows32 native) When trying to get a list of possible completions for the 'gtk' import object, the python interpreter crashes. Happens with all versions listed in the subject: python 2.3.4, 2.3.5rc1, 2.4.0.
1
9183
by: g.franzkowiak | last post by:
I'm trying to use a proprietary windows software with COM and win32com. The result is everytime the error message com_error: (-2147418113, 'Catastrophic failure', None, None) I've read this in some e-mails, but can't find the solution and I have not enough experience with Windows and COM. Can anybody help ?
1
1997
by: liam_herron | last post by:
I have compiled my boost-enabled C++ module and have it working when I explicity set my LD_LIBRARY_PATH before invoking the python2.4 interpreter. Now I don't want everyone to have to set this environment variable so I would like to devise a way that the module can load itself. My attempt was to create a module folder with the following __init__.py: -=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= import...
10
2194
by: Janto Dreijer | last post by:
I have been having problems with the Python 2.4 and 2.5 interpreters on both Linux and Windows crashing on me. Unfortunately it's rather complex code and difficult to pin down the source. So I've been trying to reduce the code. In the process it's started to crash in different ways. I'm not sure if any of it is related. The following is only crashing Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) on win32 in two different(?) ways.
1
1703
by: hanke | last post by:
Hello, please, when I try to run my code under python2.4-dbg from Ubuntu, the interpreter complains that the Py_InitModule4 symbol is undefined in a C module I'm using (PyOpenAL): ImportError: /var/lib/python-support/python2.4/_openal.so: undefined symbol: Py_InitModule4 Google reveals that this problem is not specific just to PyOpenAL,
5
5813
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
9803
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9652
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
10523
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
10560
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
9345
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...
0
5636
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...
0
5804
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4434
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
2
3993
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.