davidchua / pymessenger

A Python Wrapper for the FB Messenger Bot API (Send/Receive API)
MIT License
457 stars 185 forks source link

fix error (AttributeError: 'str' object has no attribute 'value') #48

Closed SteveRoland closed 6 years ago

SteveRoland commented 6 years ago

fix error (AttributeError: 'str' object has no attribute 'value')

SteveRoland commented 6 years ago

When I test in the python 2.7, raised this error. the pymessenger uses the enum class. But, the python 2.7 does not have this class. So, you want to this pymessenger in the python 2.7, pip install the "enum34". (pip install enum34)

Thanks.