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

Kohei Ashida
Kohei Ashida
4,882 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
231,271 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,882 Points

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