473,734 Members | 2,647 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

pythonwin broke

I've un-installed Python 2.4, re-installed Python 2.3 and PythonWin for 2.3,
but it's still broke.

When I start PythonWin, sometimes it looks like it is going to be okay. But
as soon as I open a .py file, the interactive window grabs the focus and
will not let go. I am stumped.

Is there something PythonWin uses that I could try re-installing? WxPython
maybe?
Jul 18 '05 #1
14 2890
Jive wrote:
I've un-installed Python 2.4, re-installed Python 2.3 and PythonWin for 2.3,
but it's still broke.

When I start PythonWin, sometimes it looks like it is going to be okay. But
as soon as I open a .py file, the interactive window grabs the focus and
will not let go. I am stumped.

Is there something PythonWin uses that I could try re-installing? WxPython
maybe?

This isn't something I can ever remember happening. You might consider
asking on the python-win32 list, which is more specifically directed at
Mark Hammond's stuff.

regards
Steve
--
http://www.holdenweb.com
http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119
Jul 18 '05 #2
Jive wrote:
I've un-installed Python 2.4, re-installed Python 2.3 and PythonWin for 2.3,
but it's still broke.

When I start PythonWin, sometimes it looks like it is going to be okay. But
as soon as I open a .py file, the interactive window grabs the focus and
will not let go. I am stumped.

Is there something PythonWin uses that I could try re-installing? WxPython
maybe?

This isn't something I can ever remember happening. You might consider
asking on the python-win32 list, which is more specifically directed at
Mark Hammond's stuff.

regards
Steve
--
http://www.holdenweb.com
http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119
Jul 18 '05 #3

We just went through a similar install-uninstall-reinstall cycle with
Python 2.4 and 2.3 on Windows XP SP2. Just uninstalling 2.4 and
reinstalling 2.3 was not sufficient.

It took several attempts to get things back to the original 2.3
configuration. After unininstalling both, we deleted all Python
related entries in the Registry and in the StartUp folder. Only after
that did the reinstalled 2.3 plus extensions work fine again.

/Jean Brouwers

PS) We backed out of using Python 2.4 since two of the extensions we
need did not work with 2.4 on Windows XP.

PPS) It looks like Python 2.4 and Python 2.3 can not co-exist (in
different folders under Program Files) but we did not investigate that
any further.

In article <8u************ *********@news. easynews.com>, Jive
<so*****@micros oft.com> wrote:
I've un-installed Python 2.4, re-installed Python 2.3 and PythonWin for 2.3,
but it's still broke.

When I start PythonWin, sometimes it looks like it is going to be okay. But
as soon as I open a .py file, the interactive window grabs the focus and
will not let go. I am stumped.

Is there something PythonWin uses that I could try re-installing? WxPython
maybe?

Jul 18 '05 #4
Jean Brouwers wrote:
PPS) It looks like Python 2.4 and Python 2.3 can not co-exist (in
different folders under Program Files) but we did not investigate that
any further.


That's not true. I have every version of Python back to 2.0 installed
and all running fine on my system. Obviously you can only have one of
your Python installations first on your PATH (and hence the one that
gets run by simply typing "python"). Also, you can only have one of you
Python installations registered as the default handler for .py files
(and hence the one that gets run by simple double-clicking on a .py file
in explorer or running a Python script without the extension from the
command line).

It is also possible that there is some little installer bug or detail on
your environment that is causing the problem. You could try
ActivePython. I regularly install and uninstall ActivePython 2.3 and 2.4
installers and both installs are still working fine.

Cheers,
Trent

--
Trent Mick
tr****@activest ate.com
Jul 18 '05 #5
Trent Mick <tr****@ActiveS tate.com> writes:
It is also possible that there is some little installer bug or detail
on your environment that is causing the problem. You could try
ActivePython. I regularly install and uninstall ActivePython 2.3 and
2.4 installers and both installs are still working fine.


