Questions tagged [python3]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
17 views

Running ubuntu20.04 guest operating system crashes with error “The CPU has been disabled by the guest operating system.”

I am running a virtual machine ubuntu 20.04 (5.11.0-051100-generic kernel) machine in vmware esxi server (6.5). While working with a python code which takes a connection to another machine and execute ...
4
votes
1answer
59 views

python script fails to start in screen, in systemd. no error

I wrote a python script that I would like to launch inside of screen screen -d -m /usr/bin/python3 /home/kermit/active-climateMngr.py which works just fine at the command line but when I try to begin ...
1
vote
1answer
22 views

What is the Right Way to install pip3 on Ubuntu?

An alert while running pip3 sent me to some advice to "Only ever use your system package manager to upgrade the system pip." This was the original alert: WARNING: pip is being invoked by an ...
0
votes
1answer
36 views

pip hangs on `Loading macOS` when installing a package

When installing anything with pip, it hangs indefinitely, for example (running pip install geoclue2 -v): Using pip 21.0.1 from /usr/lib/python3.9/site-packages/pip (python 3.9) Defaulting to user ...
0
votes
0answers
11 views

running jupyter notebook on a node of my cluster (HPC facility)

I was trying to run my python code on a HPC facility which has 56 cores and I want to restrict the number of cores my program is using to around 20. I have read little bit about qsub and tried using ...
0
votes
0answers
51 views

Stamp .jpg with CAMERA date-time

Context: Photos taken with an iPhone are transferred to a Macintosh's 'Photo' application. Photos are selected an moved into a directory for further processing. The goal is to "stamp" the ...
0
votes
0answers
18 views

Ansible pipe lookup to generate encrypted password using interpreter

I am trying to use Ansible's pipe lookup plugin to generate an encrypted string. In below task, "admin_password" is one of the variable in my hostvars file - name: Encrypt password ...
0
votes
1answer
43 views

Can't make python3 as default python instead of python2 [duplicate]

I am using Ubuntu. I want to make python3 be the default python version instead of python2. I tried many ways. For example : Open your .bashrc file nano ~/.bashrc. Type alias python='python3' alias ...
0
votes
0answers
21 views

python3 script runs on startup using (crontab -e ) for sometime and after that it automatically stops. why?

i am using Raspberry Pi 3 to run a python3 script which runs VLC player to display images and videos, it run smoothly and continuousl when i run manually in the terminal like sudo python3 /home/pi/...
1
vote
1answer
30 views

Python error only when I run script on Linux cluster: _tkinter.TclError: no display name and no $DISPLAY environment variable

My question is related to a python error, but I suspect that it is more a Linux question than a python one. Thus I post it first here. I am running a python script which does a calculation and then ...
0
votes
0answers
11 views

regarding wrapping a command line into a python script or function [migrated]

in the command prompt, I can use nvcc --version to check the CUDA information. Is that possible to wrap this command nvcc --version into a python script to be run by python. Thanks.
1
vote
1answer
14 views

How to install pip without root access in Ubuntu > 18.04 without distutils package installed

I would like to install pip within any of my virtual environments created with venv, but the get-pip.py script requires the distutils package, which is not installed in the server I am using, and I ...
2
votes
2answers
36 views

How do I build PKGCONF and LIBFFI and subsequently Python3.9 with ctypes support without sudo and write access to /usr/local?

The Question(s) How do I properly configure pkgconf and libffi to allow the python3 build process to correctly use my libffi version at every step of the build process, in order to import the _ctypes ...
1
vote
1answer
2k views

Why does “get-pip.py” complain about invalid syntax?

I am trying to install pip3 without having sudo privileges following the answer provided here. The first step is to execute the following: wget https://bootstrap.pypa.io/get-pip.py It seems to work ...
0
votes
0answers
33 views

Delete the words between [], {}, and () [migrated]

file1.txt contains Thailand,[a] officially the Kingdom of Thailand and formerly known as Siam,[b] is a country in Southeast Asia. I want to delete the words between [] and (). The expected output is: ...
4
votes
1answer
132 views

Change location of `~/.python_history`

I want to keep the functionality, but change the location of ~/.python_history to $XDG_DATA_HOME/python/python_history. This gave me the following idea: I could create $XDG_CONFIG_HOME/python/pythonrc ...
2
votes
1answer
72 views

Why my python process cannot access all the memory?

