Closed AdamGreenhill closed 8 years ago
The reason for the problem: tldr.py
can't find the index.json, which will be used to find the command page.
Where do you put the the tldr repo that contains the man pages? From the error log, it seems that you put it under /usr/local/lib/python2.7/dist-packages/tldr
folder?
Oh I see, I was using the tldr installation directory, instead of the tldr-pages directory.
Yeah, the directory should be the location that contains the man pages so that we can find the pages. Close it now.
@AdamGreenhill, Hi Adam, how did you change the directory location to the one that contains man pages as said by @lord63. I am struck there! :(
@ymdatta Just open the .tldrrc file(should be ~/.tldrrc
) and just edit repo_directory
section. Or you can delete the existed .tldrrc file and regenerate the file with tldr init
.
I decided to move this out of the previous thread for better visibility. After successfully installing tldr.py (i.e. by performing
sys.exit(cli())
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in call
return self.main(_args, _kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, _ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
return callback(_args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/tldr/cli.py", line 93, in find
find_page(command)
File "/usr/local/lib/python2.7/dist-packages/tldr/cli.py", line 28, in find_page
encoding='utf-8') as f:
IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/tldr/pages/index.json'
pip install tldr.py
), and creating the ~/.tldrcc (i.e. withtldr.py init
. I attempt to execute tldr.py and receive the following errors: .# tldr find sed Traceback (most recent call last): File "/usr/local/bin/tldr", line 11, inMy environment: I am using Debian 8, with Python 2.7. I have also tried this on the latest version of openSUSE tumbleweed and received the same error after performing the same steps.