#module_cant_find_sister.py

Trying to publish module (graphics_braille) to pypi, first to test

Sub-problem
After installing, from test pypi into an environment, and running a test program we get an error
can't find aister module.  We suspect that "directions" to find site modules is
missing.  The program x_show_square_loop_colors_braille.py removes some legacy path
components, if present, to avoid false success by providing a path to missing file.

(venv) PS C:\Users\raysm\vscode\testing> py --version
Python 3.14.0


(venv) PS C:\Users\raysm\vscode\testing> py .\x_show_square_loop_colors_braille.py
Removing: c:\Users\raysm\vscode\resource_lib\src
sys.path:
    C:\Users\raysm\vscode\testing
    c:\Users\raysm\vscode\simple_games\dots-master\src
    C:\Users\raysm\vscode\testing
    C:\Users\Owner\AppData\Local\Programs\Python\Python314\python314.zip
    C:\Users\Owner\AppData\Local\Programs\Python\Python314\DLLs
    C:\Users\Owner\AppData\Local\Programs\Python\Python314\Lib
    C:\Users\Owner\AppData\Local\Programs\Python\Python314
    C:\Users\raysm\vscode\testing\venv
    C:\Users\raysm\vscode\testing\venv\Lib\site-packages
    C:\Users\raysm\vscode\testing\venv\Lib\site-packages\win32
    C:\Users\raysm\vscode\testing\venv\Lib\site-packages\win32\lib
    C:\Users\raysm\vscode\testing\venv\Lib\site-packages\Pythonwin
Traceback (most recent call last):
  File "C:\Users\raysm\vscode\testing\x_show_square_loop_colors_braille.py", line 27, in <module>
    from graphics_braille import wx_turtle_braille
  File "C:\Users\raysm\vscode\testing\venv\Lib\site-packages\graphics_braille\wx_turtle_braille.py", line 28, in <module>
    from wx_tk_rpc_host import TkRPCHost
ModuleNotFoundError: No module named 'wx_tk_rpc_host'


The following directory listing looks like wx_tk_rpc_host module(wx_tk_rpc_host.py)
 should be found:
(venv) PS C:\Users\raysm\vscode\testing>
    dir C:\Users\raysm\vscode\testing\venv\Lib\site-packages\graphics_braille


    Directory: C:\Users\raysm\vscode\testing\venv\Lib\site-packages\graphics_braille


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----        10/10/2025   5:24 PM                __pycache__
-a----         10/9/2025   1:29 PM          72212 adw_front_end.py
...
-a----         10/9/2025   1:29 PM           9894 wx_tk_rpc_host.py
-a----         10/9/2025   1:29 PM          13090 wx_tk_rpc_user.py
-a----         10/9/2025   1:29 PM           7488 wx_trace_control_pan3.py
-a----         10/9/2025   1:29 PM           5124 wx_trace_control_window.py
-a----         10/9/2025   1:29 PM           4132 wx_trace_flag_box.py
-a----         10/9/2025   1:29 PM           4686 wx_turtle_braille.py
-a----         10/9/2025   1:29 PM           1170 wx_win.py
-a----         10/9/2025   1:29 PM           1052 x_show_square_loop_colors_braille.py
-a----         10/9/2025   1:29 PM              0 __init__.py



The following maybe telling...
But I don't know why
I explicitly import, from python, graphics_braille, the project.
Then I import a member module via "import graphics_braille.wx_turtle_braille" which fails in
an import "wx" (wxPython).  As seen below, wxPython has been installed.

(venv) PS C:\Users\raysm\vscode\testing> py
Python 3.14.0 (tags/v3.14.0:ebf955d, Oct  7 2025, 10:15:03) [MSC v.1944 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Ctrl click to launch VS Code Native REPL
>>> import graphics_braille
>>> import graphics_braille.wx_turtle_braille
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
    import graphics_braille.wx_turtle_braille
  File "C:\Users\raysm\vscode\testing\venv\Lib\site-packages\graphics_braille\wx_turtle_braille.py", line 28, in <module>
    from wx_tk_rpc_host import TkRPCHost
  File "c:\Users\raysm\vscode\resource_lib\src\wx_tk_rpc_host.py", line 20, in <module>
    from wx_canvas_grid import CanvasGrid
  File "c:\Users\raysm\vscode\resource_lib\src\wx_canvas_grid.py", line 25, in <module>
    from wx_speaker_control import SpeakerControlLocal
  File "c:\Users\raysm\vscode\resource_lib\src\wx_speaker_control.py", line 14, in <module>
    import wx
  File "C:\Users\raysm\vscode\testing\venv\Lib\site-packages\wx\__init__.py", line 17, in <module>
    from wx.core import *
  File "C:\Users\raysm\vscode\testing\venv\Lib\site-packages\wx\core.py", line 12, in <module>
    from ._core import *
ModuleNotFoundError: No module named 'wx._core'

(venv) PS C:\Users\raysm\vscode\testing> py -m pip --no-cache-dir install --upgrade wxpython
Requirement already satisfied: wxpython in c:\users\raysm\vscode\testing\venv\lib\site-packages (4.2.3)
>>>

(venv) PS C:\Users\raysm\vscode\testing> py -m pip --no-cache-dir install --upgrade wxpython
Requirement already satisfied: wxpython in c:\users\raysm\vscode\testing\venv\lib\site-packages (4.2.3)
(venv) PS C:\Users\raysm\vscode\testing> py
Python 3.14.0 (tags/v3.14.0:ebf955d, Oct  7 2025, 10:15:03) [MSC v.1944 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Ctrl click to launch VS Code Native REPL
>>> import graphics_braille
>>> import wx_turtle_braille
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
    import wx_turtle_braille
  File "c:\Users\raysm\vscode\resource_lib\src\wx_turtle_braille.py", line 27, in <module>
    from wx_tk_rpc_host import TkRPCHost
  File "c:\Users\raysm\vscode\resource_lib\src\wx_tk_rpc_host.py", line 20, in <module>
    from wx_canvas_grid import CanvasGrid
  File "c:\Users\raysm\vscode\resource_lib\src\wx_canvas_grid.py", line 25, in <module>
    from wx_speaker_control import SpeakerControlLocal
  File "c:\Users\raysm\vscode\resource_lib\src\wx_speaker_control.py", line 14, in <module>
    import wx
  File "C:\Users\raysm\vscode\testing\venv\Lib\site-packages\wx\__init__.py", line 17, in <module>
    from wx.core import *
  File "C:\Users\raysm\vscode\testing\venv\Lib\site-packages\wx\core.py", line 12, in <module>
    from ._core import *
ModuleNotFoundError: No module named 'wx._core'
>