Can't connect to HTTPS URL because the SSL module is not available

Bug #1568774 reported by Alin Andrei
36
This bug affects 8 people
Affects Status Importance Assigned to Milestone
my-weather-indicator
Fix Released
Undecided
Lorenzo Carbonell

Bug Description

Using My Weather Indicator version 0.7.9-0extras15.10.0 in Ubuntu 16.04, I receive the following error when using Yahoo as the weather service (Open Weather Map works properly):

andrei@andrei-desktop:/opt/extras.ubuntu.com/my-weather-indicator/bin$ ./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 0x7fd0659bd128>
/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
#####################################################
System: Linux
Machine: x86_64
Node: andrei-desktop
Release: 4.4.0-17-generic
Version: #33-Ubuntu SMP Tue Mar 29 17:17:28 UTC 2016
Platform: Linux-4.4.0-17-generic-x86_64-with-Ubuntu-16.04-xenial
#####################################################

My-Weather-Indicator version: 0.7.9-0extras15.10.0
#####################################################
****** Requesting timezone identificacion
******* Adquiring woeids *******
***** refreshing weather *****
--- Updating data in location 0 ---
****** Updating weather
****** Calculating rawOffset
********************************************************
********************************************************
06:39 << 12:53 << 19:55
********************************************************
********************************************************
************ === ************
Try: 3
Can't connect to HTTPS URL because the SSL module is not available.
************ === ************
****** Calculating rawOffset
********************************************************
********************************************************
06:39 << 12:53 << 19:55
********************************************************
********************************************************
************ === ************
Try: 2
Can't connect to HTTPS URL because the SSL module is not available.
************ === ************
****** Calculating rawOffset
********************************************************
********************************************************
06:39 << 12:53 << 19:55
********************************************************
********************************************************
************ === ************
Try: 1
Can't connect to HTTPS URL because the SSL module is not available.
************ === ************
****** Calculating rawOffset
********************************************************
********************************************************
06:39 << 12:53 << 19:55
********************************************************
********************************************************
************ === ************
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 ---

Revision history for this message
Alin Andrei (nilarimogard) wrote :

As a temporary solution to get Yahoo Weather to work, replace "https://query.yahooapis.com" with "http://query.yahooapis.com" (use "http" instead of "https") in /opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/wyahooapi.py (line 108).

Changed in my-weather-indicator:
status: New → Fix Released
Revision history for this message
Alin Andrei (nilarimogard) wrote :
Download full text (4.3 KiB)

Unfortunately the bug was not fixed with the latest release (0.7.10). The same problem continues to occur with Yahoo Weather:

$ ./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 0x7fbb6799fba8>
/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:31: 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
#####################################################
System: Linux
Machine: x86_64
Node: andrei-desktop
Release: 4.4.0-17-generic
Version: #33-Ubuntu SMP Tue Mar 29 17:17:28 UTC 2016
Platform: Linux-4.4.0-17-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:37 << 11:58 << 19:56
********************************************************
********************************************************
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:37 << 11:58 << 19:56
********************************************************
********************************************************
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
*********************************...

Read more...

Changed in my-weather-indicator:
status: Fix Released → New
Revision history for this message
Lorenzo Carbonell (lorenzo-carbonell) wrote :

Please try last version. I used your solution, so if it can not connect to Yahoo then use url "http".

This must be a problem of 16.04 becouse in 15.10 there is no problem.

Best regards.

Changed in my-weather-indicator:
assignee: nobody → Lorenzo Carbonell (lorenzo-carbonell)
status: New → Fix Released
Revision history for this message
Alin Andrei (nilarimogard) wrote :

It now works properly in Ubuntu 16.04, thank you!

Revision history for this message
Jonathan Lathrop (jonathan-lathrop) wrote :

It is fixed in the sense that it reports the weather... but there is still an error which is reported in the syslog ... the error along with the raw weather data is recorded in the log every hour... changing the https://query.yahoo... to http://querry.yahoo... stopped the error reports for a while yet the errors are now showing up again even though the https change is still in place ... is there any other place it could be getting the https://query.yahoo.com address from?

Here is a section of the syslog:

