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

Console not working for python play.py

Hi,

When I try to run the python play.py file, I get an error message:

"python: can't open file 'play.py': [Errno 2] No such file or directory".

Also, my console reads treehouse:/workspace whereas in the video the console reads treehouse:/workspace.rpg.

Can someone please help me with this so I can run the code?

Thanks

You need to go to rpg directory.

3 Answers

Alright, thanks

Quinton Rivera
Quinton Rivera
5,177 Points

What is the solution i have the same problem.

You have to go to the rpg directory first, then the file play.py

Josh Allen
PLUS
Josh Allen
Courses Plus Student 14,544 Points

if you type in

cd rpg

in the console it should get you into that directory

Yoon Choi
Yoon Choi
1,649 Points

none of these work!!!