ubuntu

Run public python http.server on Plesk

Run public python http.server on Plesk Question: I have a script that runs with python3 -m http.server 8080 locally without issues on http://localhost:8080 I wanted to make it live on my web server running Plesk/Ubuntu. First, I installed python3 via SSH and tried to run the same and it returns: View in browser: http://localhost:8080 however, …

Total answers: 1

How to set the Ubuntu Python3 interpreter path in VS Code?

How to set the Ubuntu Python3 interpreter path in VS Code? Question: I’m using Python3 on Ubuntu 20.04 inside WSL2, running print(sys.executable) outputs /usr/bin/python3 Within VS Code, pressing "Select Interpreter" then "Enter Interpreter Path" I have tried both /usr/bin/python3 and the full windows path \wsl$Ubuntu/usrbin/python3 (which is reachable inside file explorer). Both paths returns the …

Total answers: 1

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

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