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

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.