RE: Exception handling

2001-06-27 Thread Mark Hammond
> except win32serviceutil.error: > print "Service already running!" use win32service.error here. You will need to import win32service first. Mark. ___ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/lis

RE: Active X Python kills IIS!?!

2001-06-27 Thread Jürgen Pfeifer
Title: Nachricht Maybe you should configure your ASP application not to run integrated with IIS (that means running in the same address space). If in the same address space the app goes wild it might hurt also the server code. On IIS 4 this costs some performance, because of out-of-pr

RE: Exception handling

2001-06-27 Thread Robin Siebler
Ok, that worked. Thanks! I've played around with the first example, but I still can't get it to work. Here is my code snippet and the error message: import win32serviceutil def start_service(service, machine): """Start a service""" try: win32serviceutil.StartService(service, m

RE: PythonWin problems

2001-06-27 Thread Robin Siebler
-Original Message- From: Mark Hammond [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 3:55 PM To: Robin Siebler; [EMAIL PROTECTED] Subject: RE: PythonWin problems > 1. Pressing Ctrl+Shift+C does not check the syntax but File|Check does. >>If you have the interactive window do

RE: Exception handling

2001-06-27 Thread Mark Hammond
> def execute(testpath): > > try: > win32file.CopyFile(os.path.join(testpath, 'test.log'), > os.path.join('d:\\', 'iTest', 'iDir Simple Test', 'OutputData', > 'test.log'), > 1) > except: > return 0 #File already exists! This works for me. >>> try: ... win32file.CopyF

RE: PythonWin problems

2001-06-27 Thread Mark Hammond
> 1. Pressing Ctrl+Shift+C does not check the syntax but File|Check does. If you have the interactive window docked and with focus, it will not work. Apart from that, it works for me. > 2. PythonWin does not 'remember' that I maximized it and all of the MDI > windows the last time (and everyti

RE: Exception handling

2001-06-27 Thread Robin Siebler
I tried that, but I still get an error. Here is another example: def execute(testpath): try: win32file.CopyFile(os.path.join(testpath, 'test.log'), os.path.join('d:\\', 'iTest', 'iDir Simple Test', 'OutputData', 'test.log'), 1) except: return 0 #File already exists!

PythonWin problems

2001-06-27 Thread Robin Siebler
I am having the following problems with PythonWin on Win2k and NT4. Please let me know if these are know issues, if there are workarounds, or if I am posting to the wrong place. 1. Pressing Ctrl+Shift+C does not check the syntax but File|Check does. 2. PythonWin does not 'remember' that I maxi

Active X Python kills IIS!?!

2001-06-27 Thread Griffiths, Jeff
Title: Active X Python kills IIS!?! hi all I installed python on a couple of development web servers a while ago and started fooling around with using python in ASP this morning when I cam in, both servers were failing to process ASP scripts written in either python OR VBScript, a

Re: PPM Hangup

2001-06-27 Thread Dan Milgram
On Wed, 27 Jun 2001, Montagne, Michael wrote: > I've got Mandrake 8.0 and ActivePython installed beautifully. But when I > run "python pyppm" to install "egenix-mx-base" the install hangs at the > prompt "installing egenix-mx-base". Perhaps I'm doing something wrong since > i don't see any oth

PPM Hangup

2001-06-27 Thread Montagne, Michael
I've got Mandrake 8.0 and ActivePython installed beautifully. But when I run "python pyppm" to install "egenix-mx-base" the install hangs at the prompt "installing egenix-mx-base". Perhaps I'm doing something wrong since i don't see any other references to this. What is the proper way to insta

RE: getpass.getpass not working under Windows

2001-06-27 Thread Mark Hammond
> On my machine if I type the following two lines at interactive > prompt, PythonWin > locks up and must be terminated. When I run from DOS prompt it > works properly. > Is it just my machine or does it act this way for others? Without even trying it, I can guarantee is locks up for everyone :(

getpass.getpass not working under Windows

2001-06-27 Thread Larry Bates
On my machine if I type the following two lines at interactive prompt, PythonWin locks up and must be terminated. When I run from DOS prompt it works properly. Is it just my machine or does it act this way for others? >>> import getpass >>> pw=getpass.getpass("Input Password? ") -Larry __