Re: [python-win32] Calling GetText_(1)

2011-08-09 Thread M Saunders TAS
>On 08/08/2011 17:09, Mitch Oliver wrote: >>> Try: >>> >>> %TEMP%\gen_py\<2.x>\... >> >> That seemed to contain some dummies, but I was able to locate files >> that had content in site-packages\win32com\gen_py. After deleting the >> contents of this directory and regenerating only WMI Scripting an

Re: [python-win32] Calling GetText_(1)

2011-08-08 Thread Tim Golden
On 08/08/2011 17:09, Mitch Oliver wrote: Try: %TEMP%\gen_py\<2.x>\... That seemed to contain some dummies, but I was able to locate files that had content in site-packages\win32com\gen_py. After deleting the contents of this directory and regenerating only WMI Scripting and WMICntl the code w

Re: [python-win32] Calling GetText_(1)

2011-08-08 Thread Mitch Oliver
> Try: > > %TEMP%\gen_py\<2.x>\... That seemed to contain some dummies, but I was able to locate files that had content in site-packages\win32com\gen_py. After deleting the contents of this directory and regenerating only WMI Scripting and WMICntl the code works. > (PS Mitch, can you subscribe t

Re: [python-win32] Calling GetText_(1)

2011-08-08 Thread Tim Golden
On 08/08/2011 16:35, Mitch Oliver wrote: I have just tested this on another box, and compiling the Microsoft WMI Scripting Library typelib definitely breaks it. Where does makepy write its generated files? Is it possible to unmake this typelib? Try: %TEMP%\gen_py\<2.x>\... (PS Mitch, can

Re: [python-win32] Calling GetText_(1)

2011-08-08 Thread Mitch Oliver
> I have just tested this on another box, and compiling the Microsoft WMI > Scripting Library typelib definitely breaks it. Where does makepy write its generated files? Is it possible to unmake this typelib? ___ python-win32 mailing list python-win32@p

Re: [python-win32] Calling GetText_(1)

2011-08-08 Thread M Saunders TAS
35 To: python-win32@python.org Subject: Re: [python-win32] Calling GetText_(1) On Fri, Aug 5, 2011 at 4:16 AM, M Saunders TAS wrote: > Does c.Msvm_VirtualSystemManagementService()[0] actually return anything? Yes. This returns a wmi_object: <_wmi_object: \\serve

Re: [python-win32] Calling GetText_(1)

2011-08-08 Thread Mitch Oliver
On Fri, Aug 5, 2011 at 4:16 AM, M Saunders TAS wrote: > Does c.Msvm_VirtualSystemManagementService()[0] actually return anything? Yes. This returns a wmi_object: <_wmi_object: \\server_name\root\virtualization:Msvm_VirtualSystemManagementService.CreationClassName="Msvm_VirtualSystemManagementSe

Re: [python-win32] Calling GetText_(1)

2011-08-05 Thread Tim Golden
On 04/08/2011 21:21, Mitch Oliver wrote: I am attempting to work through WMI to control some Hyper-V VMs. I am unable to call GetText_. Given the following code: import wmi c = wmi.WMI(computer='remoteserver', namespace='virtualization') mgtSvcs = c.Msvm_VirtualSystemManagementService()[0] mgt

Re: [python-win32] Calling GetText_(1)

2011-08-05 Thread M Saunders TAS
n.org [mailto:python-win32-bounces+saunders.m3=we-learn@python.org] On Behalf Of Mitch Oliver Sent: 04 August 2011 21:22 To: python-win32@python.org Subject: [python-win32] Calling GetText_(1) I am attempting to work through WMI to control some Hyper-V VMs. I am unable to call GetText_.

[python-win32] Calling GetText_(1)

2011-08-04 Thread Mitch Oliver
I am attempting to work through WMI to control some Hyper-V VMs. I am unable to call GetText_. Given the following code: import wmi c = wmi.WMI(computer='remoteserver', namespace='virtualization') mgtSvcs = c.Msvm_VirtualSystemManagementService()[0] mgtSvcs.GetText_(1) Returns an AttributeError