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

Cache saving empty file and then displaying empty pages #48

Closed
ViktorBarzin opened this issue Nov 23, 2017 · 5 comments
Closed

Cache saving empty file and then displaying empty pages #48

ViktorBarzin opened this issue Nov 23, 2017 · 5 comments

Comments

@ViktorBarzin
Copy link

First of all my environment:
Kubuntu 17.04
python3.6
None of the env variables in the man is set.

Installing the client and running it for the first time fetches the pages correctly and creates s $HOME/.tldr_cache page with the cached command. However the saved file is empty and running the tldr command again with the same parameter yields an empty response.
tldr -u says it is updating cache but does not seem to work.

Workaround for this is to delete the $HOME/.tldr_cache folder

Oh and by the way it does not seem to take into consideration env variables at all. Whether they are in ~/.bashrc; /etc/environment or other similar place, not taken into consideration.

@WheresWardy
Copy link

From the looks of the code this isn't Python 3-compatible, running with Python 2 works

@waldyrious
Copy link
Member

@ViktorBarzin this sounds like a dupe of #31. Can you please check if that's the case?

@ViktorBarzin
Copy link
Author

Yes it is the same problem. Should have read the old issue before opening this one.
pip install git+https://github.com/iliakonnov/tldr-python-client.git
does fix the problem. Guess default version in pip is not updated yet.
Thank you

@juliohm
Copy link

juliohm commented Nov 27, 2017

This issue is affecting every single user of the package on Python 3.

@waldyrious
Copy link
Member

Yeah. I suppose it's worth reopening that issue until an actual release is made. I'll close this one as a duplicate, thanks for confirming.

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

4 participants