[Apologies if you see this twice.  I can't seem my last post]

I've got a small python program which lists shadow copy sets.  It works 
fine when run as a .py file on both 64-bit and 32-bit systems.

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])


When I use pyinstaller to create a single executable, the executable also 
runs fine on the system it was created on.  However, when the 32-bit 
executable is run 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)


And running the 64-bit executable on a 32-bit system gives:

Z:\>dist\test3.exe
This version of Z:\dist\test3.exe is not compatible with the version of 
Windows
you're running. Check your computer's system information to see whether you 
need
 a x86 (32-bit) or x64 (64-bit) version of the program, and then contact 
the sof
tware publisher.

Is there a way of having just one frozen executable that will work 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.

Reply via email to