Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Object-Oriented Python (retired) Objects What Are Objects And Classes?

Drew Bissonnette
Drew Bissonnette
309 Points

What can cause this error? ImportError: cannot import name 'Monster' I've re done this 5x times from scratch.

This is my full error:

from monster import Monster
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'Monster'

I've restarted this about 5x from the start and followed the video. What could I be missing?

1 Answer

Drew Bissonnette
Drew Bissonnette
309 Points

I figured it out, I had forgot to sale the file first. I am all set now. :)

William Watlington
William Watlington
3,347 Points

I swear every time I can't figure out why something isn't working in Workspaces it's because I forgot to save.