my-weather-indicator not start

Bug #1851828 reported by Dani
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
my-weather-indicator
New
Undecided
Unassigned

Bug Description

App not start

System: Linux
Machine: x86_64
Release: 5.3.0-19-generic
Version: #20-Ubuntu SMP Fri Oct 18 09:04:39 UTC 2019
Platform: Linux-5.3.0-19-generic-x86_64-with-Ubuntu-19.10-eoan

My-Weather-Indicator version: 0.9.4-0extras19.10.09
#####################################################
Traceback (most recent call last):
  File "./my-weather-indicator", line 36, in <module>
    main()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 953, in main
    mwi = MWI()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 124, in __init__
    self.load_preferences()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 291, in load_preferences
    self.weatherservices[i] = wyahooapi.YahooWeatherService(
NameError: name 'wyahooapi' is not defined

Dani (dtalens)
affects: google-tasks-indicator → my-weather-indicator
Dani (dtalens)
description: updated
Dani (dtalens)
summary: - my-weather- not start
+ my-weather-indicator not start
Revision history for this message
Fredda (wiegner) wrote :

I was also affected by this bug, so I did some digging, the attached patch will fix the problem.

You'll also need to install the package python3-requests-oauthlib, as it seems to be missing in the dependecies and is not automatically installed.
# apt install python3-requests-oauthlib

A quick solution to just get the indicator starting again is to edit the
~/.config/my-weather-indicator/my-weather-indicator.conf file and change the
"weather-service" token from "yahoo" to "openweathermap"

Revision history for this message
Dani (dtalens) wrote :

Your patch works properly, thanks Fredda.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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