How to install python3.6 on Ubuntu 22.04

I have faced the same problems and could make it work by adding some additional flags when running ./configure Here are my steps: Step 1 – Prerequsities sudo apt-get install -y make build-essential libssl-dev zlib1g-dev \ libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev \ libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev \ libgdbm-dev libnss3-dev libedit-dev libc6-dev Step … Read more

aiohttp web.response body as json

You can use web.json_response: async def api_server(request): res = {“q”: “qqq”, “a”: “aaa”} return web.json_response(res) Furthermore the json_response has additional parameters, like: json_response(data, text=None, body=None, status=200, reason=None, headers=None, content_type=”application/json”, dumps=json.dumps) Most of the parameters are the same as the generic web.Response(..), but the dumps is more interesting: it is a reference to a method that … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)