Traceback (most recent call last):


 "./foo.py", line 15, in <module>

TestModel.get("1")


 "/tmp/binsettest/lib/python3.6/site-packages/pynamodb/models.py", line 474, in get

return cls.from_raw_data(item_data)


 "/tmp/binsettest/lib/python3.6/site-packages/pynamodb/models.py", line 507, in from_raw_data

kwargs[attr_name] = attr.deserialize(attr.get_value(value))


 "/tmp/binsettest/lib/python3.6/site-packages/pynamodb/attributes.py", line 332, in deserialize

return set([b64decode(val.encode(DEFAULT_ENCODING)) for val in value])


 "/tmp/binsettest/lib/python3.6/site-packages/pynamodb/attributes.py", line 332, in <listcomp>

return set([b64decode(val.encode(DEFAULT_ENCODING)) for val in value])
AttributeError: 'bytes' object has no attribute 'encode'

Traceback (most recent call last):


 "<console>", line 1, in <module>


 "/usr/local/lib/python2.7/dist-packages/cities/models.py", line 216, in slugify

return '{}-{}'.format(self.id, unicode_func(self.name))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 1: ordinal not in range(128)
