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 Object-Oriented Python Inheritance Multiple Superclasses

can't open file 'play.py':

Been watching the "Multiple Superclasses" tutorial and trying out everything in workspaces.

However when I try to run play.py, I get this error: "python: can't open file 'play.py': [Errno 2] No such file or directory".

3 Answers

Got it. I had not changed the directory from workspace to rpg using "cd rpg" in the console.

Thank you for posting this! I couldn't figure out how to get to rpg directory

Always welcome Erin