Skip to content
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

Monty Hall Game Issue #14

Open
1503Deimos opened this issue May 2, 2021 · 3 comments
Open

Monty Hall Game Issue #14

1503Deimos opened this issue May 2, 2021 · 3 comments

Comments

@1503Deimos
Copy link

Hi there,

Ive had fun running through this book. Already have Real World Python and cant wait to dive into it also...

Unfortunately with the Monty Hall Game exercise, I keep getting the same error. Ive copy and pasted your version to make sure I wasnt missing a typebo or something. All files were downloaded and in the same folder as the code for the game. Im using Spyder IDE (via Anaconda) and Mac OS.

error reads:
runfile('/Users/+++++/Monty Hall Game/monty_hall_gui.py', wdir='/Users/+++++/PythonPractice/Monty Hall Game')
Traceback (most recent call last):

File "/Users/+++++/Monty Hall Game/monty_hall_gui.py", line 172, in
game = Game(root)

File "/Users/+++++/PythonPractice/Monty Hall Game/monty_hall_gui.py", line 26, in init
self.create_widgets()

File "/Users/+++++/PythonPractice/Monty Hall Game/monty_hall_gui.py", line 32, in create_widgets
self.photo_lbl = tk.Label(self.parent, image=img,

File "/opt/anaconda3/lib/python3.8/tkinter/init.py", line 3143, in init
Widget.init(self, master, 'label', cnf, kw)

File "/opt/anaconda3/lib/python3.8/tkinter/init.py", line 2567, in init
self.tk.call(

TclError: image "pyimage6" doesn't exist

Any help is greatly appreciated. Thanks for the good read!!

@rlvaugh
Copy link
Owner

rlvaugh commented May 2, 2021

@1503Deimos
Copy link
Author

Wow...all I had to do was restart the kernel. Spent like 3 hours the other night googling everything. Thanks!

@rlvaugh
Copy link
Owner

rlvaugh commented May 4, 2021

Great!

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

No branches or pull requests

2 participants