$ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import qrencode
>>> qrencode.encode("test")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/qrencode/__init__.py", line 47, in encode
im = Image.fromstring('L', (size, size), data)
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2063, in fromstring
"Please call frombytes() instead.")