I've been trying to install this simple
diet management program, but I keep getting errors. The install file says to simply run ./install.py with root permissions, but when I do, I get the following output:
Code:
root:/usr/src/shrinkingman# ./install.py
Generating shrinkingman.desktop ...
Generating shrinkingman.xml ...
Cleaning up older installations...
Installing new version...
Copying file src/filechooser.py to /usr/local/lib/shrinkingman/ ...
Copying file src/fooddb.py to /usr/local/lib/shrinkingman/ ...
Copying file src/profile.py to /usr/local/lib/shrinkingman/ ...
Copying file src/tz.py to /usr/local/lib/shrinkingman/ ...
Copying file src/config.py to /usr/local/lib/shrinkingman/ ...
Copying file src/stringcompletion.py to /usr/local/lib/shrinkingman/ ...
Copying file src/shrinkingman.py to /usr/local/lib/shrinkingman/ ...
Copying file src/day.py to /usr/local/lib/shrinkingman/ ...
Copying file src/food.py to /usr/local/lib/shrinkingman/ ...
Copying file src/mainwindow.py to /usr/local/lib/shrinkingman/ ...
Copying file src/util.py to /usr/local/lib/shrinkingman/ ...
Copying file src/aboutdialog.py to /usr/local/lib/shrinkingman/ ...
Copying file src/profiledialog.py to /usr/local/lib/shrinkingman/ ...
Copying file src/consumerdb.py to /usr/local/lib/shrinkingman/ ...
Copying file shrinkingman.xml to /usr/share/mime/packages/ ...
Copying file pixmaps/person.png to /usr/local/pixmaps/shrinkingman/ ...
Copying file shrinkingman.desktop to /usr/share/applications/ ...
Copying file shrinkingman.glade to /usr/local/share/shrinkingman/ ...
Copying file pixmaps/icon32.png to /usr/local/share/icons/hicolor/32x32/apps/shrinkingman.png ...
Copying file pixmaps/icon48.png to /usr/local/share/icons/hicolor/48x48/apps/shrinkingman.png ...
Changing permission of the root script to 755...
Creating application symlink...
Running MIME database update...
Compiling the application...
Traceback (most recent call last):
File "/usr/src/shrinkingman/install.py", line 121, in ?
import shrinkingman # Causes compilation of the program
File "/usr/local/lib/shrinkingman/shrinkingman.py", line 21, in ?
import gtk.glade
File "/var/lib/python-support/python2.4/gtk-2.0/gtk/__init__.py", line 45, in ?
from _gtk import *
RuntimeError: could not open display
The program does install and run, but it refuses to accept any input. From the above, it looks like it's trying to find a library called gtk.glade, but no such file seems to exist anywhere. I've installed every glade-related package that seems even remotely appropriate to no effect. An apt-file search also turned up no packages containing that file name. Have the gtk/glade file names have changed since the code was written or something?
Does anyone know what I can do to get this program running?