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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![brandon supinski](https://secure.gravatar.com/avatar/9cd2decf89c8b7349f7ac4bf39294479?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
brandon supinski
Python Development Techdegree Graduate 27,983 PointsGetting error when trying to run play.py, I redid the video three times now still getting it.
When trying to run play.py I get error: python: can't open file 'play.py': [Errno 2] No such file or directory. Also have checked to make sure it is in the RPG folder
I am using python play.py I checked that the file was named play.py even copied file name to run it.
2 Answers
![Steven Parker](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,688 PointsIs the RPG folder your current working folder? You might need to "cd RPG
" first. Or, you might invoke it from the root folder using "python RPG/play.py
".
If neither of these work, try making a snapshot of your workspace and post the link to it here. That will enable us to replicate your issue.
![silasholt](https://secure.gravatar.com/avatar/ca036df0cc207d61362733a6eabf7870?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
silasholt
4,181 PointsI had the same problem and this is what I typed. python rpg/play.py and it worked if. If you will notice in the video his work space had the rpg/: already added to it but mine didn't. just something to watch for in future videos. Silas
Brent Simpson
9,153 PointsBrent Simpson
9,153 PointsThank you, I thought I was losing my mind. Can't believe I forgot to change the directory.