LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-06-2007, 01:35 PM   #1
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
Problem with python program--gtk.glade?


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?
 
Old 02-07-2007, 10:01 PM   #2
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
do you have PyGTK and pyxml installed?
 
Old 02-08-2007, 09:18 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Original Poster
Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
I feel like I've installed every package known to man trying to get this thing working. It's a little hard to be absolutely sure, because the Debian package names don't match the requirements listed on the page, but if it looks even vaguely similar to the requirements, I've installed it.

Nothing seems to have any effect at all.
 
  


Reply

Tags
glade, gtk, install, python


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python + glade problems pwrlftr220 Linux - Software 1 10-09-2006 09:43 AM
Is there Paint like program or widget in Glade+GTK+ santhosh.linux Programming 1 01-12-2006 04:55 AM
python/glade attach window content in gtk.fixed() a10392 Linux - Software 3 10-08-2004 10:19 AM
Glade/python Show a window. a10392 Linux - Software 0 10-06-2004 11:10 AM
Glade, GTK problem jpostma Programming 0 07-17-2004 02:39 PM


All times are GMT -5. The time now is 05:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration