python-flickrapi 1.2 cannot connect to Flickr at all (SSL required)

Bug #1335350 reported by Alexander-zayats
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
python-flickrapi (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Since recently Flickr requires all requests to be SSL-only.

Hence current version cannot communicate to Flickr anymore.

New FlickrAPI version 1.4 released June 18th solves this issue. See change log http://stuvel.eu/flickrapi/changelog

It would be great to have new version in repository.

Tech details:

# lsb_release -rd
Description: Ubuntu 14.04 LTS
Release: 14.04

# apt-cache policy python-flickrapi
python-flickrapi:
  Installed: 1.2-3
  Candidate: 1.2-3
  Version table:
 *** 1.2-3 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Mary Gardiner (puzzlement) wrote : Re: python-flickr 1.2 cannot connect to Flickr at all (SSL required)

If a full version upgrade is not possible in a released version of Ubuntu, there's a one character change that allows 1.2 to use SSL:

--- /usr/share/pyshared/flickrapi/__init__.py 2008-09-21 06:50:43.000000000 +1000
+++ __init__.py 2014-07-06 09:56:32.000000000 +1000
@@ -386,7 +386,7 @@
         if self.cache and self.cache.get(post_data):
             return self.cache.get(post_data)

- url = "http://" + FlickrAPI.flickr_host + FlickrAPI.flickr_rest_form
+ url = "https://" + FlickrAPI.flickr_host + FlickrAPI.flickr_rest_form
         flicksocket = urllib.urlopen(url, post_data)
         reply = flicksocket.read()
         flicksocket.close()

summary: - Version upgrade required
+ python-flickr 1.2 cannot connect to Flickr at all (SSL required)
Changed in python-flickrapi (Ubuntu):
status: New → Confirmed
summary: - python-flickr 1.2 cannot connect to Flickr at all (SSL required)
+ python-flickrapi 1.2 cannot connect to Flickr at all (SSL required)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-flickrapi - 2.4-0.1

---------------
python-flickrapi (2.4-0.1) unstable; urgency=medium

  * Non-maintainer upload.
  * pypi archive does not contain any test, switch to GH
  * New upstream version 2.4 (Closes: #946767, LP: #1335350, LP: #1899404)
  * Switch to DebHelper 13
  * Replace nose by pytest (Closes: #1018496)
  * Add build-dep on six (Closes: #1073368)
  * Set Rules-Requires-Root: no
  * Remove old patches

 -- Alexandre Detiste <email address hidden> Mon, 17 Jun 2024 12:03:46 +0200

Changed in python-flickrapi (Ubuntu):
status: Confirmed → Fix Released
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.