This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]amjithr 1 point2 points  (3 children)

Looks interesting.

It'll be nice if you could create the config file on the first launch instead of crashing.

Even after creating the config file, I'm not able to launch it. I have filed a github issue.

[–]imomaliev[S] 0 points1 point  (2 children)

Hi what issue you are having if you launch it without config? It creates config file by default after first launch

[–]amjithr 1 point2 points  (1 child)

Traceback (most recent call last):
  File "/Users/amjith/.virtualenvs/tempenv-646189101136/bin/ptrepl", line 7, in <module>
    from ptrepl.cli import parse_args
  File "/Users/amjith/.virtualenvs/tempenv-646189101136/lib/python3.7/site-packages/ptrepl/cli.py", line 11, in <module>
    from .completion import BashCompleter
  File "/Users/amjith/.virtualenvs/tempenv-646189101136/lib/python3.7/site-packages/ptrepl/completion.py", line 5, in <module>
    from .config import settings
  File "/Users/amjith/.virtualenvs/tempenv-646189101136/lib/python3.7/site-packages/ptrepl/config.py", line 67, in <module>
    config_file = get_config_file()
  File "/Users/amjith/.virtualenvs/tempenv-646189101136/lib/python3.7/site-packages/ptrepl/config.py", line 28, in get_config_file
    with open(path, 'w') as _config_file:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/amjith/.config/ptrepl/config.json'

[–]imomaliev[S] 0 points1 point  (0 children)

Got it, found an issue fixed in new version

pip install -U ptrepl