python-console-snake icon indicating copy to clipboard operation
python-console-snake copied to clipboard

Fix addstr() _curses.error on Ubuntu

Open lesander opened this issue 9 years ago • 4 comments

Fixes the following game-breaking error on Ubuntu (python 2.7.6):

File "snake/graphics.py", line 16, in drawTile
screen.addstr(y, x, tile, color)
_curses.error: addstr() returned ERR

See this thread for more information: http://ubuntuforums.org/showthread.php?t=457689&p=3208206#post3208206 Cheers :beers:

lesander avatar May 20 '15 15:05 lesander

Fixes same issue on Debian Jessie as well :+1:

fpytloun avatar May 27 '15 12:05 fpytloun

Bump. Is this going to be merged any time soon?

lesander avatar Sep 24 '15 16:09 lesander

I have encountered the same problem as you. did you solve it

BENZJ avatar Jan 20 '16 00:01 BENZJ

@BENZJ I solved it by adding two 'try' code blocks, see my commit https://github.com/lesander/python-console-snake/commit/dd494ffc9febb2ab1fb41d7f937f0a41d102be21, or the changed file: https://github.com/tancredi/python-console-snake/pull/10/files

This isn't an issue, it's a pull-request (fix) waiting to be merged by @tancredi

lesander avatar Jan 20 '16 08:01 lesander