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 trialMohammad Aslam
6,053 PointsConsole 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
3 Answers
Mohammad Aslam
6,053 PointsAlright, thanks
Quinton Rivera
5,177 PointsWhat is the solution i have the same problem.
Mohammad Aslam
6,053 PointsYou have to go to the rpg directory first, then the file play.py
Kaytlynn Ransom
Python Web Development Techdegree Student 11,409 PointsI'm having the same problem too. How exactly do you go to the rpg directory?
Josh Allen
Courses Plus Student 14,544 Pointsif you type in
cd rpg
in the console it should get you into that directory
Yoon Choi
1,649 Pointsnone of these work!!!
ali mur
UX Design Techdegree Student 23,377 Pointsali mur
UX Design Techdegree Student 23,377 PointsYou need to go to rpg directory.