Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Object-Oriented Python Inheritance Multiple Superclasses

Manal El
Manal El
3,563 Points

Can't open the python files in the rgp folder

Hi, while trying to run the python files I encountered the following error although the files do exist in the folder, any help would be greatly appreciated :)

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

2 Answers

Harris Handoko
Harris Handoko
3,932 Points

You are in the wrong folder. In your case, your console probably looks like this:

treehouse:~/workspace$

type in "cd rpg" without the quotes. That should change the directory to rpg.

treehouse:~/workspace/rpg$
Yoon Choi
Yoon Choi
1,649 Points

THIS DOES NOT WORK EITHER

James Stirrat
James Stirrat
3,725 Points

cd workspace/rpg worked.