I’ve found installing python from source on ubuntu just makes your life easier. Python depends on a few system binaries and linked libraries so you need to ensure they are present first. sudo apt install software-properties-common build-essential \ libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev \ tk-dev libgdbm-dev libc6-dev libbz2-dev libncurses-dev libgdbm-dev \ libpcap-dev libexpat1-dev libffi-dev liblzma-dev libgdbm-compat-dev […]
Category: python
I have been scraping betting odds from a few websites in my spare time to decrease the time manually checking the odds on the different sites. I’ve been using Fuzzywuzzy Example I scrape an event name from a specific site: name = Feyenoord Rotterdam – Wolfsberger AC Now I want to match it with an […]
I’ve been wanting to secure my api – so unidentified and unathorized parties cannot view, update, create or delete data. This api is internal to the company and will only be used by other services – in other words no end users. Hence the delegation of authorization need not happen and the services will be […]
What are the prerequisite packages for a complete python3 compilation install? You will always get issues like Pip not being able to access pypi because the openssl module was not installed. Other things need the gcc compiler and such. Recently I got this warning: Could not import the lzma module. Your installed Python is incomplete. […]
When using HTTPX I get the following error printed sometimes: An open stream object is being garbage collected; call "stream.close()" explicitly. According to these two github issues: An open stream object is being garbage collected; call "stream.close()" explicitly An open stream object is being garbage collected; call "stream.close()" explicitly This is a Python 3.8.0 issue. […]