I am presuming this was installed on a Windows system and therefore testing 
that the windows installation has no system file linkage issues would be 
appropriate.

While this is a shot in the dark, have you ran:

# scan for and fix any issues it finds
sfc /scannow

# and

# to check for windows system file linkage problems
DISM /Online /Cleanup-Image /ScanHealth

# to fix found issues
DISM /Online /Cleanup-Image /RestoreHealth

Windows has a habit of messing up while doing windows updates, and “corrupting” 
the installation pre se (not copying the right files to the right places).

I’ve seen weird issues as a result.

While, seemingly, the sfc and dism commands seem to do the same things, 
Microsoft typically suggests that you run both of these cleanup commands to fix 
anything that might not have gotten copied properly as they supposedly do 
slightly different things (but might overlap in some places).

HTH

Steven
From: python-win32 <python-win32-bounces+steven=manross....@python.org> On 
Behalf Of Andrea Gavana via python-win32
Sent: Wednesday, April 2, 2025 1:43 AM
To: python-win32 Mailinglist <python-win32@python.org>
Subject: [python-win32] Failed to load Win32uiApplicationInit

Dear PyWin32 users,

We have been developing and distributing on Windows a large application over 
the years. The application is of course in Python, and it gets Cythonized and 
bundled up with py2exe for distribution.

Up until today everything was working fine. We have made no change to any of 
the dependencies, no change in Python version, no nothing. Just normal 
evolution of our Python code.

However, at application startup we are now getting this message:

[cid:image001.png@01DBA79F.9829DA80]

I have looked at where this message is generated:

https://github.com/mhammond/pywin32/blob/main/Pythonwin/Win32uiHostGlue.h

But I have no clue why and how it's possible to get that error. We have been 
using win32ui for a very long time with no issues.

I know it's a long shot, but does anyone have any hint on where to look to find 
out why this error appears?

I have tried with Dependencies X64 but I can't see anything wrong - albeit we 
have dozens of pyd and dll files and I haven't gone through all of them. Not 
that they have changed anyway, we haven't changed anything in our Python 
installation.

Thank you in advance for any suggestion.

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

Reply via email to