Interesting install issue

So I can install wxpython4.2.2 on windows 10 (latest update) using python 3.10. But when I use python 3.12.6 I get the following issue:
Python 3.12.6 (tags/v3.12.6:a4a2d2b, Sep 6 2024, 20:11:23) [MSC v.1940 64 bit (AMD64)] on win32

import wx
Traceback (most recent call last):
File “”, line 1, in
File “C:\Program Files\Python312\Lib\site-packages\wx_init_.py”, line 17, in
from wx.core import *
File “C:\Program Files\Python312\Lib\site-packages\wx\core.py”, line 12, in
from ._core import *
ImportError: DLL load failed while importing _core: The specified module could not be found.

I believe the module is the agw module and it might be something with the gradientbutton. This is the first issue I have seen with wxpython 4.2.2 (I have successfully installed on windows 10 without issue). Sure could use some help here…

Even after doing a windows 10 reset (removed all the files) I have exactly the same error.

Are you sure that the install was successful when you installed wxPython for Python 3.12? There were not any errors?

Positive - no errors at all. Like I said earlier I believe this has something to do with AGW.

If someone would like to contact me I can show them the install etc… Then they can see the error.

I am unclear how that is related to AGW… your traceback shows that your installation breaks in wx._core, which is well before anything in AGW is looked at.

When I try to debug the issue I get an error stating that python can not load the module agw. When I then try to stop the debugger within agw I get an other error which suggest that it can not load gradientbutton. But I have gone down the wrong path many times. So i might be way off base.

Johnf

More info - I installed windows 11 on this computer (intel nuc icore 7) and I get the same error message.

Johnf