473,763 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PythonWin (build 203) for Python 2.3 causes Windows 2000 to grind to a halt?

I've been having a problem with PythonWin that seemed to start
completely spontaneously and I don't even know where to START to find
the answer. The only thing I can think of that marks the point
between "PythonWin works fine" and "PythonWin hardly every works fine"
was that I changed the size of my Virtual Paging file, noticing that
it was too small (I currently have a P4 with 1G of RAM). I tried
returning it to its original (smaller) size, but it didn't fix the
problems.

The first time I noticed it, I was using PythonWin and then
right-clicked on My Computer to use "Explore". Instead of the usual
full listing (approx 10 items), I got a mini-listing of 4 items.
Then, after clicking "Explore", I either don't get a new window at all
OR I get a strange file explorer that won't let me look at files,
won't let me copy files, etc. The "mini-lising" thing also happens if
I click the "Start" button while PythonWin is open.

Another problem is trying to open another program while PythonWin is
running - generally, the program will not start, but I also don't get
any kind of error popping up on the screen. My request is just
ignored (although I sometimes get a "system beep".) If I already have
other programs open and then open PythonWin, my menu bar might refuse
to function. Is it significant that, when the menu bar IS working,
the drop-down menu fades in quite slowly, instead of popping up
immediately?

At the end of this message, I've pasted a screen dump of a message I
get when I try to open a file and I've got other apps open (note that
I can have very few, non-memory intensive apps open and I still get
it).

Thanks for any help you can give,

- Chris

[SCREEN DUMP AFTER I TRY TO OPEN A .PY FILE]
File "C:\Python23\Li b\site-packages\python win\pywin\mfc\d ocview.py",
line 91, in CreateNewFrame
wnd.LoadFrame(s elf.GetResource ID(), -1, None, context) # triggers
OnCreateClient. ..
win32ui: LoadFrame failed

win32ui: CreateNewFrame( ) virtual handler (<bound method
SyntEditTemplat e.CreateNewFram e of
<pywin.framewor k.editor.color. coloreditor.Syn tEditTemplate instance at
0x01193F30>>) raised an exception
TypeError: PyCTemplate::Cr eateNewFrame must return a PyCFrameWnd
object.
Jul 18 '05 #1
4 2612
These look like symptoms of sf bug #1017504
http://sourceforge.net/tracker/index...18&atid=551954

What version of Pywin32 are you running ?
There's a (semi) fix for this in the latest build.
hth
Roger
"Chris P." <ch************ **@utoronto.ca> wrote in message
news:3f******** *************** ***@posting.goo gle.com...
I've been having a problem with PythonWin that seemed to start
completely spontaneously and I don't even know where to START to find
the answer. The only thing I can think of that marks the point
between "PythonWin works fine" and "PythonWin hardly every works fine"
was that I changed the size of my Virtual Paging file, noticing that
it was too small (I currently have a P4 with 1G of RAM). I tried
returning it to its original (smaller) size, but it didn't fix the
problems.

The first time I noticed it, I was using PythonWin and then
right-clicked on My Computer to use "Explore". Instead of the usual
full listing (approx 10 items), I got a mini-listing of 4 items.
Then, after clicking "Explore", I either don't get a new window at all
OR I get a strange file explorer that won't let me look at files,
won't let me copy files, etc. The "mini-lising" thing also happens if
I click the "Start" button while PythonWin is open.

Another problem is trying to open another program while PythonWin is
running - generally, the program will not start, but I also don't get
any kind of error popping up on the screen. My request is just
ignored (although I sometimes get a "system beep".) If I already have
other programs open and then open PythonWin, my menu bar might refuse
to function. Is it significant that, when the menu bar IS working,
the drop-down menu fades in quite slowly, instead of popping up
immediately?

At the end of this message, I've pasted a screen dump of a message I
get when I try to open a file and I've got other apps open (note that
I can have very few, non-memory intensive apps open and I still get
it).

Thanks for any help you can give,

- Chris

[SCREEN DUMP AFTER I TRY TO OPEN A .PY FILE]
File "C:\Python23\Li b\site-packages\python win\pywin\mfc\d ocview.py",
line 91, in CreateNewFrame
wnd.LoadFrame(s elf.GetResource ID(), -1, None, context) # triggers
OnCreateClient. ..
win32ui: LoadFrame failed

