Skip to main content

Questions tagged [python]

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

0 votes
1 answer
254 views

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
79 views

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
228 views

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,126
0 votes
0 answers
28 views

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
84 views

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
110 views

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
90 views

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
140 views

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
177 views

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
118 views

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
199 views

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
1 answer
113 views

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
220 views

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
883 views

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
85 views

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
291 views

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

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

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
78 views

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
3k views

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
220 views

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
131 views

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
66 views

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
162 views

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
402 views

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

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
452 views

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
84 views

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
294 views

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
280 views

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
906 views

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
101 views

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
258 views

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
2k views

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

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

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
835 views

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
353 views

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
410 views

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

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
247 views

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
196 views

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
628 views

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
669 views

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

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
199 views

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

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
275 views

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
2 votes
2 answers
3k views

I am trying to use Ansibles community msql modules to setup an external database. However, I get the following error message when I try to create a database: failed: [target] (item=db_name) => {&...
Patrick Reinboth's user avatar
0 votes
1 answer
531 views

I made a "Contact Us" form in Django, and the Django part of it seems to be working. But sending of the email it generates fails with SMTPRecipientsRefused at /contact/ {'[email protected]'...
LeonTheGreat's user avatar

1
2 3 4 5
36