[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need to 'import gtk' on Ubuntu 20.04, what do I need?

On 7/23/20 2:41 PM, Chris Green wrote:
> I have recently upgraded my desktop system from ubuntu 19.10 to ubuntu
> 20.04.  I have some Oki printer/scanner driver software that is
> written in Python 2 and, although python 2 is still installed on my
> system it's no longer the default python and the Oki software no
> longer runs.
> The error I am getting is:-
>     chris at esprimo$ ./
>     Traceback (most recent call last):
>       File "./", line 52, in <module>
>         import gtk
>     ImportError: No module named gtk
> So what do I need to install on my Ubuntu 20.04 system to provide the
> gtk module?  

Someone has made a PPA with the python2 pygtk2 package:

sudo add-apt-repository ppa:nrbrtx/python2-stuff
sudo apt-get install python-gtk2

I can't vouch for the source, so use at your own risk.