My-Weather-Indicator won't launch on Ubuntu 16.04

Bug #1565495 reported by Christian Dysthe
80
This bug affects 16 people
Affects Status Importance Assigned to Milestone
my-weather-indicator
Fix Released
Undecided
Unassigned

Bug Description

When trying to launch my-weather-indicator it crashes after a few seconds with these errors:

./my-weather-indicator
./my-weather-indicator:27: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
./my-weather-indicator:28: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
  from gi.repository import Notify
<gettext.GNUTranslations object at 0x7f5514b70b00>
/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py:31: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
  from gi.repository import AppIndicator3 as appindicator
Traceback (most recent call last):
  File "./my-weather-indicator", line 58, in <module>
    from myweatherindicator import MWI
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 37, in <module>
    import preferences
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/preferences.py", line 30, in <module>
    import geocodeapi
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/geocodeapi.py", line 31, in <module>
    import yql
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/yql/__init__.py", line 19, in <module>
    from httplib2 import Http
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 51, in <module>
    import ssl
  File "/usr/lib/python3.5/ssl.py", line 90, in <module>
    import ipaddress
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/ipaddress.py", line 29, in <module>
    from geocodeapi import get_inv_direction
ImportError: cannot import name 'get_inv_direction'

No problems before the latest update to 0.7.4-0extras15.10.11. I have also tried with a blank profile.

Revision history for this message
David Natkins (dnatkins) wrote :

Same exact problem with current updates applied

Revision history for this message
Hugo Otto (hugootto) wrote :

Same with me:

./my-weather-indicator:27: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
./my-weather-indicator:28: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
  from gi.repository import Notify
<gettext.GNUTranslations object at 0x7f6f20053b70>
/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py:31: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
  from gi.repository import AppIndicator3 as appindicator
Traceback (most recent call last):
  File "./my-weather-indicator", line 58, in <module>
    from myweatherindicator import MWI
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 37, in <module>
    import preferences
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/preferences.py", line 30, in <module>
    import geocodeapi
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/geocodeapi.py", line 31, in <module>
    import yql
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/yql/__init__.py", line 19, in <module>
    from httplib2 import Http
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 51, in <module>
    import ssl
  File "/usr/lib/python3.5/ssl.py", line 90, in <module>
    import ipaddress
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/ipaddress.py", line 29, in <module>
    from geocodeapi import get_inv_direction
ImportError: cannot import name 'get_inv_direction'

Revision history for this message
Alexandru Bangau (rammazzoti2000) wrote :

Same here:

/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator
/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator:27: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator:28: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
  from gi.repository import Notify
<gettext.GNUTranslations object at 0x7f461b992898>
/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py:31: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
  from gi.repository import AppIndicator3 as appindicator
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator", line 58, in <module>
    from myweatherindicator import MWI
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 37, in <module>
    import preferences
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/preferences.py", line 30, in <module>
    import geocodeapi
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/geocodeapi.py", line 31, in <module>
    import yql
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/yql/__init__.py", line 19, in <module>
    from httplib2 import Http
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 51, in <module>
    import ssl
  File "/usr/lib/python3.5/ssl.py", line 90, in <module>
    import ipaddress
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/ipaddress.py", line 29, in <module>
    from geocodeapi import get_inv_direction
ImportError: cannot import name 'get_inv_direction'

Revision history for this message
Christian Dysthe (christian-dysthe) wrote :

There was another update for Ubuntu on April 4 but the problem remains. I can not run the application.

Revision history for this message
viljeml (viljeml43) wrote :

Same problem

Revision history for this message
cement_head (andorjkiss) wrote :

This is also broken on 15.10 - same error

Revision history for this message
hackel (hackel) wrote :
Revision history for this message
Hugo Otto (hugootto) wrote :

Excellent suggestion! 0.7.1 also working for me. Thanks!

Changed in my-weather-indicator:
status: New → Fix Released
Revision history for this message
cement_head (andorjkiss) wrote :

Still broken on 15.10:

$ python my-weather-indicator
Traceback (most recent call last):
  File "my-weather-indicator", line 57, in <module>
    import comun
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/comun.py", line 29, in <module>
    import urllib.request
ImportError: No module named request

Revision history for this message
Cip Man (cipman-p) wrote :

Same in 16.04 beta 2:

Package: my-weather-indicator 0.7.7-0extras15.10.3 [origin: LP-PPA-atareao-atareao]

Traceback:
 Traceback (most recent call last):
   File "/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator", line 58, in <module>
     from myweatherindicator import MWI
   File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 37, in <module>
     import preferences
   File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/preferences.py", line 30, in <module>
     import geocodeapi
   File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/geocodeapi.py", line 30, in <module>
     import yql
   File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/yql/__init__.py", line 19, in <module>
     from httplib2 import Http
   File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 51, in <module>
     import ssl
   File "/usr/lib/python3.5/ssl.py", line 90, in <module>
     import ipaddress
   File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/ipaddress.py", line 29, in <module>
     from geocodeapi import get_inv_direction
 ImportError: cannot import name 'get_inv_direction'

