wingtk / gvsbuild

GTK stack for Windows
GNU General Public License v2.0
440 stars 165 forks source link

Cannot load in (Microsoft Store version of) Python #1447

Open gan-lin opened 6 days ago

gan-lin commented 6 days ago

I'm new to PyGTK and met the following problem:

(process:xxxx): WARNING : xx:xx:xx.xxx: Failed to load shared library 'gio-2.0-0.dll' referenced by the typelib: 'gio-2.0-0.dll': The specified module could not be found.

I'm using the prebuilt binaries from releases. I've installed pygobject and pycairo in a venv and added the binaries directory to PATH. I'm sure I followed the steps in README, and have read https://gitlab.gnome.org/GNOME/pygobject/-/issues/545. I've checked the dependency dlls of gio-2.0-0.dll and found no missing.


Sorry but I found the problem. Previously I used the Microsoft Store version of Python. _gi.cp312-win_amd64.pyd depends on python312.dll which is missing in the this Python version. There's no problem on the official Python version. So is it necessary to keep this issue? And is it necessary to consider about the Microsoft Store Python? Another problem is the error message is not relative to the actual problem.

danyeaw commented 5 days ago

Hi @gan-lin, thanks for the issue report and sorry you were having issues. I have found the official installers from python.org to be the most reliable for Windows. If the Microsoft Store version is missing DLLs, I'm not sure what to do about that, except maybe make the README more explicit to not use that version.