Hi,
I am not a programmer nor an expert with Linux, but have a task to get code that was written for python2 to run on python3. Alternatively I could just use python2 if I could figure out how to get pygtk installed/running with RHEL8.
When I try to run the script using python 2, I get the following error: ImportError: No module named pygtk. Obviously pygtk isn't installed or else isn't configured properly but I cannot figure out how to get it installed/configured correctly.
I found this:
https://askubuntu.com/questions/697397/python3-is-not-supporting-gtk-module
But trying to put the suggested lines into the script doesn't help, I get the following error: No module named gi. Perhaps I am not doing it correctly though (just put the lines at the start of the python script).
Any help with this would be greatly appreciated.
I am not a programmer nor an expert with Linux, but have a task to get code that was written for python2 to run on python3. Alternatively I could just use python2 if I could figure out how to get pygtk installed/running with RHEL8.
When I try to run the script using python 2, I get the following error: ImportError: No module named pygtk. Obviously pygtk isn't installed or else isn't configured properly but I cannot figure out how to get it installed/configured correctly.
I found this:
https://askubuntu.com/questions/697397/python3-is-not-supporting-gtk-module
But trying to put the suggested lines into the script doesn't help, I get the following error: No module named gi. Perhaps I am not doing it correctly though (just put the lines at the start of the python script).
Any help with this would be greatly appreciated.
