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

Kohei Ashida
Kohei Ashida
4,881 Points

Console is slightly different between the video and the workspace.

In the video, the first line of the console begins with "treehouse:~/workspace/rpg $" but the one in my workspace begins with "treehouse:~/workspace $". because of that, I guess, the console shows an error that "python: can't open file 'play.py': [Errno 2] No such file or directory". What should I do with this?

1 Answer

Steven Parker
Steven Parker
222,120 Points

The difference in the prompt indicates you are using a different working directory. If your files are structured like in the video, you can switch to the correct directory with this command:

cd rpg

Once you have done that, the Python command should start the program.

Kohei Ashida
Kohei Ashida
4,881 Points

Thanks a lot Steven! The console now works just like in the video.