Revision history for this message
Christian Dysthe (christian-dysthe) wrote :

 Upgraded to v 0.7.7-0extras15.10.3. Still not working in Ubuntu 16.04 x64

Revision history for this message
Hugo Otto (hugootto) wrote :

Fix 0.7.7 didn't fix the problem:

./my-weather-indicator:27: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
./my-weather-indicator:28: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
  from gi.repository import Notify
<gettext.GNUTranslations object at 0x7fc9607176a0>
/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py:31: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
  from gi.repository import AppIndicator3 as appindicator
Traceback (most recent call last):
  File "./my-weather-indicator", line 58, in <module>
    from myweatherindicator import MWI
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 37, in <module>
    import preferences
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/preferences.py", line 30, in <module>
    import geocodeapi
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/geocodeapi.py", line 30, in <module>
    import yql
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/yql/__init__.py", line 19, in <module>
    from httplib2 import Http
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 51, in <module>
    import ssl
  File "/usr/lib/python3.5/ssl.py", line 90, in <module>
    import ipaddress
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/ipaddress.py", line 29, in <module>
    from geocodeapi import get_inv_direction
ImportError: cannot import name 'get_inv_direction'

Back to 0.7.1.

Revision history for this message
Jussi Saarinen (jms) wrote :

my-weather-indicator version 0.7.7-0extras15.10.5
ubuntu version 16.04 (latest updates installed)

/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator:27: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator:28: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
  from gi.repository import Notify
<gettext.GNUTranslations object at 0x7f78092cd9b0>
/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py:31: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
  from gi.repository import AppIndicator3 as appindicator