Jun 19 10:12:28 jonathan-asus64 gnome-session[1548]: ***** refreshing weather *****
Jun 19 10:12:28 jonathan-asus64 gnome-session[1548]: <urlopen error unknown url type: https>
Jun 19 10:12:28 jonathan-asus64 gnome-session[1548]: --- Updating data in location 0 ---
Jun 19 10:12:28 jonathan-asus64 gnome-session[1548]: ****** Updating weather
Jun 19 10:12:28 jonathan-asus64 gnome-session[1548]: ****** Calculating rawOffset
Jun 19 10:12:28 jonathan-asus64 gnome-session[1548]: ****** Updated weather
Jun 19 10:12:28 jonathan-asus64 gnome-session[1548]: {'forecast_information': {'city': '...', 'current_date_time': '', 'forecast_date': '', 'postal_code': '', 'longitude_e6': '', 'unit_system': 'SI', 'latitude_e6': ''}, 'ok': True, 'current_conditions': {'sunset_time': '20:36', 'pressure': '30.1

... etc... many lines of weather report ...

Revision history for this message
hackel (hackel) wrote :

Just confirming that this is not fixed for me with 0.8.1-0extras16.04.1. I'm still seeing a lot of these errors:
<urlopen error unknown url type: https>
It's still working fine for me (with Weather Underground), but https should be required for all api calls.

Revision history for this message
Achim Behrens (k1l) wrote :

Getting this error today. Weather Indicator is not loading at all now.

Revision history for this message
Pascal Mons (anton+) wrote :

Well, it was working on Xenial 16.04.1 with its original Kernel 4.4.0, however today I installed Kernel 4.8.0 (from Yakkety 16.10 and PPA ppa:canonical-kernel-team/ppa) in Xenial 16.04.1 and it's not working I get the same bug reported here ...

$ /opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator
<gettext.GNUTranslations object at 0x7f614a2b0fd0>
#####################################################
System: Linux
Machine: x86_64
Node: Julius-PC
Release: 4.8.0-25-generic
Version: #27~16.04.1-Ubuntu SMP Thu Oct 13 17:16:44 UTC 2016
Platform: Linux-4.8.0-25-generic-x86_64-with-Ubuntu-16.04-xenial
My-Weather-Indicator version: 0.8.1-0extras16.04.1
#####################################################

****** Requesting timezone identificacion
******* Adquiring woeids *******
<urlopen error unknown url type: https>
1
***** refreshing weather *****
<urlopen error unknown url type: https>
--- Updating data in location 0 ---
****** Updating weather
****** Calculating rawOffset
Bug #1568774 Can't connect to HTTPS URL because the SSL module is not available.
****** Updated weather
None
--- End of updating data in location 0 ---
*** Looking For Internet ***
<urlopen error unknown url type: https>
*** Internet Found ***
***** refreshing weather *****
<urlopen error unknown url type: https>
--- Updating data in location 0 ---
****** Updating weather
****** Calculating rawOffset
Bug #1568774 Can't connect to HTTPS URL because the SSL module is not available.
$

It shows up as Not Available N/A in the task bar.

It looks like updating to the last available Kernel did not work at all with the current software as it is ... For your information running https://www.google.com in Firefox is working as expected.

Revision history for this message
Pascal Mons (anton+) wrote :

Replacing "https://query.yahooapis.com" with "http://query.yahooapis.com" (use "http" instead of "https") in /opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/wyahooapi.py as Alin Andrei suggested does not work either :

$ /opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator
<gettext.GNUTranslations object at 0x7efd54075fd0>
#####################################################
System: Linux
Machine: x86_64
Node: Julius-PC
Release: 4.8.0-25-generic
Version: #27~16.04.1-Ubuntu SMP Thu Oct 13 17:16:44 UTC 2016
Platform: Linux-4.8.0-25-generic-x86_64-with-Ubuntu-16.04-xenial
My-Weather-Indicator version: 0.8.1-0extras16.04.1
#####################################################

****** Requesting timezone identificacion
******* Adquiring woeids *******
<urlopen error unknown url type: https>
1
***** refreshing weather *****
<urlopen error unknown url type: https>
--- Updating data in location 0 ---
****** Updating weather
****** Calculating rawOffset

Then I typed a <Ctrl><C>
$

Bug #1568774 is not identified as before ... the process goes nowhere from "Calculating rawOffset"

And it looks like the developer already performs the substitution when an error is identified.

This time it will require I believe a better interaction with the Kernel than before. Or may be anyone has a better suggestion ?

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.