stanfordkarel icon indicating copy to clipboard operation
stanfordkarel copied to clipboard

Black screen on M1 Mac

Open tadhgboyle opened this issue 3 years ago • 10 comments
trafficstars

Describe the bug When I execute a very simple Karel program it boots but the display is black (see screenshots and context section)

Expected behavior Karel program would display normally

Screenshots Screen Shot 2022-01-13 at 10 38 26

Desktop (please complete the following information):

  • OS: macOS 12.2
  • CPU: M1 Pro (could this be part of the issue, since its arm64?)
  • Python: 3.8

Additional context Code:

from stanfordkarel import *


def main():
    """ Karel program goes here. """
    turn_left()
    move()
    turn_left()


if __name__ == '__main__':
    run_karel_program()

tadhgboyle avatar Jan 13 '22 18:01 tadhgboyle

Hmm I think the M1 Macs could be the source of the problem, but I have no way of testing it out or trying to find a fix.

The next best thing would be to rewrite the GUI part of this project in a different, more globally supported framework than tkinter (which has its own problems). I would welcome all contributions towards this effort!

For now though, the best you can do is scour the internet for suggestions on getting tkinter working with the newer Macs.

TylerYep avatar Jan 13 '22 20:01 TylerYep

Screen Shot 2022-01-24 at 23 14 30 Interestingly enough, running it from the terminal yields a... half working Karel. Haha

tadhgboyle avatar Jan 25 '22 07:01 tadhgboyle

I'm having the same problem as above: A Karel with no world on an M1 mac. Did you ever find a solution @Aberdeener? I've also updated to Python 3.10, and am using Tkinter 8.6.

willdarling avatar Feb 07 '22 00:02 willdarling

I'm having the same problem as above: A Karel with no world on an M1 mac. Did you ever find a solution? @Aberdeener

Unfortunately not D:

Was near impossible to find anything related to tk on M1 online

tadhgboyle avatar Feb 07 '22 00:02 tadhgboyle

I am teaching an intro CS class using this package, and several students are having this problem. It is not isolated to M1 chips, but it only happens on iOS as far as I can tell. Happy to try to gather more information.

mrericreed avatar Oct 06 '22 16:10 mrericreed

Screen Shot 2022-01-24 at 23 14 30

Interestingly enough, running it from the terminal yields a... half working Karel. Haha

Some of my students who use Macs also have a similar problem. Their worlds would be all white and the walls would not be rendered (but still there and can be crashed into). Changing the system appearance setting from Dark to Light seems to solve the problem. Though none of them use M1 chips so it might not be the same problem.

panyutsriwirote avatar Aug 22 '23 10:08 panyutsriwirote