Install problems

Bug #1020021 reported by davidr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
my-weather-indicator
Fix Released
Undecided
Lorenzo Carbonell

Bug Description

Ubuntu 12.04 Classic - gnome-fallback

I uninstalled MWI as it kept crashing. The /usr/share/my-weather-indicator directory uninstalled but the link in Applications did not so I edited the menu and deleted the link, then the repository and key.

Today I wanted to give it anopther go as there has been at least one update:
sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install my-weather-indicator

There is no link/icon in Applications and it does not autostart. Tried running /usr/share/my-weather-indicator.py but nothing happens.

Python 2.7.3 is installed.

Help please ........

David

Revision history for this message
Lorenzo Carbonell (lorenzo-carbonell) wrote :

Please update and upgrade

Changed in my-weather-indicator:
status: New → Incomplete
assignee: nobody → Lorenzo Carbonell (lorenzo-carbonell)
Revision history for this message
davidr (davaweb) wrote :

I already have - the version I am trying to install now is 0.4.1.5-1ubuntu1 from the atareao ppa

David

Revision history for this message
Lorenzo Carbonell (lorenzo-carbonell) wrote :

What is your Ubuntu version??

Revision history for this message
davidr (davaweb) wrote :

12.04 on one machine - same problem
10.04 on another - same problem

0.4.1.5-1ubuntu1 referred to the 10.04
0.4.5.11-1ubuntu1 referred to the 12.04

Revision history for this message
Lorenzo Carbonell (lorenzo-carbonell) wrote :

Please run both version from terminal, and copy paste results here,

Thank you

Revision history for this message
davidr (davaweb) wrote :
Download full text (5.0 KiB)

So as not to confuse outputs I am making this two posts.

Ubuntu 10.04:
MWI-1004-RUN-STRAIGHT-FROM-TERMINAL:
TERMINAL OUTPUT:
david@ubuntu-lucid64:~$ /usr/share/my-weather-indicator/my-weather-indicator.py > ~/Desktop/myerrors.txt
Traceback (most recent call last):
  File "/usr/share/my-weather-indicator/my-weather-indicator.py", line 465, in <module>
    mwi=MWI()
  File "/usr/share/my-weather-indicator/my-weather-indicator.py", line 139, in __init__
    self.work()
  File "/usr/share/my-weather-indicator/my-weather-indicator.py", line 148, in work
    self.set_menu()
  File "/usr/share/my-weather-indicator/my-weather-indicator.py", line 225, in set_menu
    self.indicator.set_label(self.current_conditions['temperature'])
AttributeError: 'appindicator.Indicator' object has no attribute 'set_label'
david@ubuntu-lucid64:~$

MYERRORS.TXT:
3.72994912421
20.3245631176
3.72994912421
20.3245631176
3.72994912421
20.3245631176
3.72994912421
20.3245631176
3.74451463483
20.3157471529
3.74451463483
20.3157471529
3.75974350045
20.306071511
3.75974350045
20.306071511
3.775617036
20.2955443966
3.775617036
20.2955443966
########################################################
Condiciones actuales
{'moon_phase': 'Full Moon', 'moon_icon': 'mwi-moon14', 'temperature': '17.2 \xc2\xbaC', 'dew_point': '17.2 \xc2\xbaC', 'humidity': '100 %', 'condition_text': 'Mostly cloudy', 'wind_condition': 'South at 11.2 km/h', 'condition_icon_dark': 'mwid-mostly-cloudy', 'condition_icon_light': 'mwil-mostly-cloudy', 'condition': 'mostly cloudy', 'sunset': '21:19', 'sunrise': '04:43', 'feels_like': '17.2 \xc2\xbaC', 'condition_image': 'mwig-mostly-cloudy'}
########################################################
Condiciones guardadas
None
____________________________________________
MWI-1004-RUN-PERMISSION-CHANGED-TO-DAVID:
TERMINAL OUTPUT:
david@ubuntu-lucid64:~$ /usr/share/my-weather-indicator/my-weather-indicator.py > ~/Desktop/myerrors.txt
Traceback (most recent call last):
  File "/usr/share/my-weather-indicator/my-weather-indicator.py", line 465, in <module>
    mwi=MWI()
  File "/usr/share/my-weather-indicator/my-weather-indicator.py", line 139, in __init__
    self.work()
  File "/usr/share/my-weather-indicator/my-weather-indicator.py", line 148, in work
    self.set_menu()
  File "/usr/share/my-weather-indicator/my-weather-indicator.py", line 225, in set_menu
    self.indicator.set_label(self.current_conditions['temperature'])
AttributeError: 'appindicator.Indicator' object has no attribute 'set_label'
david@ubuntu-lucid64:~$

