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

Luis Gutierrez
Python Development Techdegree Student 4,291 PointsI get a nameerror name 'book' is not defined. under the add_csv() function??
app.py file when using the for loop. I get a name error book is not defined
2 Answers

Travis Alstrand
Treehouse Project ReviewerHey there! It sounds like it's likely a scoping or import issue. Make sure you still have Book imported up top.
She goes over two different loops in this video so I'm not exactly sure what part you're at and it's really hard to say without seeing the code. Can you create a snapshot of your workspace and provide the link to it here please?

Luis Gutierrez
Python Development Techdegree Student 4,291 Pointsindeed its an importing issue. thanks!!!