sushant10 / HQ_Bot

📲 Bot to help solve HQ trivia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NameError: name 'buffer' is not defined

Element21 opened this issue · comments

I have python 3.6 and all the required packages installed but whenever I press "s" it gives me this error message.

buffer error

How did you resolve this, I am getting the same error, Please help me if you can.

The pyscreenshot screenshot function only works on Mac and windows. To solve I think I just changed "buffer" with "to_bytes" in /usr/local/lib/python3.6/dist-packages/pyscreenshot/wxscreen.py. You also have to add "to_bytes = bytes if PY3 else buffer" to the beginning of that same file. If this doesn't work feel free to respond! 👍

Also, if you want a good bot just use https://hquties.win. This bot does not work very well.