Skip to content

Common Errors and Warnings

Kory edited this page Jul 30, 2019 · 1 revision

Common Errors/Warnings:

prawcore.exceptions.ResponseException: received 401 HTTP response

From the Reddit API documentation, it sounds like the 401 error is given when your client id/secret are incorrect. Are you using the correct values from the app page?

BeautifulSoup lxml warning

  • Add parser for BeautifulSoup
sublime venv/lib/python3.6/site-packages/PyDictionary/utils.py
# change:  return BeautifulSoup(requests.get(url).text)
# to: 	   return BeautifulSoup(requests.get(url).text, 'lxml')

Windows lxml warning

pip might complain when installing the python-pptx dependency due to a missing the lxml dependency. If this is not resolved automatically, visit this page. On that page, select the right lxml version for your platform and Python version (e.g. cp37 = Python 3.7).

In case installing the dependencies complain about Visual C++ version while resolving the python-pptx dependency, consider installing a version of Visual Studio.

Missing mysql.h

If pip complains about a missing mysql.h, you need to pip install wheel, go to mysql wheel download to download the wheel and run pip install mysqlclient-1.3.8-cp36-cp36m-win_amd64.whl