Help get this topic noticed by sharing it on Twitter, Facebook, or email.
I'm sorry to hear that you had trouble with that Packt Publishing book.
I checked their page for the book and it does have some errata that might be
useful to you. https://www.packtpub.com/books/content/support/19413
You may also want to download the code from that page, as they
may have updated it since the book came out.
O'Reilly Book Support