The user experienced a 'Segmentation fault (Core dumped)' error after installing and running Python 3.12 in Ubuntu. The problem was Python's standard library 'readline' crashing. The issue was resolved by installing libreadline-dev and recompiling Python 3.12 from the source.
Tag: Python
Tiny Django Tips – Use cycle instead of boring “if else” in template tags
Often we need to do alternate things in every steps of a django template for loop while doing things in a loop in a django template. For example, let's say you want to create a widget similar to the following image widget - to show various job types In this example, The Job Type widget…
How to read Data Matrix using Python in Linux
In this article, I'm going to introduce you to an interesting python module named pylibdmtx! This library is written based on the libdmtx library. You can install it in Ubuntu by using the following command: sudo apt install libdmtx0a Now that you have the library installed let's install pylibdmtx. I'm assuming you already have python…
How to download a file from a website link using Python script or, code snippet
In this article, I’m going to demonstrate some code snippets that you can utilize to download files from the Internet using Python. Before we begin, you might be wondering why go through all the hassles of writing scripts to download files when you can simply click and download it by opening it on a browser!…
How to Check Web page for SEO Using Python
Website SEO aka Search Engine Optimization is important for every modern website. However manually validating SEO criteria is quite cumbersome. It is possible to automate most of the SEO checks using python. In this article, I'm going to demonstrate some ideas using basic python code snippets. These scripts will work as a good starting point…
Learn Fundamentals of Computer Programming Using Python – Python Workshop 2018
Last September 2018, I have organized a Free for All Basic Python Workshop in Premier University Chittagong. It was two day Workshop where numerous python enthusiasts participated spontaneously!
Making a Stand Alone Executable from a Python Script using PyInstaller
There are plenty of tools available for converting python script into executable. For example, check out: PyInstallerpy2exe For Python 2, I used to prefer py2exe. It is a neat tool that does the trick by making a stand alone executable from python script. The one problem I faced was, py2exe used to support only python 2! Then I moved on to…
How to take Password input in Python
Did you know? There is a python module in Python Standard Library called getpass. The purpose of this library is to securely take input from user! The module is very handy for sensitive inputs such as passwords / keys or any kind of credentials. Simplest example of getpass could be this: import getpass password =…