Just as another data point, I have all of Python 1.5.2, 2.0.1, 2.1.3,
2.2.3, 2.3.4 and 2.4 installed side by side on my Windows box, as
installed by their standard installers, without any problems. And
that includes uninstall/reinstall cycles for patch releases of
versions older than the most recent (e.g., putting on 2.2.3 after a
2.3 variant was already installed). The only real restriction is as
you noted - only one can own the file associations (or be associated
with the COM support for pywin32).

In case it matters, I do install everything as administrator for all
users and this is under 2K (my NT box has everything but 2.4).

-- David
Jul 18 '05 #6
I uninstalled Python and Pythonwin. I verified that there was nothing left
in the registry or the startup folder. I reinstalled Python using
Python-2.3.4.exe and Pythonwin using win32all-163.exe.

It's still broke.

The shortcut in the startup folder says

Target: C:\Python23\Pyt honwin.exe
Start in: C:\Python23\lib \site-packages

When I open Pythonwin that way, once I open a file from the File menu, the
menu buttons on the new window and on the main Pythonwin frame become
inoperable.

I can keep that from happening by changing the Target to
C:\Python23\lib \site-packages\python win\start_pytho nwin.pyw. (Just a wild
guess on my part.) But then there's a different problem. When I try to run
a module, I get the message,
Traceback (most recent call last):
File
"C:\PYTHON23\li b\site-packages\Python win\pywin\frame work\scriptutil s.py",
line 307, in RunScript
debugger.run(co deObject, __main__.__dict __, start_stepping= 0)
File "C:\PYTHON23\li b\site-packages\Python win\pywin\debug ger\__init__.py ",
line 60, in run
_GetCurrentDebu gger().run(cmd, globals,locals, start_stepping)
File "C:\PYTHON23\li b\site-packages\Python win\pywin\debug ger\__init__.py ",
line 35, in _GetCurrentDebu gger
_CheckNeedGUI()
File "C:\PYTHON23\li b\site-packages\Python win\pywin\debug ger\__init__.py ",
line 21, in _CheckNeedGUI
pywin.framework .app.CreateDefa ultGUI(dbgpyapp .DebuggerPython App)
File "C:\PYTHON23\li b\site-packages\Python win\pywin\frame work\app.py",
line 392, in CreateDefaultGU I
appClass().Init Instance()
File "C:\PYTHON23\li b\site-packages\Python win\pywin\debug ger\dbgpyapp.py ",
line 33, in InitInstance
win32ui.LoadStd ProfileSettings (numMRU)
win32ui: The profile settings have already been loaded.
Jul 18 '05 #7

"Steve Holden" <st***@holdenwe b.com> wrote in message
news:A6Zrd.2059 $Yp.452@lakerea d01...
. You might consider
asking on the python-win32 list, which is more specifically directed at
Mark Hammond's stuff.


Okay. How do I find the python-win32 list? It's not a newsgroup,
apparently.

Jul 18 '05 #8

"Jean Brouwers" <mr************ ********@no.spa m.net> wrote in message
news:0312200409 34408194%mr**** *************** *@no.spam.net.. .

We just went through a similar install-uninstall-reinstall cycle with
Python 2.4 and 2.3 on Windows XP SP2. Just uninstalling 2.4 and
reinstalling 2.3 was not sufficient.

It took several attempts to get things back to the original 2.3
configuration. After unininstalling both, we deleted all Python
related entries in the Registry and in the StartUp folder. Only after
that did the reinstalled 2.3 plus extensions work fine again.


I've done that, but without success. Which versions of 2.3 and Pythonwin
did you use?

Jive
Jul 18 '05 #9

Well, we made several attempts to install Python 2.4 with a number of
extension packages on Windows XP and used the binaries from the Python
site, not ActivePython.

Previous to 2.4, we did have several versions of Python installed on
Windows XP without any problem. We installed 2.4 as usual in a
separate directory under Program Files. But there were several
problems getting the 2.4 exe and IDLE started, in addition to issues
with some extensions. Plus 2.3.4 could not be started any longer.

Uninstalling 2.4 did not quite work and *may* have broken the existing
2.3.4 installation. Uninstalling and reinstalling that failed also,
until we manually cleaned up the Registry and StartUp folder.

As I mentioned, we did not investigate the 2.4 problem any further
since getting 2.3.4 back up and running was more critical than 2.4 due
to other problems with the extensions on 2.4.

Once all extensions exist for 2.4 we will try again. And maybe, we
should use the ActivePython builds then ;-)

/Jean Brouwers

PS) We had no problem with Python 2.4 or any extensions on Lunix.
Everything works fine there and all our Python code runs unmodified on
both 2.3 and 2.4 with extensions, without any failure or glitch. The
difference *may* be that we rebuild the distribution on Linux but not
on Windows.

In article <ma************ *************** ***********@pyt hon.org>, Trent
Mick <tr****@ActiveS tate.com> wrote:
Jean Brouwers wrote:
PPS) It looks like Python 2.4 and Python 2.3 can not co-exist (in
different folders under Program Files) but we did not investigate that
any further.


That's not true. I have every version of Python back to 2.0 installed
and all running fine on my system. Obviously you can only have one of
your Python installations first on your PATH (and hence the one that
gets run by simply typing "python"). Also, you can only have one of you
Python installations registered as the default handler for .py files
(and hence the one that gets run by simple double-clicking on a .py file
in explorer or running a Python script without the extension from the
command line).

It is also possible that there is some little installer bug or detail on
your environment that is causing the problem. You could try
ActivePython. I regularly install and uninstall ActivePython 2.3 and 2.4
installers and both installs are still working fine.

Cheers,
Trent

Jul 18 '05 #10

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

Similar topics

0
1239
by: stephan | last post by:
Hi, I have python 2.2.3 + pythonwin 156 on win2k. The problem is that german chars like ń÷Ř─Í▄▀ are not handled correctly. Just create a test.py file with the content ń÷Ř─Í▄▀ and edit it with pythonwin. In the editor you will see only ń÷Ř─ . I had the problem in the past, wrote it to mark and he fixed it.
7
3019
by: Martin Bless | last post by:
IMHO PythonWin is great help in developing. How can I do something like: if detect("running on PythonWin"): pass # fake arguments ... else: "proceed normal"
3
2947
by: Alberto Mantovani | last post by:
hi, how is it possible to run a python script in the pythonwin environment from dos command line? If I use the command "/run scriptname.py" and the pythonwin is already opened I get error, so someone can help me? thanks Alberto
4
2611
by: Chris P. | last post by:
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)...
2
7336
by: siggy2 | last post by:
Hi All, (sorry for my bad english) I wrote a __tiny__ and __stupid__ recursive script directly into pythonwin interactive window with a time.sleep(1) and a print before each recursion... I should have taken a closer look at the ending condition (never satisfied!), anyway I was quite confident that a control-C would have stopped the intepreter as it is (incidentally?) when this break sequence is entered
2
2467
by: accolades | last post by:
Does anyone else have a problem with Pythonwin crashing after running a python script with graphics libraries? Whenever I use Pythonwin to run a PyGame or PyOgre script, Pythonwin crashes when the script exits. I know it's probably because the Pythonwin interpreter can't read from the console once the graphics mode has been changed, but has anyone discovered a workaround? I'd like to know if this problem is specific to my machine, or if...
17
1957
by: Dave Benjamin | last post by:
Hey folks, Why is PythonWin (win32all) still a separate download from a third party? Is it legal, technical, or what? I think it's about time it be part of the standard distribution. There are many useful things that you ought to be able to do without downloading third-party libraries. Terminating a process, for example. Communicating with other applications via a standard, common protocol (COM). We demand these things from our UNIX...
3
2983
by: archaegeo | last post by:
I am getting started in Python, and I have looked on both the stackless page and python.org and cannot find the answer to what I think is a simple problem. If I start the python command line or idle, i can If I start pythonwin I get the following error ....No Module named Stackless Any help?
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
8776
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
9449
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...
1
9236
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
9182
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
8186
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
6735
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
6031
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
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2180
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.