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

tvnamer fails when used by multiple users #55

Closed
tremby opened this issue Aug 29, 2012 · 1 comment
Closed

tvnamer fails when used by multiple users #55

tremby opened this issue Aug 29, 2012 · 1 comment

Comments

@tremby
Copy link
Contributor

tremby commented Aug 29, 2012

Since files are cached in /tmp/tvdb_api and that directory is owned by whatever user first used tvnamer, if another user comes along and tries to grab info on another show not already cached they get an error since tvnamer can't save the file into that directory.

Example error message:

DataRetrievalError("Error with www.thetvdb.com: Could not connect to server: [Errno 2] No such file or directory: '/tmp/tvdb_api/9dc4c83476074703f5bab38e7226c83b.body'",)

I guess you could just have the username as part of the temporary directory name, or have the files flat in /tmp rather than in a subdirectory (this way they'd still be shared) or maybe there's a better solution.

@dbr
Copy link
Owner

dbr commented Oct 2, 2012

Fixed in tvdb_api==1.8.1 - if you upgrade that, it should all work again

On platforms with os.getuid the path is /tmp/tvdb_api-u501 (for user ID 501), and on others (Windows) it's includes the username (from getpass.getpass)

@dbr dbr closed this as completed Oct 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants