Questions tagged [python3]
The python3 tag has no summary.
411 questions
0
votes
1
answer
133
views
Python>3.9 install on Ubuntu 20.04 focal
deadsnakes recently removed support for Ubuntu 20.04: https://github.com/deadsnakes/py3.11/commit/54c42edda82a91620e5c26b5e27eeda1527e2cff
So, currently, trying to install any version of python newer ...
0
votes
0
answers
5
views
NetCDF4 created with Xarray does contain unexpected dimensions
I have a NetCDF question:
I was creating a NetCDF4_classic file via Python's xarray package:
import xarray as xr
ds = xr.Dataset(
data_vars={
"Data1": (("time"...
0
votes
0
answers
39
views
org.freedesktop.IBus interface not found in the system after installing ibus and daemon start
My system is Kali 2022. I am new to linux and trying to interact with IBus using a python script. I have done the following things:
Installed ibus using sudo apt install ibus
Started ibus-daemon ...
0
votes
0
answers
57
views
php script: shell_exec('nohup /usr/bin/python3 -u /location/script.py > /location/script.log & : Script terminates after 5 seconds but should not
I have a PHP Script with the command
shell_exec('nohup /usr/bin/python3 -u /location/script.py > /location/script.log &');
This PHP Script is called via ajax, the script runs, logfile is ...
0
votes
1
answer
656
views
How to upgrade numpy? | ImportError: Matplotlib requires numpy>=1.23; you have 1.21.5
I need to run matplotlib. However, it requires an up-to-date version of numpy.
How can I manually update my numpy installation?
$ pip install numpy --upgrade
Defaulting to user installation because ...
-1
votes
1
answer
84
views
How do I install python on cpanel on linux
I am trying to deploy a linux executable from Delphi.
The host has cpanel
I have installed PAServer
However I get this error about symlink target directory does not exist
Unable to start LLDB kernel: ...
0
votes
2
answers
6k
views
Errno 13 Permission denied when pip upgrade or pip install
I have set up my virtual ennvironment and i'm trying to install the package but i keep on running into this error :
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/...
2
votes
1
answer
1k
views
PATH on Mac not working for Python
I am trying to run a Python program from my command line on my Mac. (in this case: python3 Hello.py).
For the life of me, I can’t get it to consider the PATH where the program is located. This is the ...
0
votes
1
answer
119
views
meld won't run on Cygwin: AttributeError: module 'gi' has no attribute 'require_version
I'm trying to run meld on Cygwin, after having installed it, and circumvented the "no module named 'meld'" issue by forcing it to use Python 3.6. Now, I get:
$ meld
Traceback (most recent ...
0
votes
1
answer
78
views
Where to store shareable application data for home user?
I'm working on a project that uses ags (with gtk-layer-shell) to provide a top bar similar to waybar. I'm also building a gui app with pyGtk that'll be used to change that bar's appearance and ...
0
votes
1
answer
84
views
How to keep pinned versions in requirements.txt in sync with Debian stable?
Situation:
Requirements for a Python package in requirements.txt
Dependency versions are pinned (good practice)
Dependency versions in requirements.txt should be kept in sync with equivalent Python ...
0
votes
1
answer
135
views
Systemd fails to restart a Python script with exit(0)
I have a working python script and systemd service script. But somehow it is not working the way I wanted it. The python script prints time every 5s but stops with exit(0) at first second of a minute. ...
0
votes
2
answers
244
views
Unmet dependancies for python3-samba packages on debian 11 (osmc)
I'm trying to upgrade python3-samba from 2:4.13.13+dfsg-1~deb11u5 armhf to 2:4.13.13+dfsg-1~deb11u6 armhf, yet, when trying to do so I'm getting the following error :
The following packages have ...
2
votes
1
answer
528
views
Unable to uninstall virtualenv from debian 11
My debian OS has been through a few upgrades and is now on 11 (Bullseye). I initially started out with python2 and now I no longer want it - I just want python3. I installed virtualenv a long while ...
0
votes
1
answer
432
views
How do I install a pip package on a machine without Internet access?
I'm working on a Linux machine without (direct) Internet access. I want to pip install foo for some pypi package foo, but - obviously, that won't work. I have, of course, other machines which are ...
0
votes
1
answer
730
views
How to use eyeD3 for abcde since pep 668
How can I use eyeD3 in Debian 12 with abcde since pep 668?
I am trying to use abcde with output set to mp3 set in .abcde.conf. abcde does not find eyeD3, so I try to install. However, pip3/pip tell me ...
0
votes
0
answers
284
views
"dpkg: error processing archive" when trying to install python3-samba
I'm still early in my understanding of Linux and computers in general. I have a Raspberry Pi 3, and I'm trying to install python3-samba, and I've encountered some errors that I'm not too sure about ...
0
votes
1
answer
1k
views
Installing Python 3.9 on RHEL 7 Using Ansible 2.9.27
I need to install Python 3.9 on RHEL 7 system ( about 10 servers in each environment ) and then update / install Ansible 2.11 on the system. This is in preparation to upgrade Confluent version on ...
0
votes
1
answer
201
views
Broke Linux Mint 21.2 Victoria accidentally
I am a new Linux user, switched from windows to linux just 2 days ago(like I made linux my main OS, removed windows completely). As I am a new user, I didn't have any snapshots of my system.
I was ...
0
votes
2
answers
1k
views
Modules installed with pip don't work after Bookworm upgrade
I recently upgraded to Debian Bookworm from Bullseye.
I am aware that installation of python packages requires a different method as compared to pip install <package>. Therefore, I install new ...
0
votes
0
answers
315
views
Shell script that uses "while" loop to read file gets stuck
I have a python script which calls a shell script that is on a remote host to be executed which reads a file and does some manipulation as per the text pattern it encounters. I see that while it is ...
0
votes
1
answer
1k
views
ModuleNotFoundError: No module named 'debpython' [closed]
After some manipulations with updating Python to version 3.9 and using the command "python" to invoke Python 3.9 (update-alternatives), or perhaps something else, I encountered a global ...
0
votes
1
answer
560
views
What can block network connections
I'm trying to create mqtt connection using python. The shortest code to reproduce the problem is
import paho.mqtt.client as paho
client = paho.Client('myClient')
client.username_pw_set('user', '...
1
vote
1
answer
835
views
Ubuntu RAM memory dump
I want to take memory dump of ubuntu machine using pyhton script without using LIME, AVML etc tools. I want to use linux inbuilt command like gcore.
After creating memory dump of all RAM processes I ...
1
vote
1
answer
248
views
Redirect stderr doesn't show python input
I am running the following command on the terminal:
python -c "input('Message')" 2> log
but the Message doesn't appear on the screen. Any ideas why this happens?