[python-win32] pywintypes.com_error using Python 3.0 Boolean type calling Photoshop API

2009-12-22 Thread Sunny Carter
Hi all, I am writing a Python script to call across to Adobe Photoshop, to automate some image manipulation. (For historical reasons I'm writing using Python rather than javascript or VB) My problem is that my script works fine using Python 2.6, but fails after upgrading to Python 3.0 or 3.1.

Re: [python-win32] Invalid method parameters with UnjoinDomainOrWorkgroup

2009-12-22 Thread Gowtham
Hi Tim, Inline- On Tue, Dec 22, 2009 at 2:42 PM, Tim Roberts wrote: > Gowtham wrote: > > I am trying to unjoin a machine from the domain and attempted with the > > following code > > > > > > import wmi > > wm = wmi.WMI() > > wm.Win32_ComputerSystem.UnjoinDomainOrWorkgroup(2, 'ADMINPASSWORD', >

Re: [python-win32] Invalid method parameters with UnjoinDomainOrWorkgroup

2009-12-22 Thread Tim Roberts
Gowtham wrote: > I am trying to unjoin a machine from the domain and attempted with the > following code > > > import wmi > wm = wmi.WMI() > wm.Win32_ComputerSystem.UnjoinDomainOrWorkgroup(2, 'ADMINPASSWORD', > 'DOMAIN\ADMINUSER') > > Traceback (most recent call last): > File "", line 1, in ? >

[python-win32] Invalid method parameters with UnjoinDomainOrWorkgroup

2009-12-22 Thread Gowtham
I am trying to unjoin a machine from the domain and attempted with the following code import wmi wm = wmi.WMI() wm.Win32_ComputerSystem.UnjoinDomainOrWorkgroup(2, 'ADMINPASSWORD', 'DOMAIN\ADMINUSER') Traceback (most recent call last): File "", line 1, in ? File "C:\Python24\Lib\site-packages

Re: [python-win32] Setting a netboot within windows OS

2009-12-22 Thread Gowtham
I will look if Lenovo Thinkpad provides any control to modify the BIOS parameters. Thank you all for your inputs :) On Tue, Dec 22, 2009 at 3:37 AM, Tim Golden wrote: > Vernon Cole wrote: > >> Gowtham: >> I waited before giving this answer, to let the real Windows Gurus answer >> first. Tims

[python-win32] pywintypes.com_error using Python 3.0 Boolean type calling Photoshop API

2009-12-22 Thread Sunny Carter
I should add (as I have noticed this is misleading below) - that I have also tried Python 3.1.1 and pywin32-214.win32-py3.1.exe with exactly the same results. The trace of the exception below is from this attempt (hence it saying that dynamic.py is in Python31)

Re: [python-win32] Setting a netboot within windows OS

2009-12-22 Thread Tim Golden
Vernon Cole wrote: Gowtham: I waited before giving this answer, to let the real Windows Gurus answer first. Tims pronouncement is as good is it gets, so here is my hair-brained idea. Perhaps it would actually work. As much as I hate to admit this on a Windows mailing list ... When I have mu