/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/geocodeapi.py:30: PyGIWarning: GeocodeGlib was imported without specifying a version first. Use gi.require_version('GeocodeGlib', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import GeocodeGlib
/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/whereami.py:27: PyGIWarning: WebKit was imported without specifying a version first. Use gi.require_version('WebKit', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import WebKit
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator", line 58, in <module>
    from myweatherindicator import MWI
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 49, in <module>
    import wyahooapi
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/wyahooapi.py", line 28, in <module>
    import yql
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/yql/__init__.py", line 21, in <module>
    from httplib2 import Http
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 820, in <module>
    class HTTPSConnectionWithTimeout(http.client.HTTPSConnection):
AttributeError: module 'http.client' has no attribute 'HTTPSConnection'

Revision history for this message
cement_head (andorjkiss) wrote :

0.7.8 is still broken on 15.10

$ python my-weather-indicator
Traceback (most recent call last):
  File "my-weather-indicator", line 57, in <module>
    import comun
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/comun.py", line 29, in <module>
    import urllib.request
ImportError: No module named request

Revision history for this message
Cip Man (cipman-p) wrote :

0.7.8 broken in 16.04 as well.

Package: my-weather-indicator 0.7.8-0extras15.10.8 [origin: LP-PPA-atareao-atareao]

Title: my-weather-indicator crashed with ImportError in /opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/wyahooapi.py: No module named 'requests_oauthlib'

Revision history for this message
Cip Man (cipman-p) wrote :

0.7.9 now runs on 16.04 but it doesn't work. Doesn't work no more on 14.04 as well.

For some reason 0.7.7 I had running on 14.04 stopped working this evening with no available data from Open Weather Map or Yahoo. Updated to 0.7.9, same thing, and when I switched to Wunderground it crashed.
It crashes on 16.04 with Wundergraound as well and no data from Open Weather Map or Yahoo.

The crash log from 14.04 (aprox the same as from 16.04):
 Package: my-weather-indicator 0.7.9-0extras15.10.0 [origin: LP-PPA-atareao-atareao]
Traceback:
 Traceback (most recent call last):
   File "/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator", line 63, in <module>
     mwi = MWI()
   File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 152, in __init__
     self.load_preferences()
   File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 355, in load_preferences
     self.start_weather_updater()
   File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 376, in start_weather_updater
     self.work()
   File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 165, in work
     self.update_menu(i)
   File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 621, in update_menu
     weather = self.weatherservices[index].get_weather()
   File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/wundergroundapi.py", line 149, in get_weather
     weather_data = self._get_weather()
   File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/wundergroundapi.py", line 120, in _get_weather
     weather_data['forecasts'][i]['low'] = weatherservice.change_temperature(gvff('low',i,parsed_json)['fahrenheit'],self.units.temperature)
 TypeError: string indices must be integers

Revision history for this message
Hugo Otto (hugootto) wrote :

0.7.9 running, but only shows data from Open Weather Map.
Switching to Yahoo brings:

-------------------------------------------------------
OpenWeatherMap Weather Service url:http://api.openweathermap.org/data/2.5/weather?id=2875881&appid=4516154e5c8a6494e7e13b550408c863
-------------------------------------------------------
-------------------------------------------------------
****** Updated weather
--- End of updating data in location 0 ---
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Saving...
****** Requesting timezone identificacion
******* Adquiring woeids *******
***** refreshing weather *****
--- Updating data in location 0 ---
****** Updating weather
****** Calculating rawOffset
********************************************************
********************************************************
06:50 << 23:50 << 20:11
********************************************************
********************************************************
************ === ************
Try: 3
Can't connect to HTTPS URL because the SSL module is not available.
************ === ************
****** Calculating rawOffset
********************************************************
********************************************************
06:50 << 23:50 << 20:11
********************************************************
********************************************************
************ === ************
Try: 2
Can't connect to HTTPS URL because the SSL module is not available.
************ === ************
****** Calculating rawOffset
********************************************************
********************************************************
06:50 << 23:50 << 20:11
********************************************************
********************************************************
************ === ************
Try: 1
Can't connect to HTTPS URL because the SSL module is not available.
************ === ************
****** Calculating rawOffset
********************************************************
********************************************************
06:50 << 23:50 << 20:11
********************************************************
********************************************************
************ === ************
Try: 0
Can't connect to HTTPS URL because the SSL module is not available.
************ === ************
Can't connect to HTTPS URL because the SSL module is not available.
Can't connect to HTTPS URL because the SSL module is not available.
Can't connect to HTTPS URL because the SSL module is not available.
Can't connect to HTTPS URL because the SSL module is not available.
****** Updated weather
--- End of updating data in location 0 ---
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

Revision history for this message
cement_head (andorjkiss) wrote :

Still broken on 15.10:

$ python my-weather-indicator
Traceback (most recent call last):
  File "my-weather-indicator", line 57, in <module>
    import comun
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/comun.py", line 29, in <module>
    import requests
ImportError: No module named requests

Revision history for this message
Hugo Otto (hugootto) wrote :
Download full text (3.2 KiB)

0.7.10 still not working with Yahoo: as before can't connect to HTTPS URL because the SSL module is not available.

Working with OpenWeather Map, wunderground and World Weather online

#####################################################
System: Linux
Machine: x86_64
Node: banana
Release: 4.4.0-18-generic
Version: #34-Ubuntu SMP Wed Apr 6 14:01:02 UTC 2016
Platform: Linux-4.4.0-18-generic-x86_64-with-Ubuntu-16.04-xenial
#####################################################

My-Weather-Indicator version: 0.7.10-0extras15.10.0

#####################################################
****** Requesting timezone identificacion
******* Adquiring woeids *******
***** refreshing weather *****
--- Updating data in location 0 ---
****** Updating weather
****** Calculating rawOffset
********************************************************
********************************************************
06:46 << 18:32 << 20:14
********************************************************
********************************************************
Can't connect to HTTPS URL because the SSL module is not available.
************ === ************
Try: 3
Can't connect to HTTPS URL because the SSL module is not available.
************ === ************
****** Calculating rawOffset
********************************************************
********************************************************
06:46 << 18:32 << 20:14
********************************************************
********************************************************
Can't connect to HTTPS URL because the SSL module is not available.
************ === ************
Try: 2
Can't connect to HTTPS URL because the SSL module is not available.
************ === ************
****** Calculating rawOffset
********************************************************
********************************************************
06:46 << 18:32 << 20:14
********************************************************
********************************************************
Can't connect to HTTPS URL because the SSL module is not available.
************ === ************
Try: 1
Can't connect to HTTPS URL because the SSL module is not available.
************ === ************
****** Calculating rawOffset
********************************************************
********************************************************
06:46 << 18:32 << 20:14
********************************************************
********************************************************
Can't connect to HTTPS URL because the SSL module is not available.
************ === ************
Try: 0
Can't connect to HTTPS URL because the SSL module is not available.
************ === ************
Can't connect to HTTPS URL because the SSL module is not available.
Can't connect to HTTPS URL because the SSL module is not available.
Can't connect to HTTPS URL because the SSL module is not available.
Can't connect to HTTPS URL because the SSL module is not available.
****** Updated weather
--- End of updating data in location 0 ---
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
****** Reques...

Read more...

Revision history for this message
cement_head (andorjkiss) wrote :

Fixed in 15.10 with OpenWeather Map

Revision history for this message
Hugo Otto (hugootto) wrote :

My-Weather-Indicator version: 0.7.10-0extras15.10.1
problem with SSL module missing fixed, Yahoo now working.

My-Weather-Indicator version: 0.7.10-0extras15.10.1
#####################################################
****** Requesting timezone identificacion
******* Adquiring woeids *******
***** refreshing weather *****
--- Updating data in location 0 ---
****** Updating weather
****** Calculating rawOffset
********************************************************
********************************************************
06:45 << 8:16 << 20:15
********************************************************
********************************************************
Bug #1568774 Can't connect to HTTPS URL because the SSL module is not available.
****** Updated weather
--- End of updating data in location 0 ---

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.