Again: Version 11.04.10~lucid4 doesn't start

Bug #757195 reported by icyfeet
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Weather Indicator
Fix Released
High
Vadim Rutkovsky

Bug Description

Sorry for being annoying.

Version is now installable, but again not executable. Message in Terminal (like in Version ...~lucid2):

Traceback (most recent call last):
  File "/usr/bin/indicator-weather", line 21, in <module>
    from gi.repository import Gio
ImportError: No module named gi.repository

Of course I'm using Lucid with this file.

Revision history for this message
26x365184l (26x365184l) wrote :

no problem on indicator-weather_11.04.10~natty4_all.deb

seams you have no python-gi (python-gobject)

so install:
sudo apt-get install python-gobject
sudo apt-get install python-gi

Revision history for this message
icyfeet (icyfeet) wrote :

python-gobject was already installed.

I cannot find python-gi in any repository for lucid.
Tried python-git but did not work.

Revision history for this message
26x365184l (26x365184l) wrote :

type in the terminal:
python or python2.6 or python2.7 (depending on which python version you have...)

then in the python shell type:
import gi
and press <ENTER>

you get something like that:

artem@linux-void:~$ python
Python 2.7.1+ (r271:86832, Mar 24 2011, 00:37:39)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
>>> import gi.repository
>>>

type exit() to quit the shell

if you get something like this:
>>> import this_module_definitely_does_not_exist
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named this_module_definitely_does_not_exist
>>>

instead of an empty >>> line (right after import gi and gi.repository) — then you have missing module(s) — try to install python2.7-dev

p.s. it's not indicator-weather issue, it's your python :)

Revision history for this message
icyfeet (icyfeet) wrote :

Thank you for your info.

Following your instruction shows me, that I have missing modules. So it is my python.

What I do not unterstand is:

Comparing the package python-gobject for Lucid and for Natty

http://ns2.canonical.com/lucid/all/python-gobject/filelist

http://ns2.canonical.com/natty/all/python-gobject/filelist

I think there is no module gi for Lucid. So the indicator-weather applet can not work under Lucid. Am I wrong?

By the way: The Version indicator-weather_11.04.02~lucid1_all.deb did work.
I think I will stay with this version for now.

Revision history for this message
Vadim Rutkovsky (roignac) wrote :

Yes, PyGI is not available, we'll pack a special version for Lucid without pygi dependencies

Changed in weather-indicator:
importance: Undecided → High
milestone: none → 11.04.23
status: New → Confirmed
Changed in weather-indicator:
status: Confirmed → Fix Committed
Revision history for this message
Vadim Rutkovsky (roignac) wrote :

Fixed in 11.04.24 version

Changed in weather-indicator:
assignee: nobody → Vadim Rutkovsky (roignac)
milestone: 11.04.24 → none
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.