Closed pritam-dey3 closed 3 years ago
Works fine for me... I suspect that this is something to do with your Python installation. What are you running and how did you get it?
Thinking about it some more... You are clearly using a Windows system based on the code in the stack trace, but to hit that error, something must have erroneously passed in the wrong number of supported colours to the renderers.
Are you running with the sample and asciimatics code completely unchanged, or have you made some tweaks for your ascii.py application?
I just copy pasted the code. I did try to remove parts of it after getting error. The only thing changed is black formatting the code maybe. I am using python 3.8.6 in a virtual environment and windows terminal.
Well... Something's not right here. The Windows Screen only ever sets colours
to 8, so it won't ever use colour 16. Can you show me your changes please?
Can you also try running this code?
from asciimatics.screen import Screen
screen = Screen.open()
screen.close()
print(type(screen))
print(screen.colours)
Any progress? I assume silence means it's working now... Will close in a few days if there's no update.
I'm assuming this fixed it, so am closing. Feel free to get back in touch if you still have a problem.
This error is occurring both for
python.png
andgrumpy_cat.jpg
To Reproduce Run samples/images.py
System details (please complete the following information):