Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

Questions tagged [python]

Python is a dynamically and strongly typed programming language that encourages readability.

Filter by
Sorted by
Tagged with
0 votes
1 answer
193 views

LDAP authentication using NetBIOS form for domain in the bind Distinguished Name compared to the using of FQDN

Python code used for AD authentication I have written a client for authentication on a Microsoft Active Directory by the use of the Python library ldap. The following code works correctly: uri = "...
User051209's user avatar
0 votes
0 answers
50 views

The FastCGI process exited unexpectedly for Python flask app

I am trying to deploy a Python flask application to an IIS web server. I am always getting the following error for Python flask app - FastCGI process exited unexpectedly I have given read and ...
Karthick velusamy's user avatar
0 votes
1 answer
176 views

Debian 13 "Trixie": Sendmail install triggers "No module named 'debpython.version'"

On a basically new installation of Debian Linux (Debian GNU/Linux 13 (trixie), full version 13.1, installed from live-boot USB downloaded from debian.org) on which I had run an update and installed / ...
tsc_chazz's user avatar
  • 3,086
0 votes
0 answers
22 views

Apache Tomcat Application slowness

We are using the ICR/OCR model in Apache Tomcat using the RHEL Linux server. app.log showing updated time taken above 4000 to 7000 milliseconds. catalina.log showing time taken below 400 milliseconds, ...
Shalini's user avatar
-1 votes
1 answer
63 views

gmail rejecting email from my app [closed]

I am trying to send emails from my website hosted on pythonanywhere(using Python). My email is hosted on bluehost. Whenever I am sending to an gmail address i receive an email stating that: "The ...
Andrei Navigator's user avatar
0 votes
0 answers
92 views

CUDA initialization: Unexpected error from cudaGetDeviceCount() error while trying to install Stable Diffusion on FreeBSD + nvidia driver 570.144

I'm trying to install Stable Diffusion on FreeBSD 14.2 + nvidia driver 570.144,following this tutorial : https://github.com/verm/freebsd-stable-diffusion There Verm used nvidia driver 525 and FreeBSD ...
Marietto's user avatar
  • 143
1 vote
0 answers
74 views

Python polars will run on my KVM host, but not on the Guest VM

0 I have a Linux Ubuntu Server 24.04 running very nicely on some moderately old hardware, with an AMD CPU. I am able to run a Python program that uses polars without problem. I have installed a QEMU/...
StuartM's user avatar
  • 11
0 votes
0 answers
124 views

mitmproxy ignore-hosts option does not work

Im testing https request interception using mitmproxy. I would like to add some domains to be skipped from this mechanism, there is --ignore-hosts option designed for this purpose. Unfortunately all ...
Marcel Tkac's user avatar
0 votes
1 answer
159 views

After updating a Kubernetes Node, a Pod running gunicorn cannot create a socket file

I recently terminated a Kubernetes Pod that was running gunicorn and now that it's on a newer Node, it won't start. When the Pod was working, the gunicorn startup logs looked like this: $ k logs pph-...
Tom's user avatar
  • 4,528
0 votes
0 answers
99 views

OpenStack image deleted after creation

I am new to OpenStack. I am migrating a server from OpenStack to VMware. I created an image/snapshot with: openstack server image create --name Odoo_v12_ubuntu_v18Snapshot Odoo_v12_ubuntu_v18 then by ...
user221459's user avatar
0 votes
1 answer
180 views

DKIM ok for command line sendmail, but not for python sendmail

I'm setting up a python-based email server on Ubuntu 18 and I'm confused by the different DKIM behavior on the command line vs in python. When I use sendmail < message.tx recipient, DKIM signs it. ...
Bret Hess's user avatar
  • 101
0 votes
0 answers
89 views

Dovecot IMAP mail fetch latency on import

We are working on importing emails from Gmail to Dovecot. During the process, all emails are written to a new directory within the mail folder. For fetching the emails, we are using the IMAP protocol ...
tamil arasan's user avatar
0 votes
0 answers
51 views

