Skip to content

Conversation

Fosna
Copy link

@Fosna Fosna commented Mar 27, 2020

It's beyond my understanding why this doesn't work in gitpod with message:

Traceback (most recent call last):
  File "/workspace/Snake-Game/snake.py", line 5, in <module>
    import tkinter as tk
  File "/home/gitpod/.pyenv/versions/3.7.7/lib/python3.7/tkinter/__init__.py", line 36, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
``
This is a proposed fix.

It's beyond my understanding why this doesn't work in gitpod with:
```Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "/workspace/Snake-Game/snake.py", line 5, in <module>
    import tkinter as tk
  File "/home/gitpod/.pyenv/versions/3.7.7/lib/python3.7/tkinter/__init__.py", line 36, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
``
This is a fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant