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 trialPatrick Borosky
Courses Plus Student 10,615 PointsPacking/Unpacking syntax error?
So, I tried to follow the code from the video and couldn't get the code to work in the workspace at all. I end up getting a syntax error. I even downloaded and directly uploaded the code then got the same error. Is anyone else having the same issue?
Ryan S
27,276 PointsHi Patrick,
It would be helpful if you provided the details of your syntax error.
Dylan Davenport
Courses Plus Student 2,645 PointsWhat version of Python are you using?
Christopher Shaw
Python Web Development Techdegree Graduate 58,248 PointsPlease post your code so we can suggest where it is going wrong.
1 Answer
Bryan Castillo
2,484 PointsIf its the same syntax error that i was facing. on your unpacker line you should add curly braces to it. Example: unpacker(**({"last_name": "Castillo", "first_name": "Bryan"}))
Haitao Huang
2,834 PointsHaitao Huang
2,834 PointsI've encountered the same issue several times!