Skip to content

Tag: python-3.x

Pyinstaller creates x-sharedlib file in pop os

I use Pyinstaller in pop os for a python script but it creates a x-sharedlib file that I can only open through terminal. I tried to rename it to exe and run it but nothing happens. How I can make it open by double click? Thank you! Answer Found the solution. I renamed it to .sh changed nautilus preferences to

Linux CentOS 8 – Pip3 install Mariadb

Currently i’m working on a school project where I have to use MariaDB in a Python3 assignment. I have to build a Python script that connects to a database and put information into it. So said and done, I have created a Python script: But now my real issue is starting. I’m working with a Linux Cent…

Size of disk/partition in Python is different than linux command

Using: Python 3.7.6 , OS Linux (rmp) I need to extract total and free sizes of disks and partitions in Python. I tried different Python functions to retrieve block size in bytes (the results were the same). Then I compared to results of Linux commands (also in bytes), results were different (Linux commands di…

Crontab not able to call mailx used via python subPrrocess

I have a python file (say, mail_it.py) in which I have written a function to send the mails. Code is as below:- When I run this python file directly via unix command: It sends the mail. But when I set this file to run via crontab. I get the following error: Thanks in advance! Answer this is a problem with