Re: [python-win32] Help in deciphering error

2024-04-15 Thread Alok Bhargava
It absolutely does Mark - thanks so much!

Based on the error details, I am fairly certain I am seeing the same issue
(even though I use pyinstaller).  So I will either use 3.11 or think of a
solution that does not use Windows Service.

Thank you for being so responsive - greatly appreciate your contributions
to this community!


On Mon, Apr 15, 2024 at 11:05 AM Mark Hammond 
wrote:

> The first comment of https://github.com/mhammond/pywin32/issues/2155 has
> STR that doesn't involve pyinstaller or custom executables. If you can
> reproduce that, then you are probably facing the same problem, so the
> solution is probably to use Python 3.11 until more information about the
> 3.12 specific problem is known.
>
> HTH,
>
> Mark
> On 2024-04-14 4:19 p.m., Alok Bhargava wrote:
>
> Hello,
>
> I would appreciate any help in diagnosing why this error occurs.
>
> I have WinPython installed on my Windows 11 Pro machine and not registered
> (registering did not change the outcome).
>
> I installed pyinstaller and generated a single file .exe.
>
> This is what I have encountered as documented in a Windows Report.wer
> file:
>
> (Many thanks for all your help (please also see here
> ))
>
>
> Version=1
> EventType=APPCRASH
> EventTime=133575902720464133
> ReportType=2
> Consent=1
> UploadTime=133575902725050996
> ReportStatus=268435456
> ReportIdentifier=823493c6-5512-4b81-86a2-acfde51244ee
> IntegratorReportIdentifier=4598584a-fd33-4262-89ae-0e50fc817d5b
> Wow64Host=34404
> NsAppName=test.exe
> AppSessionGuid=179c--0009-95e6-c361938eda01
> TargetAppId=W:00061dd68bdd826965f6c90daa8b7ff48666!ba8b2a53d175b81101916c75210fb20beb28423c!test.exe
> TargetAppVer=2024//04//14:17:42:06!7543d8!test.exe
> BootId=4294967295
> TargetAsId=583
> IsFatal=1
> EtwNonCollectReason=1
> Response.BucketId=9fa208ac7d6291b25d2a8a0a7614126c
> Response.BucketTable=4
> Response.LegacyBucketId=2101643953657090668
> Response.type=4
> Sig[0].Name=Application Name
> Sig[0].Value=test.exe
> Sig[1].Name=Application Version
> Sig[1].Value=0.0.0.0
> Sig[2].Name=Application Timestamp
> Sig[2].Value=661c156e
> Sig[3].Name=Fault Module Name
> Sig[3].Value=python312.dll
> Sig[4].Name=Fault Module Version
> Sig[4].Value=3.12.2150.1013
> Sig[5].Name=Fault Module Timestamp
> Sig[5].Value=65c2a47f
> Sig[6].Name=Exception Code
> Sig[6].Value=c005
> Sig[7].Name=Exception Offset
> Sig[7].Value=cc2f
> DynamicSig[1].Name=OS Version
> DynamicSig[1].Value=10.0.22631.2.0.0.256.48
> DynamicSig[2].Name=Locale ID
> DynamicSig[2].Value=1033
> DynamicSig[22].Name=Additional Information 1
> DynamicSig[22].Value=fa6f
> DynamicSig[23].Name=Additional Information 2
> DynamicSig[23].Value=fa6fb7dd40186b4810d26d1ca09a7044
> DynamicSig[24].Name=Additional Information 3
> DynamicSig[24].Value=a877
> DynamicSig[25].Name=Additional Information 4
> DynamicSig[25].Value=a87723ca5a16692a5a5ebf3576a4ef47
> UI[2]=C:\Users\akbha\Desktop\test.exe
> UI[5]=Close
> UI[8]=test.exe stopped working and was closed
> UI[9]=A problem caused the application to stop working correctly. Windows 
> will notify you if a solution is available.
> UI[10]=
> LoadedModule[0]=C:\Users\akbha\Desktop\test.exe
> LoadedModule[1]=C:\Windows\SYSTEM32\ntdll.dll
> LoadedModule[2]=C:\Windows\System32\KERNEL32.DLL
> LoadedModule[3]=C:\Windows\System32\KERNELBASE.dll
> LoadedModule[4]=C:\Windows\System32\USER32.dll
> LoadedModule[5]=C:\Windows\System32\win32u.dll
> LoadedModule[6]=C:\Windows\System32\GDI32.dll
> LoadedModule[7]=C:\Windows\System32\gdi32full.dll
> LoadedModule[8]=C:\Windows\System32\msvcp_win.dll
> LoadedModule[9]=C:\Windows\System32\ucrtbase.dll
> LoadedModule[10]=C:\Windows\System32\ADVAPI32.dll
> LoadedModule[11]=C:\Windows\System32\msvcrt.dll
> LoadedModule[12]=C:\Windows\System32\sechost.dll
> LoadedModule[13]=C:\Windows\System32\bcrypt.dll
> LoadedModule[14]=C:\Windows\System32\RPCRT4.dll
> LoadedModule[15]=C:\Windows\system32\_MEI27562\python312.dll
> LoadedModule[16]=C:\Windows\System32\WS2_32.dll
> LoadedModule[17]=C:\Windows\SYSTEM32\VERSION.dll
> LoadedModule[18]=C:\Windows\system32\_MEI27562\VCRUNTIME140.dll
> LoadedModule[19]=C:\Windows\System32\bcryptprimitives.dll
> LoadedModule[20]=C:\Windows\system32\_MEI27562\pywin32_system32\pywintypes312.dll
> LoadedModule[21]=C:\Windows\System32\ole32.dll
> LoadedModule[22]=C:\Windows\System32\combase.dll
> LoadedModule[23]=C:\Windows\System32\OLEAUT32.dll
> LoadedModule[24]=C:\Windows\system32\_MEI27562\VCRUNTIME140_1.dll
> LoadedModule[25]=C:\Windows\system32\_MEI27562\win32\win32api.pyd
> LoadedModule[26]=C:\Windows\System32\SHELL32.dll
> LoadedModule[27]=C:\Windows\SYSTEM32\secur32.dll
> LoadedModule[28]=C:\Windows\SYSTEM32\SSPICLI.DLL
> LoadedModule[29]=C:\Windows\system32\_MEI27562\win32\win32service.pyd
> LoadedModule[30]=C:\Windows\system32\_MEI27562\win32\servicemanager.pyd
> State[0].Key=Transport.DoneStage1
> State[0].Value=1
> OsInfo[0].Key=vermaj
> 

