MaxTyutyunnikov / gphotoframe

Automatically exported from code.google.com/p/gphotoframe
Other
0 stars 0 forks source link

ImportError: No module named glib #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run gphotoframe from the command line

What is the expected output? What do you see instead?
I expected the program to start. Instead it gave an error message:

$ ./gphotoframe 
Traceback (most recent call last):
  File "./gphotoframe", line 15, in <module>
    import glib
ImportError: No module named glib

What version of the product are you using? On what operating system?
I am using gphotoframe 0.1 and ubuntu 8.04
Furthermore, I have installed both python-gtk2 and python-gtk2-dev,
versions 2.12.1

Please provide any additional information below.
Do I need to install any additional software besides those that are
mentioned on the gphotoframe website?

Original issue reported on code.google.com by K.J.Nies...@gmail.com on 2 May 2009 at 12:15

GoogleCodeExporter commented 9 years ago
PyGObject (python-gobject package) includes glib bindings.

In Debian lenny or Ubuntu intrepid, python-gobject packages include glib 
bindings. 
The python-gtk2 packages depends on the python-gobject package.

But, the python-gobject package of Ubuntu hardy does not include glib bindings.
I don't know why. 
Does anyone have information?

Original comment by yendo0206 on 5 May 2009 at 3:46

GoogleCodeExporter commented 9 years ago
I commented out the line which imports the glib module and I was able to start
gphotoframe. Is it possible that that line is redundant?

Original comment by K.J.Nies...@gmail.com on 5 May 2009 at 9:07

GoogleCodeExporter commented 9 years ago
A glib error code is used in line 26.
This error code is used for the image loading error.

And, some gobject API (example: timeout_add) move to 
the glib module in the version 2.16 of PyGobject.
gphotoframe will use more glib functions in the future.

Original comment by yendo0206 on 5 May 2009 at 10:51

GoogleCodeExporter commented 9 years ago
> gphotoframe will use more glib functions in the future.

But, gphotoframe dropped depends on the glib module for the present.
Fixed in r.78.

Original comment by yendo0206 on 13 May 2009 at 10:41