win32ui: CreateNewFrame( ) virtual handler (<bound method
SyntEditTemplat e.CreateNewFram e of
<pywin.framewor k.editor.color. coloreditor.Syn tEditTemplate instance at
0x01193F30>>) raised an exception
TypeError: PyCTemplate::Cr eateNewFrame must return a PyCFrameWnd
object.



----== 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
AWESOME - my life just got THAT much better.

The bug you suggested is exactly the problem that I was having... I
had looked through the bugs being tracked, but the title of that one
didn't jump out at me as something that would help. Thanks!

- Chris

P.S. For anyone reading this group who wants to know exactly what I
did:
1) Uninstall Pywin32
2) Open the registry editor ('regedit' at the command prompt)
3) Go to HKEY_CURRENT_US ER\Software\Pyt hon[version]\Python for Win32
You will likely find many many many keys that have the format
"ToolbarDef ault-Bar#". These keys filling up your registry cause
Windows 2000 to become extremely slow/unstable when Python is running
(especially if your debugger is running.)
4) Delete the keys... I just deleted it at the "Python[version]" root
5) Reinstall Pywin32

"Roger Upole" <ru****@hotmail .com> wrote in message news:<41******* ***@127.0.0.1>. ..
These look like symptoms of sf bug #1017504
http://sourceforge.net/tracker/index...18&atid=551954

What version of Pywin32 are you running ?
There's a (semi) fix for this in the latest build.
hth
Roger

Jul 18 '05 #3
Chris P. wrote:
AWESOME - my life just got THAT much better.

The bug you suggested is exactly the problem that I was having... I
had looked through the bugs being tracked, but the title of that one
didn't jump out at me as something that would help. Thanks!

- Chris

P.S. For anyone reading this group who wants to know exactly what I
did:
1) Uninstall Pywin32
2) Open the registry editor ('regedit' at the command prompt)
3) Go to HKEY_CURRENT_US ER\Software\Pyt hon[version]\Python for Win32
You will likely find many many many keys that have the format
"ToolbarDef ault-Bar#". These keys filling up your registry cause
Windows 2000 to become extremely slow/unstable when Python is running
(especially if your debugger is running.)
4) Delete the keys... I just deleted it at the "Python[version]" root
5) Reinstall Pywin32
This is a great workaround but I've found that, with build 203, it needs
to be repeated from time to time.

Colin W.

"Roger Upole" <ru****@hotmail .com> wrote in message news:<41******* ***@127.0.0.1>. ..
These look like symptoms of sf bug #1017504
http://sourceforge.net/tracker/index...18&atid=551954

What version of Pywin32 are you running ?
There's a (semi) fix for this in the latest build.
hth
Roger

Jul 18 '05 #4
[ch************* *@utoronto.ca (Chris P.)]
The bug you suggested is exactly the problem that I was having... I
had looked through the bugs being tracked, but the title of that one
didn't jump out at me as something that would help. Thanks!


Yes, using Python24 and the latest win32 build on my machine the bug
still exists. PythonWin works fine if you don't use the debugger.

But since the debugger is the most valuable feature for me I sadly had
to stop using PythonWin. For a while I found some help by running the
script below every now and then. It deletes the erroneous registry
entries. But currently the bugs are stronger.

Here's my solution: I spent some money and switched to "WingIde" from
wingware.com. Wow, it's breathtaking and worth each penny. Don't
compare WingIde with other editors. WingIde really plays in the IDE
(integrated development environment) league. And it's very Python
aware and knowledgable ...

mb - Martin Bless
Here's my script to delete the erroneous debugger entries:

Script "delete-debugger-entries,pywin,p ython24.py"

#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-

"""Delete problematic registry entries in 'Python for Win32'.

Martin Bless, mb, 2004-09-24, 2005-01-05
No warrenties whatsoever. Use at your own risk.
"""

import win32api
import win32con

subKey = r'Software\Pyth on 2.4\Python for Win32'
subKey = r'Software\Pyth on 2.4\Python for Win32'

if 1:
#HKEY_CURRENT_U SER\Software\Py thon 2.4\Python for
Win32\ToolbarDe bugging-Bar0
k =
win32api.RegOpe nKeyEx(win32con .HKEY_CURRENT_U SER,subKey,0,wi n32con.KEY_ALL_ ACCESS)
nsubkeys,nvalue s,timeval = win32api.RegQue ryInfoKey(k)
keys = []
for i in range(nsubkeys) :
s = win32api.RegEnu mKey(k,i)
if (s.startswith(' ToolbarDefault-Bar') or
s.startswith('T oolbarDebugging-Bar')):
keys.append(s)
for i,key in enumerate(keys) :
subKey2 = subKey + '\\' + key
print i,':', subKey2
win32api.RegDel eteKey(win32con .HKEY_CURRENT_U SER,subKey2)
if i>99999:
break
k.Close()
print len(keys),"dele ted."

Jul 18 '05 #5

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

Similar topics

6
2250
by: Anders Eriksson | last post by:
Hello! I'm using ActivePython 2.3.2 build 232 on Windows 2000 and I have noticed a strange behavior in PythonWin IDE (win32all build 163) I'm from Sweden and we have a couple of letters in our alphabet that isn't part of ASCII and the strangeness is about one of them When I use the letter å (&aring;) then the next character is eaten! Then when I enter the next character (the second after å) the last one appears.
4
2440
by: Colin J. Williams | last post by:
PythonWin has been my favourite IDE for quite a while. When one right clicks on a .py file in the Windows Explorer, among the options are Open and Edit. The former is the default and executes Python, with the selected script. The latter activates the PythonWin editor, with the selected script. Since, most frequently, I wish to edit the script, or execute it with the debugger, I tried changing the default to Edit, using the Edit File...
3
2757
by: Nicolas Lehuen | last post by:
Hi, Is it me, or does anyone else get significantly better pystone results under Cygwin versus the standard Win32 build ? CYGWIN 1.5.6 + python 2.3.3-1 : $ time python /usr/lib/python2.3/hotshot/stones.py Pystone(1.1) time for 50000 passes = 2.344 This machine benchmarks at 21331.1 pystones/second 850004 function calls in 4.371 CPU seconds
3
3346
by: tkpmep | last post by:
I have a Python program that collects user input using msg = "Enter the full path and name of the file to be processed: " answer = raw_input(msg) If I run it in IDLE, the question is splashed across the execution window, and if it is long, simply wraps to the next line. Most importantly, it is intelligible, because I see the entire message. I enter my answer on the next line, and once again, I can see the entire path and file name,...
3
5057
by: musosdev | last post by:
Hi guys Okay, I've setup my projects to open and compile fine in VS2005 using FPSE and remote web, but it's *really* slow. So I thought I'd have a go at doing it the normal way, by loading from the network share. It loads in VS2005 fine, and I can edit and save code changes etc, but when I try and Build the solution, I get the following error... An error occured loading a configuration file: Failed to start monitoring
2
2327
by: robert | last post by:
There is a strange freeze/crash only on dual core machines: I have a python app (Python 2.3.5 /Pythonwin build 203 / Windows) running with no stability problems on normal machines (Or a crash is so rare, that absolutely nobody obverses it, though the overall majority of users uses single core machines). Threads, network & pythonwin/win32ui all in use. Yet, from 3 users, _all_ using a Dual Processor System (XEON, amd x2 3800+)...
4
4004
by: steveandleyla | last post by:
I downloaded Python 5.1 for windows so I could run a program. I have to do the following: In PythonWin, select Tools | COM MakePy utility | Microsoft Speech Object Library 5.1). I can't find PythonWin .. Does anybody know what this is. I have the Python shell gui but no "PythonWin".
3
1253
by: Hutch | last post by:
PythonWin has been a very good ide from early version thru 2.4. All work ok on THREE of my computers with THREE different HP printers. Now comes 2.5. Every thing seems to work the same except when I want to print out a copy of the source code of my project (about 38 pages) Version 2.5 acts like it is going to print out the source code but instead prints from several 100 to over 2000 BLANK PAGES pages and no source.
4
3613
by: sterling | last post by:
I'm curious as to why the difference between IDLE and pythonWin when using win32com. opening an excel file, i've attempted to grab the chart information out of the file. commands like co = ChartObjects(1) works in pythonWin but doesn't work in IDLE. however, on both co = chartobjects(1) works just fine.
0
9386
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
10145
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9998
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...
0
9822
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
8822
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
7366
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
6642
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
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2793
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.