Re: [python-win32] Help in deciphering error

2024-04-15 Thread Mark Hammond
The first comment of https://github.com/mhammond/pywin32/issues/2155 has 
STR that doesn't involve pyinstaller or custom executables. If you can 
reproduce that, then you are probably facing the same problem, so the 
solution is probably to use Python 3.11 until more information about the 
3.12 specific problem is known.


HTH,

Mark

On 2024-04-14 4:19 p.m., Alok Bhargava wrote:

Hello,

I would appreciate any help in diagnosing why this error occurs.

I have WinPython installed on my Windows 11 Pro machine and not 
registered (registering did not change the outcome).


I installed pyinstaller and generated a single file .exe.

This is what I have encountered as documented in a Windows Report.wer 
file:


(Many thanks for all your help (please also see here 
))
|Version=1 EventType=APPCRASH EventTime=133575902720464133 
ReportType=2 Consent=1 UploadTime=133575902725050996 
ReportStatus=268435456 
ReportIdentifier=823493c6-5512-4b81-86a2-acfde51244ee 
IntegratorReportIdentifier=4598584a-fd33-4262-89ae-0e50fc817d5b 
Wow64Host=34404 NsAppName=test.exe 
AppSessionGuid=179c--0009-95e6-c361938eda01 
TargetAppId=W:00061dd68bdd826965f6c90daa8b7ff48666!ba8b2a53d175b81101916c75210fb20beb28423c!test.exe 
TargetAppVer=2024//04//14:17:42:06!7543d8!test.exe BootId=4294967295 
TargetAsId=583 IsFatal=1 EtwNonCollectReason=1 
Response.BucketId=9fa208ac7d6291b25d2a8a0a7614126c 
Response.BucketTable=4 Response.LegacyBucketId=2101643953657090668 
Response.type=4 Sig[0].Name=Application Name Sig[0].Value=test.exe 
Sig[1].Name=Application Version Sig[1].Value=0.0.0.0 
Sig[2].Name=Application Timestamp Sig[2].Value=661c156e 
Sig[3].Name=Fault Module Name Sig[3].Value=python312.dll 
Sig[4].Name=Fault Module Version Sig[4].Value=3.12.2150.1013 
Sig[5].Name=Fault Module Timestamp Sig[5].Value=65c2a47f 
Sig[6].Name=Exception Code Sig[6].Value=c005 Sig[7].Name=Exception 
Offset Sig[7].Value=cc2f DynamicSig[1].Name=OS Version 
DynamicSig[1].Value=10.0.22631.2.0.0.256.48 DynamicSig[2].Name=Locale 
ID DynamicSig[2].Value=1033 DynamicSig[22].Name=Additional Information 
1 DynamicSig[22].Value=fa6f DynamicSig[23].Name=Additional Information 
2 DynamicSig[23].Value=fa6fb7dd40186b4810d26d1ca09a7044 
DynamicSig[24].Name=Additional Information 3 DynamicSig[24].Value=a877 
DynamicSig[25].Name=Additional Information 4 
DynamicSig[25].Value=a87723ca5a16692a5a5ebf3576a4ef47 
UI[2]=C:\Users\akbha\Desktop\test.exe UI[5]=Close UI[8]=test.exe 
stopped working and was closed UI[9]=A problem caused the application 
to stop working correctly. Windows will notify you if a solution is 
available. UI[10]= 
LoadedModule[0]=C:\Users\akbha\Desktop\test.exe 
LoadedModule[1]=C:\Windows\SYSTEM32\ntdll.dll 
LoadedModule[2]=C:\Windows\System32\KERNEL32.DLL 
LoadedModule[3]=C:\Windows\System32\KERNELBASE.dll 
LoadedModule[4]=C:\Windows\System32\USER32.dll 
LoadedModule[5]=C:\Windows\System32\win32u.dll 
LoadedModule[6]=C:\Windows\System32\GDI32.dll 
LoadedModule[7]=C:\Windows\System32\gdi32full.dll 
LoadedModule[8]=C:\Windows\System32\msvcp_win.dll 
LoadedModule[9]=C:\Windows\System32\ucrtbase.dll 
LoadedModule[10]=C:\Windows\System32\ADVAPI32.dll 
LoadedModule[11]=C:\Windows\System32\msvcrt.dll 
LoadedModule[12]=C:\Windows\System32\sechost.dll 
LoadedModule[13]=C:\Windows\System32\bcrypt.dll 
LoadedModule[14]=C:\Windows\System32\RPCRT4.dll 
LoadedModule[15]=C:\Windows\system32\_MEI27562\python312.dll 
LoadedModule[16]=C:\Windows\System32\WS2_32.dll 
LoadedModule[17]=C:\Windows\SYSTEM32\VERSION.dll 
LoadedModule[18]=C:\Windows\system32\_MEI27562\VCRUNTIME140.dll 
LoadedModule[19]=C:\Windows\System32\bcryptprimitives.dll 
LoadedModule[20]=C:\Windows\system32\_MEI27562\pywin32_system32\pywintypes312.dll 
LoadedModule[21]=C:\Windows\System32\ole32.dll 
LoadedModule[22]=C:\Windows\System32\combase.dll 
LoadedModule[23]=C:\Windows\System32\OLEAUT32.dll 
LoadedModule[24]=C:\Windows\system32\_MEI27562\VCRUNTIME140_1.dll 
LoadedModule[25]=C:\Windows\system32\_MEI27562\win32\win32api.pyd 
LoadedModule[26]=C:\Windows\System32\SHELL32.dll 
LoadedModule[27]=C:\Windows\SYSTEM32\secur32.dll 
LoadedModule[28]=C:\Windows\SYSTEM32\SSPICLI.DLL 
LoadedModule[29]=C:\Windows\system32\_MEI27562\win32\win32service.pyd 
LoadedModule[30]=C:\Windows\system32\_MEI27562\win32\servicemanager.pyd 
State[0].Key=Transport.DoneStage1 State[0].Value=1 
OsInfo[0].Key=vermaj OsInfo[0].Value=10 OsInfo[1].Key=vermin 
OsInfo[1].Value=0 OsInfo[2].Key=verbld OsInfo[2].Value=22631 
OsInfo[3].Key=ubr OsInfo[3].Value=3447 OsInfo[4].Key=versp 
OsInfo[4].Value=0 OsInfo[5].Key=arch OsInfo[5].Value=9 
OsInfo[6].Key=lcid OsInfo[6].Value=1033 OsInfo[7].Key=geoid 
OsInfo[7].Value=244 OsInfo[8].Key=sku OsInfo[8].Value=48 
OsInfo[9].Key=domain OsInfo[9].Value=0 OsInfo[10].Key=prodsuite 
OsInfo[10].Value=256 OsInfo[11].Key=ntprodtype OsInfo[11].Value=1 
OsInfo[12].Key=platid OsInfo[12].Value=10 OsInfo[13].Key=sr 
OsInfo[13].Value=0 

