Hi folks.

I have a very small python script which lists which shadow copies are in 
existance:

import win32com.client

wcd=win32com.client.Dispatch("WbemScripting.SWbemLocator")
wmi=wcd.ConnectServer(".","root\cimv2")
obj=wmi.ExecQuery("SELECT * FROM Win32_ShadowCopy")
print([x.DeviceObject for x in obj])

If I freeze it with pyinstaller on a 32-bit system, it works fine on that 
system.

However, if I then run the same .exe on a 64-bit system, I get the 
following error:

Z:\>dist\test3.exe
Traceback (most recent call last):
  File "<string>", line 6, in <module>
  File "Z:\build\test3\out00-PYZ.pyz\win32com.client.util", line 84, in next
pywintypes.com_error: (-2147217388, 'OLE error 0x80041014', None, None)

Is there something I can do so that the frozen executable will work fine on 
both 32-bit and 64-bit systems?

Thanks!!!!

-- gyre --

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
import win32com.client

wcd=win32com.client.Dispatch("WbemScripting.SWbemLocator")
wmi=wcd.ConnectServer(".","root\cimv2")
obj=wmi.ExecQuery("SELECT * FROM Win32_ShadowCopy")
print([x.DeviceObject for x in obj])

Reply via email to