On Windows, "import gi" statement in hello.py test file fails
I have followed the instructions (https://pygobject.readthedocs.io/en/latest/getting_started.html) to install pygobject on a 64-bit Windows 10 PC. When I try to run hello.py it fails with this error:
Traceback (most recent call last): File "D:\msys64\home\boris\hello.py", line 4, in import gi File "D:\msys64\mingw64\lib\python3.7\site-packages\gi__init__.py", line 42, in from . import gi ImportError: cannot import name 'gi' from 'gi' (D:\msys64\mingw64\lib\python3.7\site-packages\gi__init.py)
I have added D:\msys64\mingw64\lib\python3.7\site-packages to the PYTHONPATH environment variable to no effect.
I have seen various workarounds for this problem for Ubuntu, etc, but is there a fix for Windows?