I have 62 GB RAM in my Linux server and my Python code is trying to load 20 GB file in the memory. However, it is crashing and throwing MemoryError. I am not sure why it would be like this? I know I ...
0
votes
3answers
30 views

can't install mu-editor

The os and python version: uname -a Linux yyyy 4.19.0-0.bpo.9-amd64 #1 SMP Debian 4.19.118-2+deb10u1~bpo9+1 (2020-06-09) x86_64 GNU/Linux python3 -V Python 3.5.3 My microbit version: Interface ...
0
votes
1answer
59 views

Why do i have four different default versions of python on my ubuntu?

Im new to linux and im struggling with the alternative install management for python. I managed to change the default python versions for sudo and root (if i understand it correctly). However i would ...
0
votes
1answer
50 views

linux and python sed command warning

When I run sed command in my terminal, it works totally fine; however, when I use it on python, throws an error. sed command: sed ':a; $!N; /^>/!s/\n\([^>]\)/\1/; ta; P; D' test.fasta SJL19094 ...
0
votes
0answers
15 views

How to identify which (video) Media files have DRM from my iTunes Library

OK, I've been doing some cleanup - and I have a disk with my old iTunes library which has the usual audio and video content. However in the video content, I have many video files which are DRM ...
0
votes
1answer
8 views

APXS shows up in global Linux Terminal but not Pycharm

Currently moving all of my Pycharm Projects to Linux (Debian-based distro) and had a mod_wsgi dependency in one of my projects. So I get the following error. RuntimeError: The 'apxs' command appears ...
0
votes
1answer
53 views

Why does apt-get upgrade only return “The following packages have been kept back: python3-psycopg2” while apt update shows it can be upgraded (how)? [duplicate]

I'm using Debian10/KDE and since a few months ago one package was kept back. However, when using sudo apt update instead of sudo apt-get update it displays something else and allows to see the "...
-2
votes
1answer
41 views

Python3 not installed, but installed

I could not remove the python 3.9.1 from my debian, so I tried cleaning the python3 folders and files in /usr and /bin and /share. But now when I try to install python3, it shows python3 already in ...
1
vote
1answer
210 views

python3.9 installation missing files latest kali@win10

└─# cat /etc/issue Kali GNU/Linux Rolling \n \l ┌──(root💀DESKTOP-NF4O0MG)-[~] └─# uname -a Linux DESKTOP-NF4O0MG 4.4.0-19041-Microsoft #488-Microsoft Mon Sep 01 13:43:00 PST 2020 x86_64 GNU/Linux ┌──...
0
votes
2answers
61 views

User python app service does not start on boot

My user service which is a python script does not run on boot. It runs on raspbian OS as user pi. As most of these questions go I can start the service and it runs fine with systemctl --user start ...
0
votes
1answer
83 views

I upgraded my system now a lot of python based software is throwing import error

I upgraded my system using yay -Syu and some of programs and commands are throwing import errors when I try to run them. For example: cura: Traceback (most recent call last): File "/usr/bin/...
0
votes
0answers
15 views

I want to create an empty frame video of 10 seconds which have the size of 1280x720 and its color is red in ffmpeg-python

I am working on FFmpeg-python which is the wrapper of FFMPEG written in python. I want to create an empty frame of duration 10s with color red and size 1280 x 720. I have found the command in FFmpeg ...
0
votes
1answer
74 views

Mint 19.x and Python MKL: segmentation fault on import numpy

After a recent update of computers running Mint 19.x (19.1, 19.2 and 19.3), I noticed that I cannot import specific libraries such as numpy or scipy in my Intel Python environment. I get the following ...
0
votes
0answers
16 views

gvm-script command run in terminal but when exec command in php(xamp) get error “command not found”

Hii, I have a gvm-script which works and give output in terminal, as shown below: But when I run this command in php using exec I get an error as "sh: 1: gvm-script: not found" The code is: ...
0
votes
0answers
237 views

Pop OS 20.04 LTS | initramfs-tools error on apt

I was upgrading my python3 from 3.8.5 to 3.9, so I (probably shouldn't have) ended up apt removing python-apt. After that, I tried reinstalling it but this error came up: $ sudo apt-get install ...
0
votes
0answers
20 views

How to resolve Dependency resolution related to AWS linux, CLI and Python3

I have an AWS linux box with AWS CLI installed and python 2.7.18. I get the following message when I try to update. I'm wondering given that I have python 2.7 installed what my approach should be to ...
-3
votes
1answer
35 views

How to resolve broken installation

I recently was trying to install a package on my Kali system and in doing so was directed to install python 32 bit. I ran the dpkg command to add i386 arch and confirmed installing python3:i386 Almost ...
0
votes
0answers
37 views

ModuleNotFoundError when importing in pycharm after installing python 3.9

I installed python 3.9. Whenever I install a package using pip and go to pycharm and write import (package), it shows ModuleNotFoundError. Then I checked the path of pip and saw that there were three ...
0
votes
2answers
157 views

How to print a file if a line contains a specific string in python?

I'm trying to print a file name if it contains an **Error*** (here, * says there can be anything such as Rock_Error_addr, Error_salary, TinaError_addr (it may have spaces also in the beginning))....
0
votes
1answer
70 views

Issue running python script from crontab?

I have a script /home/projects/temperature_logger/analyze.py that does some work on a temp.log file, which is really a csv of a date and the current raspberry pi temperature. This python script also ...
1
vote
1answer
3k views

ModuleNotFoundError: No module named '_sqlite3'

We have different python version installed and specifically using python3.7 so I have edited my .bashrc file. We are using Centos7 with Linux server. # .bashrc # Source global definitions if [ -f /...
1
vote
0answers
135 views

how can I fix a not working software updater on ubuntu 18.4?

When I select the software updater , the icon for the application appears and then disappears. when I try to run it via terminal, I am getting this error: sudo update-manager -C Traceback (most ...
0
votes
1answer
737 views

python version and package installation issue

I have different python version on my Linux server running with Centos7. [xyz@innolx20122]$ python python python2.7 python3.6 python3.7 python3.7m-config python2 ...
2
votes
2answers
611 views

How to make `python` an alias of `python3` systemwide on Debian

The latest updates of my Debian testing system removed Python version 2, and I only have Python 3 installed, with python3. There is no longer any command named python. This causes several scripts to ...
0
votes
1answer
168 views

how can we capture exit code of bash script while running the bash script in python

I am executing a bash script using subprocess module. subprocess.call(['temp.sh']) As per python if the temp.sh file is present it calls the script and it doesn't worry about the success or failure ...
0
votes
0answers
32 views

Responder not recognized in python3.8 on Manjaro

I have an application which uses responder but it is not recognized despite the fact it reports as installed: (darknet) vfbsilva@rohan ~/Source/darknet_alexey/darknet/pythons $ python3.8 ...
-2
votes
1answer
77 views

Permission Error when accessing Python file

I am receiving this error and am unable to address it. I don't understand how I don't have permission to these files in the python3.6 directory. File "/usr/local/lib/python3.6/site-packages/...
0
votes
0answers
17 views

Installation of cx_Freeze

This is my Python configuration: # python -V Python 2.7.18 # pip -V _findLib_gcc: 1701 Killed _findLib_gcc: 1704 Killed pip 10.0.1 from /usr/local/lib/python2.7/site-packages/pip-10.0.1-py2.7.egg/pip (...
0
votes
1answer
77 views

Can't execute python program from any folder

I have a python program in ~/bin called program.py. If i'm in that folder, I can run the program from the terminal without problems, but if I'm in another folder I get: python: can't open file '...
0
votes
0answers
9 views

How to resolve dpkg error in terminal while installing python

I face this problem while installing python3.7 in raspberry pi 3. I had attached the terminal commands and errors below. Kindly have a look at it and hep me to resolve this
0
votes
1answer
43 views

Is There an Easier Way of Upgrading Python to the Latest Version?

I am experimenting with different Linux distros in VirtualBox and am currently using Pop!_OS 20.04 LTS. I checked my python version in the terminal and it was 3.8.2, this version is also the latest in ...
2
votes
1answer
546 views

How to iterate URLs to the curl command?

I'm new to web scraping (and programming in general) and I'm using both python and bash scripts to get the information I need. I'm running with WSL( windows subsystem for Linux) and for some reason, ...
0
votes
1answer
94 views

Blocked from using pip3

Default python is 2.7; default python3 is 3.6, which is the version I use; Ubuntu version 18.04. I'm trying to get newly downloaded python libraries to be installed in a python 3 library. charles@BW2:~...
0
votes
0answers
35 views

Whither module not found

I am a Python beginner and have some use or the 'whither' module. I did pip install --user whither, which installed it successfully (or so pip says). However, in the Python interpreter, import whither ...

1
2 3 4 5 6