ubuntu

apt-get install packages introduces lots of python errors on Ubuntu

apt-get install packages introduces lots of python errors on Ubuntu Question: apt-get install -y my_package Everything works until Setting up my_package… And lots of python errors like the below appeared: Compiling ./ext/python3.9/lib/python3.9/site-packages/setuptools/installer.py … File "./ext/python3.9/lib/python3.9/site-packages/setuptools/installer.py", line 77 raise DistutilsError(str(e)) from e ^ SyntaxError: invalid syntax I suspect it has something to do with python versions …

Total answers: 1

import matplotlib.pyplot hangs on ubuntu

import matplotlib.pyplot hangs on ubuntu Question: I am using a Python3 installation in a Ubuntu distribution in WSL2 on a Windows 10 machine. Over the last two months, i did not code that much. Now i started again and faced the following issue: The following code hangs for ~2min: import matplotlib.pyplot After 2 min, i …

Total answers: 1

Combine 2 filter:v/vf options into a single filter chain in FFmpeg

Combine 2 filter:v/vf options into a single filter chain in FFmpeg Question: I try to extract specific frame and crop frame by one command using ffmpeg. I use those answers: https://video.stackexchange.com/questions/4563/how-can-i-crop-a-video-with-ffmpeg https://superuser.com/questions/1009969/how-to-extract-a-frame-out-of-a-video-using-ffmpeg The problem is that I can’t use both commands. That is, only the first command is executed: when I use this command the …

Total answers: 1

Running a python program from a hotkey in kubuntu 22.04?

Running a python program from a hotkey in kubuntu 22.04? Question: I have a python program that can be executed by navigating to the folder it is located in using cd, and using the python3 main.py command. Is there any way I can assign a hotkey to run this program, or at least open console, …

Total answers: 1

Linux [Errno 13] Permission denied

Linux [Errno 13] Permission denied Question: I have a python script that works on Windows but am having a hard time running it on Ubuntu Desktop. Not a lot of wisdom here any tips greatly appreciated… test.py #!/usr/bin/env python3 """ https://pymodbustcp.readthedocs.io/en/latest/examples/server_allow.html An example of Modbus/TCP server which allow modbus read and/or write only from specific …

Total answers: 2

Selenium: Chrome failed to start: exited abnormally

Selenium: Chrome failed to start: exited abnormally Question: I’m trying to make an application with python and selenium but I run into an error. I already searched for a solution and found out that you should add those arguments: –no-sandbox, –headless, –disable-dev-shm-usage which I did but it still didn’t work. The error (full traceback below): …

Total answers: 1

Not able to install anaconda on linux, getting error path_to_dir/conda.exe : Permisison denied

Not able to install anaconda on linux, getting error path_to_dir/conda.exe : Permisison denied Question: I’m trying to install anaconda on my Ubuntu 20.04. It is giving me error [/home_dir/anaconda3] >>> /mount_path of different_ssd/anaconda3 PREFIX=/mount_path of different_ssd/anaconda3 Unpacking payload … Anaconda3-2022.05-Linux-x86_64.sh: line 407: /mount_path of different_ssd/anaconda3/conda.exe: Permission denied Anaconda3-2022.05-Linux-x86_64.sh: line 409: /mount_path of different_ssd/anaconda3/conda.exe: Permission denied …

Total answers: 2

Can't install Proj 8.0.0 for cartopy linux

Can't install Proj 8.0.0 for cartopy linux Question: I am trying to install Cartopy on Ubuntu and need to install proj v8.0.0 binaries for Cartopy. However when I try to apt-get install proj-bin I can only get proj v6.3.1. How do I install the latest (or at least v8.0.0) proj for cartopy? Asked By: Recessive …

Total answers: 2

How to restart specific running python file Ubuntu

How to restart specific running python file Ubuntu Question: I have running python file "cepusender/main.py" (and another python files). How can I restart/kill only main.py file? Asked By: Сервер Чауш || Source Answers: kill is the command to send signals to processes. You can use kill -9 PID to kill your python process, where 9 …

Total answers: 2