Skip to content

Remove tkinter dependency to fix gitpod #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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