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

ovyjwfakut
3,299 PointsValueError: 'name' is required
The code displayed in Workspaces at 04:10 in the video returns a "ValueError: 'name' is required" when run on my machine.
from thieves import Thief
kenneth = Thief("Kenneth", sneaky=False)
print(kenneth.sneaky)
print(kenneth.agile)
print(kenneth.hide(8))
This code is slightly different to the code provided by the s3v1/rpg/play.py file in object_oriented_python.zip. That file contains the following code which works. Note the name="Kenneth" on line 3.
from thieves import Thief
kenneth = Thief(name="Kenneth", sneaky=False)
print(kenneth.sneaky)
print(kenneth.agile)
print(kenneth.hide(8))
I try to copy down code from the videos as practice, instead of using the course files, when possible. Is that just me? :) Has anyone else run into this?
1 Answer

ovyjwfakut
3,299 PointsAll right, I should probably have been more patient. This was addressed in the video about a minute after I resumed it. Somebody throw a tarp over me and delete my post :)