"Unauthorized: No token provided")

Hi I just have this small problem i'm trying to create a workout website that basically nothing or needs is meant to work until the user authenticated yeah so l've l've created everything. l've done ...
user1181608's user avatar
0 votes
1 answer
100 views

What is the canonical way to run pytest with Python 3.11 in Amazon Linux 2023 containers?

AWS provides support for installing python 3.11 in Amazon Linux 2023 containers. However it isn't at all obvious how you install and run a compatible pytest in this case. For example, if you do this: ...
jonseymour's user avatar
0 votes
1 answer
200 views

Openvpn3 not working after I upgraded to python3.11, how can I make the service use python3.8 instead?

Openvpn3 stopped working after I upgraded my Ubuntu 20.04 laptop from python3.8 to python 3.11 I get this error: openvpn3-systemd[9972]: ModuleNotFoundError: No module named '_dbus_bindings' I found ...
Ami Heines's user avatar
0 votes
0 answers
820 views

UDP broadcast packet captured by Wireshark but not received by Python socket on different hosts

I'm implementing a UDP communication system where a sender broadcasts a packet, and a receiver (Python code) listens for it. The packet is captured by Wireshark on the receiver host, but the Python ...
BaldStudent01's user avatar
1 vote
0 answers
79 views

RabbitMQ find stuck consumers

I've managed to write a simple Python script to get some basic metrics from my queues. But this is not enough to detect if one of my consumers is not processing tasks. Is there any way to get ...
Roberto Iglesias's user avatar
0 votes
1 answer
264 views

Ansible vmware module keep getting permission denied

I'm writing a playbook to perform some VMware tasks. The first step is to gather VM facts. However, I'm keep getting permission denied error. That's the part of my code for getting the VM facts: - ...
NeilWang's user avatar
  • 401
0 votes
1 answer
1k views

Ansible global group_vars/all.yml taking precedence over inventory group_vars/all.yml

In Ansible 2.16.8 on a Mac (M1) running Python 3.12.4 (via homebrew) I am trying to setup a global group_vars/all.yml that can be overwritten by inventory/x/group_vars/all.yml if needed. However, it ...
Panduar's user avatar
1 vote
3 answers
2k views

Why does "python3" have a different version than "python3.12" when they are soft linked?

In /bin, I ran: $ ls -l python3 lrwxrwxrwx 1 root root 10 Aug 8 01:44 python3 -> python3.12 $ python3 --version Python 3.12.3 $ python3.12 --version Python 3.12.5 Can anyone explain why one is &...
Chenghao Wang's user avatar
0 votes
0 answers
67 views

smtplib.SMTPAuthenticationError not raising in python what is the issues?

with smtplib.SMTP_SSL(self.host, self.port) as server: server.login(user=self.user, password=self.password) yield server
achu prasad's user avatar
1 vote
0 answers
2k views

How to resolve glibc errors in conda enviroment installation?

I am a non root user in a Linux based cluster. It doesn't have docker nor I have privileges to install it. The base environment have GLIBC version 2.17. I am trying to install packages (like faiss-gpu,...
Ayush Gupta's user avatar
0 votes
1 answer
208 views

How to hide subprocess ran from systemd service from systemd supervision?

I have a timer # ss-agent.timer [Unit] Description=Timer to run agent [Timer] OnUnitActiveSec=60 [Install] WantedBy=timers.target I have a service # ss-agent.service [Unit] Description=Agent to ...
jno's user avatar
  • 101
0 votes
0 answers
115 views

Iptables does not capture bridged packets

I have a linux (kernel 6.6) with eth0 and eth1. I create a br0 from them. The linux is between a pc and a router. I want to capture tcp packets on the br0 with destination ip 190.191.60.136 and dport ...
seq16's user avatar
  • 11
0 votes
1 answer
55 views

Nginx or uWSGI to serve sitemap and robots?

Does it matter whether it's nginx or uwsgi that serves sitemap.xml and robots.txt? If it's uwsgi, then I'd need to add the two routes in my python server, which I feel like gets a bit cluttered. With ...
No Name's user avatar
  • 101
3 votes
2 answers
155 views

Removing obsolete shortcuts in ~/.local/bin

When installing a package with pip install --user, it will create shortcuts/launchers in ~/.local/bin for any executable entry points in that package. After upgrading Python via the distro's package ...
Martin Cejp's user avatar
1 vote
0 answers
371 views

AH01797, access_compat:error cannot find root cause

No matter where I set my "Require all granted" block in my httpd conf, I keep running into these errors: [Thu May 30 10:55:16.510272 2024] [access_compat:error] [pid 1076428] [client 10.192....
itinneed2022_1's user avatar
2 votes
1 answer
1k views

Docker is utilizing 100% of the CPU on all cores of the host, yet `docker stats` indicates a usage of only 2%

I have a Debian 12 server with 2 CPU, 1.9 GB RAM, and Docker 24.0.6. After a reboot, CPU usage is at 0%. Starting a Docker container, CPU usage spikes to 75-100% on all cores of the host. Checking ...
hotips's user avatar
  • 433
0 votes
1 answer
426 views

python: oracledb ignores position of positional bind valuedoes not bind positional values correctly

i want to update a table in oracle using python3 with oracledb and positional values. A simple example, which is not working: sql = "update table set col1 = :2, col2 = :3 where id = :1" ...
sususo's user avatar
  • 1
0 votes
1 answer
70 views

Is it possible to have async in a KVM with only one vCPU core?

I'm running a cheap VPS plan with only 1 vCPU core. My webapp's backend has asynchronous operations using python concurrent.futures. It works fine on my machine, but in the VPS, the async operation ...
No Name's user avatar
  • 101
0 votes
1 answer
261 views

Routing Configuration for Multihomed Device

I have an issue with a multihomed device, which has to fulfill some specific requirements. I try to describe this question as neutral as possible and not to go into details of possible solutions up ...
Cellcon's user avatar
  • 103
-1 votes
2 answers
238 views

How do companies manage software versioning for tools, frameworks, etc.?

If a company is using many different software, is there a way to automate version tracking - comparing current version being used in the company and latest version released, and maybe taking actions ...
Arpi's user avatar
  • 1
0 votes
1 answer
850 views

Virtual environment created with pipx - update python version

I have package installed with command: pipx install package Now I need: update Python version installed on server (this can be done eaisly by apt command update Python version inside existing virtual ...
user1209216's user avatar
-1 votes
1 answer
90 views

How to decrease the time for timed out in Heroku?

I am currently using an app on Heroku that utilizes several dynos. Unfortunately, I've encountered an issue where these dynos are becoming idle, unresponsive, and only terminate after 24 hours. I am ...
Bad Coder's user avatar
0 votes
0 answers
245 views

How to run Anaconda environment on IIS with WFASTCGI?

I have developed a web application in Python using the bottle framework. I have a Windows Server, and I used IIS as Web Server for my application, using WFASTCGI. My application requires packages to ...
SRKX's user avatar
  • 113
2 votes
1 answer
1k views

Ansible compare two value from two dictionnaries

I have a simple problem, i have two dictionaries, one being static with some data, and an other being the result of the stat command stored in a variable (with register). The goal is simply to compare ...
math's user avatar
  • 121
0 votes
1 answer
1k views

ModuleNotFoundError: No module named 'gunicorn.myapp' [closed]

I am trying to make two apps accessible on my LAN server (raspberry pi). lab_app: this one is a very simple app, made with flask from a third party, using a sqlite3 database, which results to be a ...
Tms91's user avatar
  • 105
1 vote
1 answer
1k views

Best approach to install gdal for rasterio in aws/lambda/python Dockerfile

The python dependencies for an AWS lambda application have exceeded the 250 MB limit for AWS Lambdas. One of these dependencies is rasterio which depends on gdal. I'm attempting to build a docker ...
AJP's user avatar
  • 195
1 vote
0 answers
827 views

I am getting a list index out of range when trying to create a langchain agent

I am attempting to create a simple langchain agent, but I'm having a very frustrating time with it. The documentation isn't very helpful and googling hasn't turned up veru much that's useful. Here's ...
redmage123's user avatar
2 votes
2 answers
330 views

403 from Google certificate endpoint when using IPv4

I am using the library google-auth~=2.28.1 to enable "Login with Google" in my webapp. The login works on my local computer and on the test-server (hetzner), but on the prod-server (also ...
Nikolai Jay Summers's user avatar
0 votes
0 answers
381 views

MySQL `SELECT` query does not return the newest data

There are 3 servers: nginx server, fastapi server and mysql server. nginx server: web page on /admin/ fastapi server: api page on /api/select/ mysql server: stores the data (mysql version 8.3.0) /...
OrthoPole's user avatar
0 votes
1 answer
1k views

Rhel 7–> 8 upgrade default Python version is changing automatically

I am trying to upgrade rhel7 to Rhel8 using leap upgrade tool using ansible. But my rhel7 server is treating me wired. Currently RHEL7.9 machine is pointing to python2 but when I reboot the machine ...
Prade's user avatar
  • 63
-1 votes
1 answer
227 views

Get WinRM process ID for PsExec, and Use PsExec to do keyboard input

As for manipulating GUI in remote desktop or/and by PsExec, I have two questions. Is there any difference between Windows Remote Desktop and WinRM? I turned on respectively, and processed by psexec -...
322029's user avatar
  • 1
0 votes
2 answers
189 views

Install Services with a Script or Use Docker Compose [closed]

I have an old website that runs on a single LEMP Ubuntu server where a bunch of services are installed: NGINX, MySQL, PHP, Redis, Certbot, Postfix, WP-CLI, AWS-CLI, Fail2Ban, cron jobs and some custom ...
Vila's user avatar
  • 169
0 votes
0 answers
611 views

Kerberos SPNEGO negotiation with OIDC under FastAPI REST application?

We have a REST-based application (non-browser application) that uses Kerberos-based SPNEGO authentication, and which has been working with Flask. We want to convert this application to run under ...
HippoMan's user avatar
  • 250
-1 votes
1 answer
641 views

Exchange online mail flows with python

We are running Office365 for our email platform. We are a small development firm. Most of the users are either Linux or Mac users, no Windows users. From what I was reading, there is a way to create ...
user2236794's user avatar
0 votes
1 answer
2k views

Debian cron Job Not Working Correctly

I am running Debian 12, and trying to use crontab to execute a Python script to retrieve some files from an Artifactory repository periodically. I am running this job on a separate user account under ...
YTKme's user avatar
  • 103
0 votes
1 answer
186 views

duplicate cron process - python pm2

Our setup consists of a Python Flask application deployed on AWS EC2 with autoscaling, and it utilises a MySQL database. We also have jobs scheduled on a separate Linux system, which triggers every 10 ...
mahendra's user avatar
1 vote
2 answers
3k views

Problems deploying Ansible playbook to Linux server using python3.8 - selinux python module does not assign correct contexts

I run an Alma 8/9 estate and use Ansible to deploy various config changes, and I've run into an unusual problem on one of my client boxes. Alma 8 by standard comes with python 3.6, which works quite ...
motorleague's user avatar
0 votes
0 answers
259 views

Django on EC2 can't connect to RDS (Same VPC, same subnets)

i set up this environment on AWS: VPC: 1 Public subnet Route table with Internet Gateway 2 Private subnets Route table with NAT I created a subnetgroup with the private subnets and attached it to ...
ale_93_be's user avatar

1
2 3 4 5
36