Wont start on AWS
Closed this issue · 8 comments
trying to install and run ash on Debian:
sudo pip3 install ash-editor
admin:~$ ash
Traceback (most recent call last):
File "/usr/local/bin/ash", line 8, in <module>
sys.exit(run())
File "/usr/local/lib/python3.7/dist-packages/ash/ash_main.py", line 16, in run
app.run()
File "/usr/local/lib/python3.7/dist-packages/ash/main.py", line 112, in run
ret_code = curses.wrapper(self.app_main)
File "/usr/lib/python3.7/curses/__init__.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
File "/usr/local/lib/python3.7/dist-packages/ash/main.py", line 153, in app_main
self.theme_manager = ThemeManager(self)
File "/usr/local/lib/python3.7/dist-packages/ash/formatting/themeManager.py", line 15, in __init__
self.init_colors()
File "/usr/local/lib/python3.7/dist-packages/ash/formatting/themeManager.py", line 45, in init_colors
set_colors(colors, element_colors)
File "/usr/local/lib/python3.7/dist-packages/ash/formatting/colors.py", line 148, in set_colors
curses.init_color(index, rgb[0], rgb[1], rgb[2])
_curses.error: init_color() returned ERR
I'm connected via Putty, and it supports colors (eg. htop is green)
Or is there a compatibility black-white mode to test?
Seems to be a problem with the curses library, but will have to investigate. No compatibility mode at present, will look into adding it in an upcoming release.
Thanks, looks like there is some incompatiblity with init_color() and putty
" allows can_change_color() to succeed, but then init_color() would fail"
https://stackoverflow.com/questions/47686906/ncurses-init-color-has-no-effect
It also fails the same way in MobaXterm, which should have full color support based on this link.
Thanks for the info :) will close this issue then
Well a solution would be nice before closing :)
If putty and curses are incompatible there's nothing much I can do here. However, adding a black-n-white option would be a new feature (and not a bug patch) I will consider in an upcoming release. You can create a new issue as a feature-request for such a color mode.
No worries, I found https://github.com/zyedidia/micro it's a great alternative.
cheers!
Yes micro is great! Good luck!