Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make flickrapi token storage directory configurable (was: [Errno 13] Permission denied: '/.flickr') #68

Closed
lahdo opened this issue Apr 21, 2016 · 4 comments

Comments

@lahdo
Copy link

lahdo commented Apr 21, 2016

I am receiving this error after deploying my django project on AWS. Why this lib is trying to create .flickr folder in /home/{username} ?

@lahdo
Copy link
Author

lahdo commented Apr 21, 2016

Ok - now I understand. It needs this folder to store the token. We can disable storing by setting store_token to false.

flickr = flickrapi.FlickrAPI(self.KEY, self.SECRET, format='parsed-json', store_token=False)

Anyway I think location of this folder should be configurable.

@sybrenstuvel sybrenstuvel changed the title [Errno 13] Permission denied: '/.flickr' Make flickrapi token storage directory configurable (was: [Errno 13] Permission denied: '/.flickr') Apr 23, 2016
@sybrenstuvel
Copy link
Owner

We can make the token cache directory configurable.

@hunterji
Copy link
Contributor

I'd appreciate this change as well.

sybrenstuvel added a commit that referenced this issue Jan 15, 2017
The token storage directory can now be configured by passing the new
`token_cache_location` constructor parameter.
@sybrenstuvel
Copy link
Owner

Released as part of version-2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants