Skip to main content

Questions tagged [python]

Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability.

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

I’m encountering a recurring kernel memory error while running heavy PyTorch training workloads . The system eventually becomes unstable, training stops, SSH disconnects, and the machine needs a ...
김동연's user avatar
2 votes
0 answers
33 views

I'd like to know if my Nvidia GPU, CUDA drivers, cuDNN, Pytorch and TensorFlow are all compatible between each other ahead of time instead of getting some less explicit error when running code such as:...
Franck Dernoncourt's user avatar
0 votes
0 answers
36 views

this is in RHEL-8.10 x86-64 from a clean install from rhel-8.10-x86_64-dvd.iso and only using the public.xml file; the only things I do is # quad port nic with eno4 being my wan connection firewall-...
ron's user avatar
  • 9,175
1 vote
0 answers
31 views

We develop and distribute an application that controls industrial robots (non real-time typically). We run it on Kubuntu 22.04 in a Konsole window. It is runs continuously for several months at a time....
Simon Schmeißer's user avatar
3 votes
1 answer
250 views

I've set up different Python venv/virtualenv environments on my Debian 12, each with their own packages. However, I want to use/install Jupyter Notebook only once (in just one virtual environment). ...
ReflectYourCharacter's user avatar
-1 votes
1 answer
141 views

My command prints >>> import sys >>> print(sys.prefix) /home/DEVOPSM/CodeTest_Ucar/venv Is it possible to list all other virtual environments on Linux?
MJoao's user avatar
  • 47
0 votes
0 answers
54 views

I'm building a simple shell server using raw Python sockets (not using telnetlib). The client connects using PuTTY with the Telnet connection type. The server displays a basic prompt like: [user@...
just.callme.client's user avatar
0 votes
1 answer
96 views

In Qutebrowser, I try to create the following behavior: tab-close, or at least the action associated with it (i.e., pressing d), should, in all situations where more than one tab is open, close the ...
fauve's user avatar
  • 1,529
0 votes
0 answers
99 views

I'm using VSCodium with the Pyright plugin for Python type checking. I am puzzled why Pyright is not recognizing a variable as type function, when the code works as expected, and entering this code ...
M Hill's user avatar
  • 1
0 votes
1 answer
187 views

I have an docker file where the base image is set to debian:stretch-slim. The default version of python3 is python3.5 in this image. FROM debian:stretch-slim as base-os .... .... RUN python3 -V RUN ...
Hemant Bhargava's user avatar
1 vote
0 answers
69 views

I'm developing a desktop application using PySide6 for Linux, and I need to prevent or delay system shutdowns that are initiated from the graphical interface. I know that running systemd-inhibit --...
Nirav Jangale's user avatar
0 votes
1 answer
297 views

We have a RHEL 8.10 server, and the default location for Python packages is under /usr/lib/python3.6/site-packages/. This includes, of course, the DNF packages located at /usr/lib/python3.6/site-...
yael's user avatar
  • 14k
1 vote
0 answers
54 views

I'm creating a display manager (dm) in python, which waits to Xorg to start in order to run the GUI. Python (omitted unnecessary code like widgets and classes and functions) import os (more imports ...
rustymanito's user avatar
0 votes
1 answer
246 views

I'm trying to make captive portal with nginx, hostapd, nftables, dnsmasq and python-flask. I have two main problems I'm not getting a popup on Android, but am on Iphone/OSX. I'm not sure how to ...
user3666672's user avatar
0 votes
1 answer
79 views

As a somewhat new user, I recently discovered the trick of opening the current terminal line in $EDITOR, using the hotkey C-x C-e. This has changed my life, and has made writing loops and such much ...
supersquires's user avatar
0 votes
0 answers
46 views

I'm trying to follow the advice here: Install a Python package on Debian/Devuan when apt has no package for it and create a Debian/Devuan package for the ffsubsync Python package. All the dependencies ...
einpoklum's user avatar
  • 11.1k
0 votes
0 answers
26 views

I am working on creating a way to right click on an .eml file, right click, and have python pull two pieces of data from it and paste them into a new xlsx file and auto open the xlsx file. I would try ...
Coo's user avatar
  • 101
0 votes
3 answers
321 views

I am relatively new to awk and sed.  I have a file with more than 30000 rows/lines; e.g., Direct configuration= 5 0.86331344 0.14835363 0.01770155 0.83813858 0.74789354 0.31772038 0.89805721 0....
Sudip Kumar Mondal's user avatar
0 votes
0 answers
67 views

I've been facing issues with getting the Python kernel to work in Jupyter notebooks on VSCodeium (my Arch Linux setup) for the past 3 days. Despite managing to start the kernel after much ...
Harshal Malani's user avatar
0 votes
0 answers
59 views

What is the best practice for installing Python pip packages with Chef? I thought about the poise-python, but I've read that it stops maintenance. And a direct install at recipe like: execute 'python ...
Aviel Amitay's user avatar
0 votes
1 answer
626 views

The python example here allows me to log to the systemd journal just by adding logger.info("Hi Mom"). I want to log to a different journal namespace with custom/longer data retention period ...
Normand Robert's user avatar
6 votes
3 answers
1k views

I am on Debian 12. I made a rookie error installing python libraries (numpy, pandas, sklearn) using apt and now whenever i try to install or uninstall anything i get this error. When installing ...
Michele Turrini's user avatar
2 votes
2 answers
889 views

I am attempting to call python within a bash script, but the script cannot find it. I have not done bash script programming for over 30 years, so I am not currently adept at bash script debugging. I ...
dnessett's user avatar
1 vote
0 answers
40 views

I have installed Onboard (virtual keyboard) and it resides in /usr/lib/python3/dist-packages/Onboard/ I have made some changes to a few of the files (for a modified layout) which I want to quarantine ...
user2105311's user avatar
0 votes
1 answer
546 views

I would like to set a couple of environment variables in a Python script, then use said environment variables in a chained call. For example, a python script called set_env.py: os.environ["MY_VAR&...
Steven Liebregt's user avatar

1
2 3 4 5
47