Python Object-Oriented Python Inheritance Multiple Superclasses

Olebogeng Nkele
Olebogeng Nkele
3,011 Points

Why do i keep getting ModuleNotFoundError: No module named 'thieves' whenevr i try to run my code in play.py

Please Help

2 Answers

Tobiasz Lorenc
Tobiasz Lorenc
3,645 Points

hope u created play.py out form RPG folder and u try to start from out in console u have treehouse:~/workspace$, and u need treehouse:~/workspace/rpg$ <---- There is thieves.py class

Simon Sporrong
Simon Sporrong
35,095 Points

as Tobiasz Lorenc said, you need to be in the rpg folder. You can type 'cd rpg' in the console (not when you're in the python shell though) to enter that folder. Also make sure all your classes are inside the rpg folder.