New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: 'unicode' does not have the buffer interface #17
Comments
Looks like this is an issue in Werkzeug when you use Python 2.7.7. Here is the bug report. I think the easiest workaround is to downgrade to Python 2.7.6. |
Ok, thanks for the quick response! I couldn't tell whether I'd maybe left a step out (db init, migrate, runserver, etc.) that was necessary. Understanding the bug you linked to, I was able to resolve this just by modifying my python 2.7 virtualenv: cdsitepackages
vim werkzeug/security.py Searched for My user was still unconfirmed, but I resolved that by just setting 'confirmed' when adding the user at the manage.py shell: u = User(email='biff@example.com', username='biff', password='cat', confirmed=True) |
Great, glad you figured out a workaround. Note that in this application all users are created unconfirmed. Each user receives an email with a confirmation link, the state changes to confirmed when the link is clicked. |
Another way to solve the issues is upgrading Werkzeug from 0.9.4 to 0.9.6 |
Yes, looks like they released a fixed for this bug now, but note it is 0.9.5 the version that includes this fix. |
…ot have the buffer interface' see here: miguelgrinberg/flasky#17
I updated to 0.9.6 and now the error is also gone :) |
I'm attempting to use this repo for the first time as I work through the book. I run into an error when trying to log in, after creating a user. I've tried going through the new user registration flow within the app (though I don't have gmail configured) and also tried adding a user as the book describes in chapter eight:
From the terminal, the error shows as:
The full error on the app itself is:
The text was updated successfully, but these errors were encountered: