Hi, I’ve tried other forum but without success.
It has been several days. I’ve been trying to play around a bit with python3 and gtk4 to build a little app. But I’ve been stuck with dependencies issues. I’ve tried with vs code, and I’m having a ModuleNotFoundError: No module named ‘gi’. Also several errors trying to install this gi dependecy.
I’ve tried other forums, but stilt now help.
Using pycharm I’m having the following errors:
Traceback (most recent call last):
File “/home/tj/PycharmProjects/pythonProject/main.py”, line 2, in
File “/home/tj/PycharmProjects/pythonProject/venv/lib/python3.10/site-packages/gi/init.py”, line 129, in require_version
raise ValueError(‘Namespace %s not available for version %s’ %
ValueError: Namespace Gtk not available for version 4.0
or version 3.0:
Failed to load module “canberra-gtk-module”
Failed to load module “pk-gtk-module”
But at least this time a gtk window appeared. Thats a huge improvement for the last days
I’ve been having issues with lack of documentation, or the quality of the documentation, for the setup process for pyGtk4 (specially for a newbie).