Did you run your "wrapped exe" package on the same computer where the package was wrapped, or on a new computer?

If it was running on a new computer, probably it won't work because pywin32 is dependent on certain system registry entries. PyInstaller does not seem to package the registry.

Wuping


------ Original Message ------
From python-win32-requ...@python.org
To python-win32@python.org
Date 9/5/2023 1:58:14 PM
Subject python-win32 Digest, Vol 242, Issue 2

Send python-win32 mailing list submissions to
python-win32@python.org

To subscribe or unsubscribe via the World Wide Web, visit
https://mail.python.org/mailman/listinfo/python-win32
or, via email, send a message with subject or body 'help' to
python-win32-requ...@python.org

You can reach the person managing the list at
python-win32-ow...@python.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of python-win32 digest..."


Today's Topics:

   1. Exe not working correctly (Nasser Issa)


----------------------------------------------------------------------

Message: 1
Date: Tue, 5 Sep 2023 17:46:09 +0000
From: Nasser Issa <nas...@ennetix.com>
To: "python-win32@python.org" <python-win32@python.org>
Subject: [python-win32] Exe not working correctly
Message-ID:
        
<ia1pr11mb82248c3213919ed0379e6687c8...@ia1pr11mb8224.namprd11.prod.outlook.com>
Content-Type: text/plain; charset="iso-8859-1"

Hello There,

Currently been working with PyWin32 to interact with the Event Log and I'm 
trying to turn my Python script into a Windows executable. I'm using 
PyInstaller to convert my script into exe, however when I run my exe the  
TimeCreated field from the Windows Event is 'None' but when I run the program 
as a script it works perfectly fine. So, I guess what I'm asking is why does 
the program work as a python script but not as an executable, I also try adding 
the DLLs like pywintype310 and few others when building exe with PyInstaller.

Best,
Nas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://mail.python.org/pipermail/python-win32/attachments/20230905/bde905d7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iWEX-exe.png
Type: image/png
Size: 29178 bytes
Desc: iWEX-exe.png
URL: 
<https://mail.python.org/pipermail/python-win32/attachments/20230905/bde905d7/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iWEX-script.png
Type: image/png
Size: 39169 bytes
Desc: iWEX-script.png
URL: 
<https://mail.python.org/pipermail/python-win32/attachments/20230905/bde905d7/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iWEX-script.png
Type: image/png
Size: 39169 bytes
Desc: iWEX-script.png
URL: 
<https://mail.python.org/pipermail/python-win32/attachments/20230905/bde905d7/attachment-0002.png>

------------------------------

Subject: Digest Footer

_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32


------------------------------

End of python-win32 Digest, Vol 242, Issue 2
********************************************
_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to