MYERRORS.TXT:
3.72994912421
20.3245631176
3.72994912421
20.3245631176
3.72994912421
20.3245631176
3.72994912421
20.3245631176
3.74451463483
20.3157471529
3.74451463483
20.3157471529
3.75974350045
20.306071511
3.75974350045
20.306071511
3.775617036
20.2955443966
3.775617036
20.2955443966
########################################################
Condiciones actuales
{'moon_phase': 'Full Moon', 'moon_icon': 'mwi-moon14', 'temperature': '17.2 \xc2\xbaC', 'dew_point': '17.2 \xc2\xbaC', 'humidity': '100 %', 'condition_text': 'Mostly cloudy', 'wind_condition': 'South at 11.2 km/h', 'condition_icon_dark': 'mwid-mostly-cloudy', 'condition_icon_light': 'm...

Read more...

Revision history for this message
davidr (davaweb) wrote :
Download full text (3.6 KiB)

Ubuntu 12.04:

MWI-1204-RUN-STRAIGHT-FROM-TERMINAL:
TERMINAL OUTPUT:
david@ubuntu64-1204:~$ /usr/share/my-weather-indicator/my-weather-indicator.py > ~/Desktop/errors.txt
No LSB modules are available.
Traceback (most recent call last):
  File "/usr/share/my-weather-indicator/my-weather-indicator.py", line 526, in <module>
    mwi=MWI()
  File "/usr/share/my-weather-indicator/my-weather-indicator.py", line 113, in __init__
    cm=preferences.CM()
  File "/usr/share/my-weather-indicator/preferences.py", line 262, in __init__
    self.load_preferences()
  File "/usr/share/my-weather-indicator/preferences.py", line 356, in load_preferences
    self.entry11.set_text(self.location)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
TypeError: Argument 1 does not allow None as a value
david@ubuntu64-1204:~$

MYERRORS.TXT:
#####################################################
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
Version: x86_64
#####################################################

My-Weather-Indicator version: 0.4.5.13
#####################################################
Read
Read
___________________________________________
MWI-1204-RUN-PERMISSION-CHANGED-TO-DAVID:
TERMINAL OUTPUT:
david@ubuntu64-1204:~$ /usr/share/my-weather-indicator/my-weather-indicator.py > ~/Desktop/errors.txt
No LSB modules are available.
Traceback (most recent call last):
  File "/usr/share/my-weather-indicator/my-weather-indicator.py", line 526, in <module>
    mwi=MWI()
  File "/usr/share/my-weather-indicator/my-weather-indicator.py", line 113, in __init__
    cm=preferences.CM()
  File "/usr/share/my-weather-indicator/preferences.py", line 262, in __init__
    self.load_preferences()
  File "/usr/share/my-weather-indicator/preferences.py", line 356, in load_preferences
    self.entry11.set_text(self.location)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
TypeError: Argument 1 does not allow None as a value
david@ubuntu64-1204:~$

MYERRORS.TXT:
#####################################################
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
Version: x86_64
#####################################################

My-Weather-Indicator version: 0.4.5.13
#####################################################
Read
Read

___________________________________________
MWI-1204-RUN-AS-SUDO:
TERMINAL OUTPUT:
david@ubuntu64-1204:~$ sudo /usr/share/my-weather-indicator/my-weather-indicator.py > ~/Desktop/errors.txt
[sudo] password for david:
No LSB modules are available.
Traceback (most recent call last):
  File "/usr/share/my-weather-indicator/my-weather-indicator.py", line 526, in <module>
    mwi=MWI()
  File "/usr/share/my-weather-indicator/my-weather-indicator.py", line 113, in __init__
    cm=preferences.CM()
  File "/usr/share/my-weather-indicator/preferences.py", line 262, in __init__
    self.load_preferences()
  File "/usr/share/my-weather-indicator/preferences.py", line 356, in load_preferences
    self.entry11.set_text(self.location)
  File "/usr/lib/pyth...

Read more...

Revision history for this message
Lorenzo Carbonell (lorenzo-carbonell) wrote :

I'm sorry but for Ubuntu 10.04, the library is to old, and i can't rebuild application, so I think it has no solution. I'm sorry.

For Ubuntu 12.04, I fixed this bug, I uploaded new version, so update and upgrade, and tell the result.

Thanks

Revision history for this message
davidr (davaweb) wrote :

Thanks.

The 12.04 version works except that when choosing the second location, the map shows the first location and N/A appears in the indicator.
My locations are:
Long Melford, Sudbury (found)
Sydney or Sydney Australia

David

Revision history for this message
Lorenzo Carbonell (lorenzo-carbonell) wrote :

I configure MWI with:

* Long Melfordm, Sudbury
* Sydney

and both are working correctly. Sometimes N/A appears in the indicator if Google Weather doesn't provide information, but it lasts for a while.

Try it running again from terminal, and if you see any error send me again.

Thanks.

Revision history for this message
davidr (davaweb) wrote :

Thank you.

It now seems to be solved for 12.04.

I don't suppose you have a different good weather app for 10.04?

Revision history for this message
davidr (davaweb) wrote :

I don't think I'm fully functional. The weather icons in the bar are black - see image.

Revision history for this message
davidr (davaweb) wrote :

Delete the above - my apologies, I had not realised there were light / dark preferences.

Apologies.
David

Changed in my-weather-indicator:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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