Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

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
59 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
0 votes
0 answers
21 views

How to handle memory issue in Heroku?

I went through this article https://help.heroku.com/TWBM7DL0/how-do-i-measure-current-memory-use-and-max-available-memory-on-a-dyno-in-a-private-space to learn about How do I measure current memory ...
Bad Coder's user avatar
-1 votes
2 answers
70 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
48 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
41 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
53 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
269 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
211 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
  • 101
0 votes
1 answer
211 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
  • 155
0 votes
0 answers
50 views

Flask-SocketIO Performance Bottleneck - QueuePool Overflow After Upgrade

I'll try to keep this brief, but I have a lot of code examples to show. Please let me know if you need more context! We recently updated our flask server to handle web socket connections using flask ...
maximosis's user avatar
0 votes
0 answers
284 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
121 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
21 views

Flask or one of its derivatives: one route to handle multiple endponts that are defined in a config file?

We are using Flask-3.0.2 under Python 3.11. We want to write a highly configurable REST service which manages a few dozen endpoints whose characteristics are defined in a config file (either YAML or ...
HippoMan's user avatar
  • 230
0 votes
0 answers
97 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
325 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
  • 31
-1 votes
1 answer
62 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
101 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
179 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
  • 230
-1 votes
1 answer
118 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
225 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
  • 3
0 votes
1 answer
103 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
637 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
164 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
0 votes
0 answers
30 views

How to configure Apahce with websocket through python daphne DJango on EC2 server

Below is my virtual host for running python <VirtualHost *:8000> DocumentRoot /var/www/VITSBACKEND ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log ...
Shubham Gupta's user avatar
2 votes
2 answers
982 views

Ansible - community.mysql python module errors

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
0 answers
39 views

FortiGate 40F send syslog to Python

I want to foward syslog from my FortiGate 40F firewall to Python script. I need firstly to setup logging for all traffic on the firewall. I have created a Python script that I have tested with my Asus ...
Europa's user avatar
  • 113
0 votes
1 answer
144 views

Postfix rejecting my email from a "Contact Us" form, with "SMTPRecipientsRefused"

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 vote
0 answers
459 views

How to install ctransformers with Conda

I am looking for the standard conda command that allows me to install ctransformers. I have found the following, but I am not sure if they are equivalent to pip install ctransformers: https://anaconda....
User 19826's user avatar
0 votes
0 answers
56 views

S3 duplicity backup works, but restore gives error

Using Duplicity 0.8.21 on Ubuntu 22.04, I can back up to S3 OK, but when I try a restore I get: Traceback (innermost last): File "/usr/bin/duplicity", line 92, in <module> ...
TommyPeanuts's user avatar
0 votes
0 answers
175 views

Error in Google Cloud when installing sentence transformers and torch

Using Google Cloud SSH command line: conda install -c conda-forge sentence-transformers Results in the following messages: unsuccessful initial attempt using frozen solve. Retrying with flexible ...
User 19826's user avatar
0 votes
0 answers
235 views

Will nexus fetch package from pypi when the version does not exists in nexus

I am using this command to install python package from the local nexus proxy: $ pip install --trusted-host 192.168.50.90 -i http://192.168.50.90:8092/repository/pypi-proxy/simple rdpywheel==0.1.27 ...
Dolphin's user avatar
  • 425
0 votes
0 answers
42 views

_curses.error: cbreak() returned ERR when running jenkins

I'm running pg_activity through a bash script to simulate that pg_activity that can launch correctly without any issues. Below is my script #!/usr/bin/bash /soft/python3.7/bin/pg_activity <<...
Andy K's user avatar
  • 119
1 vote
1 answer
271 views

Updating vulnerable python packages on Oracle Linux 8.8

I have a number of Oracle Linux 8.8 machines and Crowdstrike is flagging all of them for vulnerabilities associated with the python packages installed with python 3.6. Oracle says python 3.6 is ...
bangheadhere's user avatar
0 votes
0 answers
99 views

Google Cloud Function abruptly stops without errors!

Problem My cloud function abruptly stops in the 4th iteration of a finite 12 iteration loop. I have a script where I request form data from an external server. I do this for each individual form. I ...
user1057818's user avatar
1 vote
1 answer
291 views

Asycio/hypercorn/SSL error, all unhandled, in a Quart based restapi

I'm writing a restapi in quart, served by Hypercorn, using a TLS certificate made by BenMorel's scripts. My single python file's structure is something like this: import asyncio from quart import ...
CptZsolt's user avatar
0 votes
1 answer
82 views

Can not ExecStart service python script as root on Linux

OS: Ubuntu 20.04.6 LTS I created a service that executes python script checker.py. The problem is this service does not execute python script with root privileges, although sirjay user has root ...
sirjay's user avatar
  • 97
0 votes
0 answers
286 views

Request to Kerberos authenticated API considered unauthorized despite having kerberos ticket in authorization header

I am trying to call a Flask API endpoint (http://monarch.example.com:8080/) hosted in Apache web server in a Linux machine. This endpoint is protected by Kerberos authentication. I use kinit user to ...
Renascence Tarafder Prapty's user avatar
0 votes
0 answers
159 views

Development Server Failing to see CSS Files | Django

Right, being a Python & Django student using VSC so therefore, in the interest of not having a nervous breakdown here, how on earth do other VSC users import CSS files into their HTML/PHP ...
Hunktydunkaty's user avatar
1 vote
1 answer
373 views

Having difficulty connecting to PostgreSQL with Django hosted on IIS

Trying to host Django 4 app with PostgreSQL database on Windows Server 2016 with IIS manager 10 and httpPlatformHandler 1.2. The app and database work without issues when running on a VM server with ...
Nika Tvildiani's user avatar
0 votes
0 answers
241 views

Memory mapped files filesystem access over NFS performance

I'm debugging a system that is accessing files on AWS EFS, where the EFS reaches is peak throughput because of IO operations. I noticed that the application is sometime reading memory mapped files in ...
yogi's user avatar
  • 101
0 votes
0 answers
553 views

I was trying to remove 'python 3.10' in my ubuntu 20.04 and everything is broken now

I was trying to remove python3 by hitting the command sudo apt-get remove python3 and now the whole system is broken. I tried multiple solutions found on the internet, such as reinstalling ubuntu-...
Elfeqy's user avatar
  • 1
0 votes
0 answers
36 views

Building server for research team

this is kind of a big task for me, I have an engineering background with computer science knowledge but I'm no expert in servers and networking. I want to build a GPU-enabled computing platform that ...
Frmrz's user avatar
  • 1
1 vote
1 answer
167 views

AWX error X509 using custom EE image with pyopenssl

I'm currently setting up an AWX platform hosted on K8s cluster to get a proper UI + features for multi-user purpose. Context : I created an EE image pushed on a Nexus repository that AWX use in order ...
motorbass's user avatar
  • 353
0 votes
0 answers
103 views

Hosting dynamic Flask website using AWS ElasticBeanstalk

I have been trying to host a dynamic Flask website which includes Machine Learning on AWS ElasticBeanstalk. The success message "Environment has succesfully launched" is displayed. However, ...
Popo's user avatar
  • 1
0 votes
0 answers
402 views

Hosting private conda channel

I recently joined a start up and have been tasked with setting up package management for our internal python libraries. We work in the biotech and ml space, and a lot of the packages we use are index ...
mbestipa's user avatar
3 votes
1 answer
951 views

GCP Secret Manager Access "Invalid Grant" error 503 with Python 3.11

really losing it here. I wrote a simple piece of code just to be able to access secrets, and every time I run it it simply throws the following error: google.api_core.exceptions.RetryError: Deadline ...
Flavio Fenley's user avatar
0 votes
1 answer
416 views

Using Ubuntu 22.04 in EC2 via CloudFormation, why does cfn-hup never trigger?

Amazon's documentation includes extensive examples of using cfn-hup to automate updates of instances provisioned via CloudFormation. For one of many examples, see https://docs.aws.amazon.com/...
Nye's user avatar
  • 248
0 votes
1 answer
281 views

linux fail2ban not catching auth a specific fail with postfix

I had journalctl open and noticed an offender repeatedly hitting me with auth fails in postfix. I have a standard postfix-sasl filter on by default that, to my knowledge, is working well. It wasn't ...
gstlouis's user avatar
  • 119
0 votes
2 answers
613 views

Is there a way to force duplicity to use IPv4 instead of IPv6?

In the below command, example.com has both IPv4 and IPv6 addresses but SSH server listens only on the IPv4 address. Is there a way to request duplicity to use IPv4 only? duplicity --progress --ssh-...
Halacs's user avatar
  • 175
1 vote
1 answer
256 views

Ansible send hostnames in a list to python script

I wanted to send the hostnames from ansible role to python script. In my host file there are 2 hosts 1ld900 and 1ld901. my role as below --- - name:execute python script: writetoexcel.py {{ ...
Prade's user avatar
  • 31

1
2 3 4 5
36