Categories
Linux Mastering Development

Cant Run this Python File. Can you help?

I am using Kali Linux 2019 , Trying to install this Source : https://github.com/ptrkrysik/multi-rtl I have installed everything required, but what dose this, here, mean here? I run ./mutlirtl_rx_to_cfile_2chan.py as root, and get this error message. Traceback (most recent call last): File "./mutlirtl_rx_to_cfile_2chan.py", line 17, in <module> import multi_rtl File "/usr/local/lib/python2.7/dist-packages/multi_rtl/__init__.py", line 30, in <module> […]

Categories
Mastering Development

Kivy using Canvas: Key error with line while starting beyond boundaries

I’m creating simple drawing app with Kivy. I’m realizing drawing by this code: class Paint(Widget): def on_touch_down(self, touch): color = (random(), 1, 1) with self.canvas: Color(*color, mode=’hsv’) d = 10. if touch.y > self.height: Ellipse(pos=(touch.x – d / 2, touch.y – d / 2), size=(d, d)) touch.ud[‘line’] = Line(points=[touch.x, touch.y], width=5) else: pass def on_touch_move(self, […]

Categories
Mastering Development System & Network

docker-compose ‘Permission denied: ‘/var/lib/containerd” but I am in docker group

This is an odd one. Ive tested a docker-compose file and it builds fine. I then move it and its corresponding Dockerfile to another directory. I also change the docker-compose file as the Dockerfile is now in same dir as docker-compose, previously it was in a subdirectory and also mounted my www directory differently, i.e. […]

Categories
Linux Mastering Development Ubuntu

Ubuntu Terminal Not Opening After Updating Python

Opening the terminal fails, giving the error, Traceback (most recent call last): File “/usr/bin/gnome-terminal”, line 9, in <module> from gi.repository import GLib, Gio File “/usr/lib/python3/dist-packages/gi/__init__.py”, line 41, in <module> from . import _gi ImportError: cannot import name ‘_gi’ from partially initialized module ‘gi’ (most likely due to a circular import) (/usr/lib/python3/dist-packages/gi/__init__.py) Error in sys.excepthook: Traceback […]

Categories
Linux Mastering Development Ubuntu

“ModuleNotFoundError: No module named ‘apt_pkg'” appears in various commands

I get the following error in various situations, for example when I try to start a package that is not installed: $ tldr Traceback (most recent call last): File “/usr/lib/command-not-found”, line 28, in <module> from CommandNotFound import CommandNotFound File “/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py”, line 19, in <module> from CommandNotFound.db.db import SqliteDatabase File “/usr/lib/python3/dist-packages/CommandNotFound/db/db.py”, line 5, in <module> import […]

Categories
Mastering Development

Why is my Reddit bot with PRAW returns unexpected strings of letters?

I am working on a Reddit bot whose goal is to determine how often Trump is mentioned in popular political subreddits. I’ve been following a few tutorials, I’ll link them here just for clarity’s sake: https://praw.readthedocs.io/en/latest/getting_started/configuration.html https://www.youtube.com/watch?v=wAN8b38U_8c The bot works for the most part. Here’s the code: #TrumpSpamBot import praw # in order to use […]

Categories
Linux Mastering Development Ubuntu

Major problems after 20.04 Upgrade – libapt-pkg.so.5.0

I tried to upgrade my 18.04 system to 20.04 and it has resulted in a lot of problems. Near the end of the upgrade process, the update-manager informed me that it would be a partial upgrade. My log in screen says 19.10, but in settings is says 20.04. I cannot open gnome-terminal or any of […]

Categories
Linux Mastering Development Ubuntu

ModuleNotFoundError: No module named ‘distutils.util’

after updating to ubuntu 20.04 whenever i type “pip install (some package)” or “pip –version” it says adam@daryy:~$ pip3 Traceback (most recent call last): File “/usr/local/bin/pip3”, line 5, in <module> from pip._internal.cli.main import main File “/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/main.py”, line 10, in <module> from pip._internal.cli.autocompletion import autocomplete File “/usr/local/lib/python3.7/dist-packages/pip/_internal/cli/autocompletion.py”, line 9, in <module> from pip._internal.cli.main_parser import create_main_parser File […]

Categories
Mastering Development

loop through chunks of files of data

I have many files, I split it into a group of five. I would like to loop through each group of chunk. I don’t want to change the element one by one since there are over 500 groups. Is there a way to loop through it? import glob import numpy as np import pandas as […]

Categories
Linux Mastering Development Ubuntu

HP 2600 Printer not working 18.4

aww boy did i screw something up i’ve uninstalled my printer and now i cant get it back. this is what i did so far with any progresss rick@rick-System-Product-Name:~$ gksudo hp-setup Traceback (most recent call last): File “/usr/lib/command-not-found”, line 28, in <module> from CommandNotFound import CommandNotFound File “/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py”, line 19, in <module> from CommandNotFound.db.db import […]