kolekto config problem
cava opened this issue · comments
cava commented
When i try to configure kolekto i get:
Traceback (most recent call last):
File "/usr/local/bin/kolekto", line 85, in <module>
main()
File "/usr/local/bin/kolekto", line 78, in main
args.command(args, config)
File "/usr/local/lib/python2.7/dist-packages/kolekto/commands/config.py", line 17, in run
config = printer.edit(fconfig.read())
File "/usr/local/lib/python2.7/dist-packages/kolekto/printer.py", line 145, in edit
subprocess.Popen([self._editor, ftmp.name]).wait()
File "/usr/lib/python2.7/subprocess.py", line 709, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Thanks
Antoine Millet commented
Hi,
Are you sure your $EDITOR environment variable is properly configured?
The behavior of the config command for choosing the editor is the following:
- (if any) take the editor found in the --editor option (eg: kolekto config --editor vim)
- (if any) take the editor found in the $EDITOR environment variable
- take vim as editor
It seem that your $EDITOR environment variable is filled with a non-installed editor, or that the variable is not set and that Kolekto is trying to use vim, which is not installed.
cava commented
there was a problem with the $EDITOR variable and that definitely worked. thanks :)