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! While you're at it, check out some resources Treehouse students have shared here.

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

Can't import anything using the shell 'no module named 'x'

following along with the video as I usually do and for some reason I can no longer import classes like Thief from thieves.py and everything else that I need to import, spelling is fine but im wondering if this has to do with the files being in the rpg folder directory which I have tried with no result, here's the error.

from characters import Character
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'characters'

1 Answer

Steven Parker
Steven Parker
243,228 Points

You didn't provide a link to the course for confirmation; but if the files are in a "rpg" folder, perhaps you were supposed to "cd rpg" first before starting Python.