[python-win32] Help in deciphering error

2024-04-15 Thread Alok Bhargava
Hello,

I would appreciate any help in diagnosing why this error occurs.

I have WinPython installed on my Windows 11 Pro machine and not registered
(registering did not change the outcome).

I installed pyinstaller and generated a single file .exe.

This is what I have encountered as documented in a Windows Report.wer file:

(Many thanks for all your help (please also see here
))


Version=1
EventType=APPCRASH
EventTime=133575902720464133
ReportType=2
Consent=1
UploadTime=133575902725050996
ReportStatus=268435456
ReportIdentifier=823493c6-5512-4b81-86a2-acfde51244ee
IntegratorReportIdentifier=4598584a-fd33-4262-89ae-0e50fc817d5b
Wow64Host=34404
NsAppName=test.exe
AppSessionGuid=179c--0009-95e6-c361938eda01
TargetAppId=W:00061dd68bdd826965f6c90daa8b7ff48666!ba8b2a53d175b81101916c75210fb20beb28423c!test.exe
TargetAppVer=2024//04//14:17:42:06!7543d8!test.exe
BootId=4294967295
TargetAsId=583
IsFatal=1
EtwNonCollectReason=1
Response.BucketId=9fa208ac7d6291b25d2a8a0a7614126c
Response.BucketTable=4
Response.LegacyBucketId=2101643953657090668
Response.type=4
Sig[0].Name=Application Name
Sig[0].Value=test.exe
Sig[1].Name=Application Version
Sig[1].Value=0.0.0.0
Sig[2].Name=Application Timestamp
Sig[2].Value=661c156e
Sig[3].Name=Fault Module Name
Sig[3].Value=python312.dll
Sig[4].Name=Fault Module Version
Sig[4].Value=3.12.2150.1013
Sig[5].Name=Fault Module Timestamp
Sig[5].Value=65c2a47f
Sig[6].Name=Exception Code
Sig[6].Value=c005
Sig[7].Name=Exception Offset
Sig[7].Value=cc2f
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=10.0.22631.2.0.0.256.48
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1033
DynamicSig[22].Name=Additional Information 1
DynamicSig[22].Value=fa6f
DynamicSig[23].Name=Additional Information 2
DynamicSig[23].Value=fa6fb7dd40186b4810d26d1ca09a7044
DynamicSig[24].Name=Additional Information 3
DynamicSig[24].Value=a877
DynamicSig[25].Name=Additional Information 4
DynamicSig[25].Value=a87723ca5a16692a5a5ebf3576a4ef47
UI[2]=C:\Users\akbha\Desktop\test.exe
UI[5]=Close
UI[8]=test.exe stopped working and was closed
UI[9]=A problem caused the application to stop working correctly.
Windows will notify you if a solution is available.
UI[10]=
LoadedModule[0]=C:\Users\akbha\Desktop\test.exe
LoadedModule[1]=C:\Windows\SYSTEM32\ntdll.dll
LoadedModule[2]=C:\Windows\System32\KERNEL32.DLL
LoadedModule[3]=C:\Windows\System32\KERNELBASE.dll
LoadedModule[4]=C:\Windows\System32\USER32.dll
LoadedModule[5]=C:\Windows\System32\win32u.dll
LoadedModule[6]=C:\Windows\System32\GDI32.dll
LoadedModule[7]=C:\Windows\System32\gdi32full.dll
LoadedModule[8]=C:\Windows\System32\msvcp_win.dll
LoadedModule[9]=C:\Windows\System32\ucrtbase.dll
LoadedModule[10]=C:\Windows\System32\ADVAPI32.dll
LoadedModule[11]=C:\Windows\System32\msvcrt.dll
LoadedModule[12]=C:\Windows\System32\sechost.dll
LoadedModule[13]=C:\Windows\System32\bcrypt.dll
LoadedModule[14]=C:\Windows\System32\RPCRT4.dll
LoadedModule[15]=C:\Windows\system32\_MEI27562\python312.dll
LoadedModule[16]=C:\Windows\System32\WS2_32.dll
LoadedModule[17]=C:\Windows\SYSTEM32\VERSION.dll
LoadedModule[18]=C:\Windows\system32\_MEI27562\VCRUNTIME140.dll
LoadedModule[19]=C:\Windows\System32\bcryptprimitives.dll
LoadedModule[20]=C:\Windows\system32\_MEI27562\pywin32_system32\pywintypes312.dll
LoadedModule[21]=C:\Windows\System32\ole32.dll
LoadedModule[22]=C:\Windows\System32\combase.dll
LoadedModule[23]=C:\Windows\System32\OLEAUT32.dll
LoadedModule[24]=C:\Windows\system32\_MEI27562\VCRUNTIME140_1.dll
LoadedModule[25]=C:\Windows\system32\_MEI27562\win32\win32api.pyd
LoadedModule[26]=C:\Windows\System32\SHELL32.dll
LoadedModule[27]=C:\Windows\SYSTEM32\secur32.dll
LoadedModule[28]=C:\Windows\SYSTEM32\SSPICLI.DLL
LoadedModule[29]=C:\Windows\system32\_MEI27562\win32\win32service.pyd
LoadedModule[30]=C:\Windows\system32\_MEI27562\win32\servicemanager.pyd
State[0].Key=Transport.DoneStage1
State[0].Value=1
OsInfo[0].Key=vermaj
OsInfo[0].Value=10
OsInfo[1].Key=vermin
OsInfo[1].Value=0
OsInfo[2].Key=verbld
OsInfo[2].Value=22631
OsInfo[3].Key=ubr
OsInfo[3].Value=3447
OsInfo[4].Key=versp
OsInfo[4].Value=0
OsInfo[5].Key=arch
OsInfo[5].Value=9
OsInfo[6].Key=lcid
OsInfo[6].Value=1033
OsInfo[7].Key=geoid
OsInfo[7].Value=244
OsInfo[8].Key=sku
OsInfo[8].Value=48
OsInfo[9].Key=domain
OsInfo[9].Value=0
OsInfo[10].Key=prodsuite
OsInfo[10].Value=256
OsInfo[11].Key=ntprodtype
OsInfo[11].Value=1
OsInfo[12].Key=platid
OsInfo[12].Value=10
OsInfo[13].Key=sr
OsInfo[13].Value=0
OsInfo[14].Key=tmsi
OsInfo[14].Value=222623649
OsInfo[15].Key=osinsty
OsInfo[15].Value=2
OsInfo[16].Key=iever
OsInfo[16].Value=11.1.22621.0-11.0.1000
OsInfo[17].Key=portos
OsInfo[17].Value=0
OsInfo[18].Key=ram
OsInfo[18].Value=6143
OsInfo[19].Key=svolsz
OsInfo[19].Value=63
OsInfo[20].Key=wimbt
OsInfo[20].Value=0
OsInfo[21].Key=blddt
OsInfo[21].Value=220506
OsInfo[22].Key=bldtm
OsInfo[22].Value=1250
OsInfo[23].Key=bldbrch
OsInfo[23].Value=ni_release