Categories
Linux Mastering Development Ubuntu

Cannot install tkinter for python 3.8

I have Python 3.8 on Ubuntu 16.04. I installed python3-tk: Reading package lists… Done Building dependency tree Reading state information… Done python3-tk is already the newest version (3.5.1-1). 0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. and python3.8-tk: Reading package lists… Done Building dependency tree Reading state information… Done python3.8-tk is […]

Categories
Mastering Development

gRPC communication exception over client – docker – server model

Trying to do communication by gRPC in a client(c# – GUI) <–> server(python) <–> client(python) <–>server(c#). Setup: –> GUI in c#(grpc client) that connects with a Python service(inside a docker) that functions as a gRPC server. This setup works using the default “greeter” service used in many examples around on the web. –> Docker also […]

Categories
Mastering Development

want to start ninja-ide but won’t start

install ninja-ide in my kali Linux, whenever I run this code “ninja-ide” to run it this error keeps on coming….. Traceback (most recent call last): File “/usr/bin/ninja-ide”, line 34, in <module> ninja_ide.setup_and_run() File “/usr/share/ninja-ide/ninja_ide/__init__.py”, line 71, in setup_and_run core.run_ninja() File “/usr/share/ninja-ide/ninja_ide/core/core.py”, line 48, in run_ninja from ninja_ide.gui import ide File “/usr/share/ninja-ide/ninja_ide/gui/ide.py”, line 45, in <module> […]

Categories
Mastering Development

Rasbian Lite: email Python Package install (No module named ‘cStringIO’)

Sorry for possible duplicate. I am using Rasbian Lite OS. When I try to install package email: pi@raspberrypi:~ $ sudo pip3 install email I get error message: Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting email Using cached email-4.0.2.tar.gz (1.2 MB) ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c ‘import sys, setuptools, tokenize; sys.argv[0] […]

Categories
Mastering Development

why it is showing referenced before assignment in python

Can anybody can tell me where i am doing wrong in this following python program. I am trying to create a paint like software. but its showing errors File “E:\project\New folder\paint_new.py”, line 33, in use_eraser activate_button(eraser_button, eraser_mode=True) File “E:\project\New folder\paint_new.py”, line 36, in activate_button active_button.config(relief=RAISED) UnboundLocalError: local variable ‘active_button’ referenced before assignment name ‘eraser_on’ is […]

Categories
Linux Mastering Development Ubuntu

broken apt package in python

I installed python 3.7.5 on my ubuntu 18.04 and I updated alternatives for python and python3 to python 3.7.5. after that I had a lot of problems. when I use sudo apt-get update or sudo gdebi some deb file I get this error: No module named apt_pkg I update alternative for python to python 2.7.(ubuntu […]

Categories
Linux Mastering Development

Bluetooth keeps changing from A2dp to headset and loses connection on Debian Buster with JBL 4 Speaker

since over a year I am having trouble with the bluetooth connection to my JBL 4 speaker. It looses connection again and again. I created a script according to what I found on the internet to reconnect via keyboard short cut. Sometimes it is connected with it within a view seconds sometimes I had to […]

Categories
Linux Mastering Development Ubuntu

broken apt package in python

I installed python 3.7.5 on my ubuntu 18.04 and I updated alternatives for python and python3 to python 3.7.5. after that I had a lot of problems. when I use sudo apt-get update or sudo gdebi some deb file I get this error: No module named apt_pkg I update alternative for python to python 2.7.(ubuntu […]

Categories
Mastering Development

Is there a built-in data structure in Python with BST semantics? [closed]

In other languages, there are built-in data structures with binary search tree semantics, for example C++’s std::map. Note that I am using C++ as an example, but not because I am attempting to draw a direct comparison between C++ itself and Python. I have received close votes on this question as “opinion based”, but there […]

Categories
Development Linux Ubuntu

ModuleNotFoundError: No module named ‘pip._vendor.distro’

I have been trying to figure out what is causing this error, but every solution I’ve tried from totally uninstalling python and pip to rm-ing some folder doesn’t work: $ pip3 install -R requirements.txt Traceback (most recent call last): File “/usr/lib/python3/dist-packages/pip/_vendor/__init__.py”, line 33, in vendored __import__(vendored_name, globals(), locals(), level=0) ModuleNotFoundError: No module named ‘pip._vendor.distro’ During […]