Package: python3-flickrapi
Version: 2.1.2-5.1

Dear maintainer,

apologies in advance, I know virtually nothing about Python.

I use flickmirrorer ( https://github.com/markdoliner/flickrmirrorer )
to obtain a backup copy of my Flickr photostream, but run into an
error: 

/flickrmirrorer-master/flickrmirrorer.py --delete-unknown --statistics
[path]

Traceback (most recent call last):
  File "test/flickrmirrorer-master/flickrmirrorer.py", line 820, in
<module>
    main()
  File "test/flickrmirrorer-master/flickrmirrorer.py", line 814, in
main
    mirrorer = FlickrMirrorer(args)
  File "test/flickrmirrorer-master/flickrmirrorer.py", line 191, in
__init__
    self.flickr = flickrapi.FlickrAPI(api_key=API_KEY,
secret=API_SECRET, format='parsed-json')
  File "/usr/lib/python3/dist-packages/flickrapi/core.py", line 201, in
__init__
    self.flickr_oauth = auth.OAuthFlickrInterface(api_key, secret,
self.token_cache)
  File "/usr/lib/python3/dist-packages/flickrapi/auth.py", line 159, in
__init__
    if oauth_token.token:
  File "/usr/lib/python3/dist-packages/flickrapi/tokencache.py", line
177, in token
    (self.api_key, self.lookup_key))
sqlite3.OperationalError: no such table: oauth_tokens


This appears to be identical to: 
https://github.com/sybrenstuvel/flickrapi/issues/75

Manually applying the described fix works for me:
https://github.com/hunterji/flickrapi/commit/e6c8004e61952d5e36929ff4d985b28aa5d3bb38


Since this fix is from Jan 21, 2017, I am quite surprised not to find
this fix included into python3-flickrapi_2.1.2-5.1_all.deb from Sept.
13 2019.

Previously, using python-flickrapi_2.1.2-5_all.deb, I never experienced
similar issues.

I also noted a flickrapi version 2.4.0 over here: 
https://pypi.org/project/flickrapi/ which I have not yet tried.

Please determine whether this is something that requires fixing.
Many thanks, Rob

Reply via email to